|
12 | 12 |
|
13 | 13 | First, let's start IPython. It is a most excellent enhancement to the
|
14 | 14 | standard Python prompt, and it ties in especially well with
|
15 |
| -Matplotlib. Start IPython either at a shell, or the IPython Notebook now. |
| 15 | +Matplotlib. Start IPython either directly at a shell, or with the Jupyter |
| 16 | +Notebook (where IPython as a running kernel). |
16 | 17 |
|
17 | 18 | With IPython started, we now need to connect to a GUI event loop. This
|
18 | 19 | tells IPython where (and how) to display plots. To connect to a GUI
|
19 | 20 | loop, execute the **%matplotlib** magic at your IPython prompt. There's more
|
20 | 21 | detail on exactly what this does at `IPython's documentation on GUI
|
21 | 22 | event loops
|
22 |
| -<http://ipython.org/ipython-doc/2/interactive/reference.html#gui-event-loop-support>`_. |
| 23 | +<https://ipython.readthedocs.io/en/stable/interactive/reference.html#gui-event-loop-support>`_. |
23 | 24 |
|
24 |
| -If you're using IPython Notebook, the same commands are available, but |
| 25 | +If you're using Jupyter Notebook, the same commands are available, but |
25 | 26 | people commonly use a specific argument to the %matplotlib magic:
|
26 | 27 |
|
27 | 28 | .. sourcecode:: ipython
|
|
157 | 158 | #
|
158 | 159 | # .. note::
|
159 | 160 | #
|
160 |
| -# However, remember that in the IPython notebook with the inline backend, |
| 161 | +# However, remember that in the Jupyter Notebook with the inline backend, |
161 | 162 | # you can't make changes to plots that have already been rendered. If you
|
162 | 163 | # create imgplot here in one cell, you cannot call set_cmap() on it in a later
|
163 | 164 | # cell and expect the earlier plot to change. Make sure that you enter these
|
|
208 | 209 | # imshow. You could also do this by calling the
|
209 | 210 | # :meth:`~matplotlib.image.Image.set_clim` method of the image plot
|
210 | 211 | # object, but make sure that you do so in the same cell as your plot
|
211 |
| -# command when working with the IPython Notebook - it will not change |
| 212 | +# command when working with the Jupyter Notebook - it will not change |
212 | 213 | # plots from earlier cells.
|
213 | 214 | #
|
214 | 215 | # You can specify the clim in the call to ``plot``.
|
|
0 commit comments