You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in favor of `%matplotlib`, which does the same thing, excluding imports.
- `%pylab` is gently discouraged, especially in teaching situations,
because hiding namespaces confuses new folks.
- `ipython notebook --pylab` is strongly discouraged (and deprecated in IPython 2.0)
because its effects are invisible in the notebook,
causing great confusion and inconsistent behavior in notebooks
depending on how the server was started, with no visible indication about why that may be.
Copy file name to clipboardExpand all lines: core/charts.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,12 @@ So far we haven't done anything to really explore IPython Notebook's features, b
11
11
12
12
If you're using Windows to run IPython Notebook or IPython QtConsole, you'll need to run the following special IPython command (in Notebook, type it into an IPython Notebook cell and then run it):
13
13
14
-
%pylab inline
14
+
%matplotlib inline
15
15
16
-
... this tells IPython two things:
17
-
18
-
*`pylab` means that IPython will pre-import some useful modules that are used for mathematics and charting operations. Otherwise you have to import lots of these modules individually.
16
+
... this tells IPython:
19
17
20
18
*`inline` means that you want charts to be shown "inline style" inside your notebook, not in a separate window.
21
19
22
-
If you're not using Windows and you started IPython Notebook or IPython QtConsole with the arguments `--pylab inline`, then this is already done.
Until now we've worked with Python either directly via the interactive Python console, or by writing Python programs using a text
11
11
editor.
@@ -19,7 +19,7 @@ However, there are other ways to work with Python. [IPython](http://ipython.org/
19
19
<imgsrc="../images/ipython_example.png"alt="A sample from the IPython Notebook introduction examples">
20
20
</img>
21
21
22
-
(This is just an example of what IPython Notebook can do, don't feel like you need to understand it just yet! If you want to type it into IPython Notebook later on, type the special command `%pylab inline` before you start - there's an explanation coming up in the Charts chapter.)
22
+
(This is just an example of what IPython Notebook can do, don't feel like you need to understand it just yet! If you want to type it into IPython Notebook later on, type the special command `%matplotlib inline` before you start - there's an explanation coming up in the Charts chapter.)
23
23
24
24
# Installing IPython Notebook
25
25
@@ -47,9 +47,9 @@ Anaconda (described above) is the easiest option for this workshop. There are so
47
47
48
48
pip install ipython[notebook]
49
49
50
-
(If you're on OS X you will need XCode installed for this to work.)
50
+
(If you're on OS X you may need Xcode to compile dependencies.)
51
51
52
-
* If you can't get IPython Notebook to work on your computer at all, there's a hosted service called [Wakari](https://www.wakari.io/) that you can use for free. In this case your programs won't be running on your own computer, they'll be running "in the cloud" (ie on Wakari's servers somewhere else) and you'll just see the results in your web browser.
52
+
* If you can't get IPython Notebook to work on your computer at all, there's a hosted service called [Wakari](https://www.wakari.io/) that you can use for free. In this case your programs won't be running on your own computer, they'll be running "in the cloud" (i.e. on Wakari's servers somewhere else) and you'll just see the results in your web browser.
53
53
54
54
## Note about Python 3
55
55
@@ -68,7 +68,7 @@ On Windows, you can find a launcher for IPython Notebook under Anaconda in the S
68
68
69
69
On Linux or OS X, you can start IPython Notebook from the command line. First open a terminal window, use 'cd' to navigate to the directory where you want to store your Python files and notebook document files. Then run this command:
0 commit comments