-
Notifications
You must be signed in to change notification settings - Fork 93
Using Jupyter and Colab
Peter Corke edited this page Feb 27, 2023
·
8 revisions
WORK IN PROGRESS
There are several ways to access Jupyter, all slightly different. If you use notebook, or if you use Visual Studio Code you could use the Microsoft Jupyter extension.
At the top of the file you need to use one of the following magic commands
%matplotlib inline
%matplotlib notebook
%matplotlib widgets
To see all the options use
%matplotlib --list
If you are using Matplotlib from within a script, the function plt.show()
is your friend. plt.show()
starts an event loop, looks for all currently active figure objects, and opens one or more interactive windows that display your figure or figures.
plt.ion()
and plt.ioff()