From 20c3061e18dca0920c861a37c34c179f7ee75bfe Mon Sep 17 00:00:00 2001 From: Bingyao Liu Date: Mon, 1 Jul 2019 12:30:22 +0800 Subject: [PATCH 1/2] Update IPython's doc link in Image tutorial --- tutorials/introductory/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/introductory/images.py b/tutorials/introductory/images.py index 423bf22da30e..ef87cf6afd44 100644 --- a/tutorials/introductory/images.py +++ b/tutorials/introductory/images.py @@ -19,7 +19,7 @@ loop, execute the **%matplotlib** magic at your IPython prompt. There's more detail on exactly what this does at `IPython's documentation on GUI event loops -`_. +`_. If you're using IPython Notebook, the same commands are available, but people commonly use a specific argument to the %matplotlib magic: From 5f8643c0f5537280ff1a499be3addbdac5620557 Mon Sep 17 00:00:00 2001 From: Bingyao Liu Date: Tue, 2 Jul 2019 09:13:16 +0800 Subject: [PATCH 2/2] Update old refs from IPython Notebook to Jupyter Notebook. --- tutorials/introductory/images.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tutorials/introductory/images.py b/tutorials/introductory/images.py index ef87cf6afd44..a0a724a970ab 100644 --- a/tutorials/introductory/images.py +++ b/tutorials/introductory/images.py @@ -12,7 +12,8 @@ First, let's start IPython. It is a most excellent enhancement to the standard Python prompt, and it ties in especially well with -Matplotlib. Start IPython either at a shell, or the IPython Notebook now. +Matplotlib. Start IPython either directly at a shell, or with the Jupyter +Notebook (where IPython as a running kernel). With IPython started, we now need to connect to a GUI event loop. This tells IPython where (and how) to display plots. To connect to a GUI @@ -21,7 +22,7 @@ event loops `_. -If you're using IPython Notebook, the same commands are available, but +If you're using Jupyter Notebook, the same commands are available, but people commonly use a specific argument to the %matplotlib magic: .. sourcecode:: ipython @@ -157,7 +158,7 @@ # # .. note:: # -# However, remember that in the IPython notebook with the inline backend, +# However, remember that in the Jupyter Notebook with the inline backend, # you can't make changes to plots that have already been rendered. If you # create imgplot here in one cell, you cannot call set_cmap() on it in a later # cell and expect the earlier plot to change. Make sure that you enter these @@ -208,7 +209,7 @@ # imshow. You could also do this by calling the # :meth:`~matplotlib.image.Image.set_clim` method of the image plot # object, but make sure that you do so in the same cell as your plot -# command when working with the IPython Notebook - it will not change +# command when working with the Jupyter Notebook - it will not change # plots from earlier cells. # # You can specify the clim in the call to ``plot``.