[PYTHON] Jupyter Notebook does not show matplotlib graphs

Statistics are popular in circles, but I'm studying data science in Python, although it's a twist because everyone uses R. (I want to touch R soon)

Meanwhile, I ran into the problem that matplotlib was not expanded inline, so I made a note.

solution

It seems that it will not be expanded inline unless you run the following code at the beginning of the note.

%matplotlib inline

Before

In  [48] : tz_counts[:10].plot(kind='barh', rot=0)
Out [48] : <matplotlib.axes._subplots.AxesSubplot at 0x18dd7d8c358>

After

In  [49] : %matplotlib inline
In  [50] : tz_counts[:10].plot(kind='barh', rot=0)
Out [50] : <matplotlib.axes._subplots.AxesSubplot at 0x18dd7d8c358>

20170402160818.png

It will be displayed! We did it, Tae-chan!

Recommended Posts

Jupyter Notebook does not show matplotlib graphs
Jupyter does not show matplotlib graph
jupyter notebook does not start on mac fish
Day 65 (Solution) Jupyter notebook does not work with Kernel Not Conected.
Browser does not open automatically when jupyter notebook is started
View graphs inline in Jupyter Notebook
Day 65 I installed matplotlib to draw graphs on my Jupyter notebook.
[Jupyter Notebook memo] Display kanji with matplotlib
How to fix a bug that jupyter notebook does not start automatically
Jupyter Notebook memo
Introducing Jupyter Notebook
Powerful Jupyter Notebook
Jupyter notebook password
Jupyter Notebook memo
Graph drawing with jupyter (ipython notebook) + matplotlib + vagrant
What to do when the graph does not appear in jupyter (ipython) notebook
What to do if Jupyter Notebook on WSL does not start automatically in your browser
Get started Jupyter Notebook
3 Jupyter notebook (Python) tricks
[Cloud103] # 3 Jupyter Notebook again
Write charts in real time with Matplotlib on Jupyter notebook
View dynamic graphs in Jupyter notebook. (Inline display of D3.js)