Reputation: 1200
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
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