Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3d9469

Browse files
Merge pull request #15 from hoh/gh-pages
Update documentation (Jupyter, Python 3, ...)
2 parents c4aec46 + cceb003 commit e3d9469

File tree

2 files changed

+47
-48
lines changed

2 files changed

+47
-48
lines changed

‎core/notebook.md‎

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
---
22

33
layout: ots
4-
title: Introducing IPython Notebook
4+
title: Introducing Jupyter Notebook
55

66
---
77

8-
# IPython Notebook
8+
# Jupyter Notebook
99

1010
Until now we've worked with Python either directly via the interactive Python console, or by writing Python programs using a text
1111
editor.
1212

13-
However, there are other ways to work with Python. [IPython](http://ipython.org/) is a set of tools originally developed to make it easier for scientists to work with Python and data. It allows you to combine interactive Python exploration with prewritten programs and even text and equations for documentation.
13+
However, there are other ways to work with Python. [Jupyter](http://jupyter.org/) is a set of tools originally developed to make it easier for scientists to work with Python and data. It allows you to combine interactive Python exploration with prewritten programs and even text and equations for documentation.
1414

15-
*IPython isn't a different programming language, it's just a set of computer programs for working with the Python language.*
15+
*Jupyter isn't a different programming language, it's just a set of computer programs for working with the Python language.*
1616

17-
## Sneak Preview of IPython
17+
## Sneak Preview of Jupyter
1818

19-
![A sample from the IPython Notebook introduction examples][ipn-example]
19+
![A sample from the Jupyter Notebook introduction examples][ipn-example]
2020

21-
(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.)
21+
(This is just an example of what Jupyter Notebook can do, don't feel like you need to understand it just yet! If you want to type it into Jupyter Notebook later on, type the special command `%matplotlib inline` before you start - there's an explanation coming up in the Charts chapter.)
2222

23-
# Installing IPython Notebook
23+
# Installing Jupyter Notebook
2424

25-
There are a number of ways to install IPython Notebook.
25+
There are a number of ways to install Jupyter Notebook.
2626

27-
If you're using OS X or Windows, we recommend you download and install [Anaconda](http://continuum.io/downloads.html), which is a free bundled installer of Python together with many other useful tools (including IPython Notebook.)
27+
If you're using OS X or Windows, we recommend you download and install [Anaconda](http://continuum.io/downloads.html), which is a free bundled installer of Python together with many other useful tools (including Jupyter Notebook.)
2828

2929
**Anaconda is a fairly large (around 300Mb) download so if you're at a workshop event we'll have some USB keys with the predownloaded installers to save on bandwidth**
3030

31-
Anaconda comes with its own version of Python 2.7, IPython Notebook, plus other libraries like matplotlib and a package manager ("conda") that you can use to install other packages or other Python versions.
31+
Anaconda comes with its own version of Python 2.7, Jupyter Notebook, plus other libraries like matplotlib and a package manager ("conda") that you can use to install other packages or other Python versions.
3232

3333
If you're using Linux, Anaconda is available as an option but we recommend you try to install the programs using your Linux distribution instead (see under "Alternative Options", below.)
3434

@@ -38,84 +38,84 @@ If you're using Linux, Anaconda is available as an option but we recommend you t
3838

3939
Anaconda (described above) is the easiest option for this workshop. There are some other installer options that you can test out if you'd like to try something different:
4040

41-
* If you're on Linux, most package managers include IPython Notebook. For instance on Ubuntu or Debian:
41+
* If you're on Linux, most package managers include Jupyter Notebook. For instance on Ubuntu or Debian:
4242

43-
sudo apt-get install ipython-notebook python-matplotlib
43+
sudo apt-get install jupyter-notebook python-matplotlib
4444

45-
* If you have 'pip' installed (maybe from another OTS workshop) then you may be able to install IPython by itself (plus matplotlib) via 'pip', as follows:
45+
* If you have 'pip' installed (maybe from another OTS workshop) then you may be able to install Jupyter by itself (plus matplotlib) via 'pip', as follows:
4646

47-
pip install ipython[notebook]
47+
pip install jupyter
4848

4949
(If you're on OS X you may need Xcode to compile dependencies.)
5050

51-
* 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.
51+
* If you can't get Jupyter 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.
5252

5353
## Note about Python 3
5454

5555
Anaconda and some of the other installers come with Python version 2. You may have been using Python version 3 up until now, this is the version that the Introduction to Programming workshop encourages you to use.
5656

57-
The Python world is slowly migrating towards using Python 3 for everything. IPython is available for both 2 & 3, but Anaconda comes with Python 2 as it includes some components which are still Python 2 only.
57+
The Python world is slowly migrating towards using Python 3 for everything. Jupyter is available for both 2 & 3, but Anaconda comes with Python 2 as it includes some components which are still Python 2 only.
5858

5959
Python 2 and Python 3 have some minor incompatible differences in language syntax. The programs shown in this workshop are designed to work with both, but if you find some code that doesn't work (but perhaps works on your neighbour's computer) then this may be why.
6060

6161

62-
## Starting IPython Notebook
62+
## Starting Jupyter Notebook
6363

64-
You interact with IPython Notebook using your web browser. The Notebook program creates a "web server" locally on your computer that you then connect to.
64+
You interact with Jupyter Notebook using your web browser. The Notebook program creates a "web server" locally on your computer that you then connect to.
6565

66-
On Windows, you can find a launcher for IPython Notebook under Anaconda in the Start menu.
66+
On Windows, you can find a launcher for Jupyter Notebook under Anaconda in the Start menu.
6767

68-
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:
68+
On Linux or OS X, you can start Jupyter 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:
6969

70-
ipython notebook
70+
jupyter notebook
7171

7272
You should see some output like this:
7373

7474
[NotebookApp] Using existing profile dir: u'/home/gus/.ipython/profile_default'
7575
[NotebookApp] Serving notebooks from /home/gus/workshops
76-
[NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
76+
[NotebookApp] The Jupyter Notebook is running at: http://127.0.0.1:8888/
7777
[NotebookApp] Use Control-C to stop this server and shut down all kernels.
7878

79-
A browser window may automatically open showing the IPython Notebook interface. If it doesn't open, you can copy-paste the "http" address from the output and paste it into your browser.
79+
A browser window may automatically open showing the Jupyter Notebook interface. If it doesn't open, you can copy-paste the "http" address from the output and paste it into your browser.
8080

81-
Even though you're interacting with IPython Notebook using your browser, Notebook is running right there on your computer in that window. Only you have access to it.
81+
Even though you're interacting with Jupyter Notebook using your browser, Notebook is running right there on your computer in that window. Only you have access to it.
8282

8383

8484
## First Steps with Notebook
8585

8686
In your browser, click the "New Notebook" button and a new notebook will open up.
8787

88-
![IPython Notebook empty][ipn-empty]
88+
![Jupyter Notebook empty][ipn-empty]
8989

9090
The empty box at the top is the first "cell" for entering Python code.
9191

9292
Try typing something like `print("Hello World")` into the cell. To run the code in the cell and see the output, click the Run button (play icon) on the toolbar, or type Shift-Enter:
9393

94-
![IPython Notebook Hello World][ipn-hello]
94+
![Jupyter Notebook Hello World][ipn-hello]
9595

9696
You'll see that whenever you run a cell, a new empty cell appears where you can enter another set of Python statements. Try assigning a variable. Let's make another shopping list:
9797

98-
![IPython Notebook Assign Variable][ipn-variable]
98+
![Jupyter Notebook Assign Variable][ipn-variable]
9999

100100
When you Run this cell you won't see any output, but behind the scenes the variable "shopping list" has been assigned.
101101

102102
We can see this by making a third cell to print the contents:
103103

104-
![IPython Notebook Print Shopping List][ipn-list]
104+
![Jupyter Notebook Print Shopping List][ipn-list]
105105

106-
You can do anything with IPython Notebook cells that you'd do with normal Python code. As you build up the notebook full of cells you create a history of the things you've done and the results that were printed.
106+
You can do anything with Jupyter Notebook cells that you'd do with normal Python code. As you build up the notebook full of cells you create a history of the things you've done and the results that were printed.
107107

108-
## IPython Notebook Directory
108+
## Jupyter Notebook Directory
109109

110-
When IPython Notebook starts up it prints a line like this:
110+
When Jupyter Notebook starts up it prints a line like this:
111111

112112
[NotebookApp] Serving notebooks from /home/gus/workshops
113113

114114
This is the directory that it was started from, and it's the working directory for loading Python files, text files, etc.
115115

116116
It can be helpful to make sure this directory is the directory where you plan to keep files related to your work.
117117

118-
On Windows with Anaconda this directory is called "IPython Notebooks" inside "My Documents", and is created when you install Anaconda. On OS X, Linux or other Windows installations it's up to you which directory you use.
118+
On Windows with Anaconda this directory is called "Jupyter Notebooks" inside "My Documents", and is created when you install Anaconda. On OS X, Linux or other Windows installations it's up to you which directory you use.
119119

120120
If you're launching from the command line, you can 'cd' to this directory before you launch Notebook.
121121

@@ -124,48 +124,48 @@ If you're using the command line on Windows, you can use Explorer to find your d
124124

125125
## Loading Notebook Files
126126

127-
You can also load IPython Notebooks that other people have created, saved as IPython Notebook files (File extension .ipynb.) Try [downloading and opening this Notebook file with the shopping list example](../files/shopping_list.ipynb).
127+
You can also load Jupyter Notebooks that other people have created, saved as Jupyter Notebook files (File extension .ipynb.) Try [downloading and opening this Notebook file with the shopping list example](../files/shopping_list.ipynb).
128128

129-
After you download the Notebook file, move it into your IPython Notebook working directory and then choose File -> Open in Notebook to open it.
129+
After you download the Notebook file, move it into your Jupyter Notebook working directory and then choose File -> Open in Notebook to open it.
130130

131131
That Notebook contains some additional code, and some suggestions for changes you can make by going back and editing the existing files. Take a few moments to play with the Notebook - rerun the cells, edit the cells to change them, don't be afraid to break things!
132132

133133
## Loading Python Files
134134

135-
You can also load a pre-existing Python file into an IPython Notebook cell by typing
135+
You can also load a pre-existing Python file into an Jupyter Notebook cell by typing
136136

137137
%load "myprogram.py"
138138

139139
Into a cell and running it. This loads up a new cell containing the contents of *myprogram.py*.
140140

141-
Test this feature out by loading one of the scripts you wrote during the recap session. You may have to specify the full path to the script file, depending on the directory IPython Notebook started up from.
141+
Test this feature out by loading one of the scripts you wrote during the recap session. You may have to specify the full path to the script file, depending on the directory Jupyter Notebook started up from.
142142

143143
There is one other useful built-in tool for working with Python files:
144144

145145
%run "myprogram.py"
146146

147147
This will run *myprogram.py* and load the output into a Notebook cell.
148148

149-
## Other IPython tips
149+
## Other Jupyter tips
150150

151151
* As well as Shift-Enter there are other keyboard shortcuts in Notebook. Look under the Help menu -> Keyboard Shortcuts to see them all.
152152

153-
* In previous workshops we used `help()` to view help information in the Python interpreter. IPython Notebook makes this even simpler, you can just type the name of a Python function or module and end it with a `?`. Try it now, type `range?` into a cell and run it.
153+
* In previous workshops we used `help()` to view help information in the Python interpreter. Jupyter Notebook makes this even simpler, you can just type the name of a Python function or module and end it with a `?`. Try it now, type `range?` into a cell and run it.
154154

155-
* Using a nifty tool called NBViewer you can easily share IPython Notebooks on the internet, rendered as web pages (but still downloadable to play with in IPython.) Check out the [NBViewer home page](http://nbviewer.ipython.org/) or the [IPython Notebook gallery](https://github.com/ipython/ipython/wiki/A-gallery-of-interesting-IPython-Notebooks) for some interesting ones.
155+
* Using a nifty tool called NBViewer you can easily share Jupyter Notebooks on the internet, rendered as web pages (but still downloadable to play with in Jupyter.) Check out the [NBViewer home page](http://nbviewer.jupyter.org/) or the [Jupyter Notebook gallery](https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks) for some interesting ones.
156156

157-
## Other Ways to Run IPython
157+
## Other Ways to Run Jupyter
158158

159159
Other options if you feel like exploring:
160160

161-
* There is a command line "ipython" program (just run `ipython` without the --notebook argument) that behaves similarly to the "python" interactive shell, but with some of the nice features of IPython Notebook (although none of the graphical features.)
161+
* There is a command line "ipython" program (just run `ipython` without the --notebook argument) that behaves similarly to the "python" interactive shell, but with some of the nice features of Jupyter Notebook (although none of the graphical features.)
162162

163-
* There is a graphical IPython program (ie not web browser based) called "IPython QtConsole". It's like the command line IPython but with some graphical features. Launch this one by running `ipython qtconsole`.
163+
* There is a graphical Jupyter program (ie not web browser based) called "Jupyter QtConsole". It's like the command line Jupyter but with some graphical features. Launch this one by running `jupyter qtconsole`.
164164

165165

166-
## Doing the workshop without IPython
166+
## Doing the workshop without Jupyter
167167

168-
Tried out IPython Notebook but don't really like it? No problem! The rest of the workshop can be completed without using IPython Notebook at all, feel free to go back to the Python coding tools you were using already.
168+
Tried out Jupyter Notebook but don't really like it? No problem! The rest of the workshop can be completed without using Jupyter Notebook at all, feel free to go back to the Python coding tools you were using already.
169169

170170
## Next Chapter
171171

@@ -176,4 +176,3 @@ Time to give Notebook a real workout! The next chapter is [Working With Text Fil
176176
[ipn-hello]: ../images/notebook_hello_world.png
177177
[ipn-variable]: ../images/assign_shopping_list.png
178178
[ipn-list]: ../images/print_shopping_list.png
179-

‎index.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ workshop then that will be perfect.
3535

3636
# Reference material
3737

38-
* [IPython NBViewer home page](http://nbviewer.ipython.org/)
38+
* [Jupyter NBViewer home page](https://nbviewer.jupyter.org/)
3939

40-
* [IPython Notebook gallery](https://github.com/ipython/ipython/wiki/A-gallery-of-interesting-IPython-Notebooks)
40+
* [Jupyter Notebook gallery](https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks)
4141

4242
* [matplotlib gallery](http://matplotlib.org/gallery.html)
4343

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /