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
Copy file name to clipboardExpand all lines: core/notebook.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,7 @@ However, there are other ways to work with Python. [IPython](http://ipython.org/
16
16
17
17
## Sneak Preview of IPython
18
18
19
-
<imgsrc="../images/ipython_example.png"alt="A sample from the IPython Notebook introduction examples">
20
-
</img>
19
+
![A sample from the IPython Notebook introduction examples][ipn-example]
21
20
22
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.)
23
22
@@ -86,27 +85,23 @@ Even though you're interacting with IPython Notebook using your browser, Noteboo
86
85
87
86
In your browser, click the "New Notebook" button and a new notebook will open up.
The empty box at the top is the first "cell" for entering Python code.
93
91
94
92
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:
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:
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.
112
107
@@ -175,3 +170,10 @@ Tried out IPython Notebook but don't really like it? No problem! The rest of the
175
170
## Next Chapter
176
171
177
172
Time to give Notebook a real workout! The next chapter is [Working With Text Files](text-files.html)
0 commit comments