jupyter / jupyter/notebook

Does not show the first cell pylab plot

Open
#4,137 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Hi all

I tried to plot using a revision of my ipython notebook ask follows:

https://github.com/kangwonlee/nmisp-20-interp/commit/d0b4cbb4760edaf9737e33a6ef6c2227a226f168

If you view the file, I tried to `import pylab` and `show()` in the first cell. When I select the cell and press Shift+Enter, the plot does not show up at first (as `In[1]`) but at the second time (as `In[2]`), it does.

In the following revision, as I splitted the `import pylab` line as the first cell, the plot in the second cell shows up without much problem:
https://github.com/kangwonlee/nmisp-20-interp/commit/1877621ffb693a612848cf664a2931589632d0a9

My `jupyter` version is 4.4.0.
```sh
$ jupyter --version
4.4.0
```

Let me know your opinion; is there a step that I missed? or do people usually try it differently?

Thanks for your attention.

KW

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the first-cell import pylab and show() sequence in the two linked notebook revisions using Jupyter Notebook 4.4.0, comparing the first and second executions. Trace the notebook's plot-display behavior and add or update a regression test if the repository provides one; done means the plot appears on the first execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.