Slartibartfast
Slartibartfast

Reputation: 1200

Plot not showing up in Jupyter

import matplotlib.pyplot as plt
%matplotlib inline

fig = plt.figure()

I should get a pop up empty graph with no value but nothing shows up in jupyter just the output:

<Figure size 432x288 with 0 Axes>

Why is there no graph showing up?

Upvotes: 1

Views: 4414

Answers (1)

cwalvoort
cwalvoort

Reputation: 1967

Instead of %matplotlib inline, use %matplotlib notebook to have the output display within the notebook.

import matplotlib.pyplot as plt
%matplotlib notebook

fig = plt.figure()

Upvotes: 1

Related Questions