Skip to content

remove recommendations of pylab #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions core/charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ So far we haven't done anything to really explore IPython Notebook's features, b

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):

%pylab inline
%matplotlib inline

... this tells IPython two things:

* `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.
... this tells IPython:

* `inline` means that you want charts to be shown "inline style" inside your notebook, not in a separate window.

If you're not using Windows and you started IPython Notebook or IPython QtConsole with the arguments `--pylab inline`, then this is already done.

## Simple Example

Here's an example of a simple chart:
Expand Down
10 changes: 5 additions & 5 deletions core/notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Introducing IPython Notebook

---

# IPython Notebok
# IPython Notebook

Until now we've worked with Python either directly via the interactive Python console, or by writing Python programs using a text
editor.
Expand All @@ -19,7 +19,7 @@ However, there are other ways to work with Python. [IPython](http://ipython.org/
<img src="../images/ipython_example.png" alt="A sample from the IPython Notebook introduction examples">
</img>

(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.)
(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.)

# Installing IPython Notebook

Expand Down Expand Up @@ -47,9 +47,9 @@ Anaconda (described above) is the easiest option for this workshop. There are so

pip install ipython[notebook]

(If you're on OS X you will need XCode installed for this to work.)
(If you're on OS X you may need Xcode to compile dependencies.)

* 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.
* 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.

## Note about Python 3

Expand All @@ -68,7 +68,7 @@ On Windows, you can find a launcher for IPython Notebook under Anaconda in the S

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:

ipython notebook --pylab inline
ipython notebook

You should see some output like this:

Expand Down