harrydemuth
harrydemuth

Reputation: 73

Python Jupyter Notebook: Make Image in Notebook

I am creating a plot using p = figure(...), however when I run

show(p)

the plot opens up a new window. How do I make it appear in the notebook?

Thanks

Upvotes: 0

Views: 31

Answers (1)

Jeremy
Jeremy

Reputation: 876

Assuming you are plotting with Matplotlib, you can run this line at the beginning, or just before you start plotting:

%matplotlib inline

Upvotes: 1

Related Questions