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 e038794

Browse files
committed
Using native markdown tag for images on notebook.md
1 parent f604c07 commit e038794

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

‎core/notebook.md‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ However, there are other ways to work with Python. [IPython](http://ipython.org/
1616

1717
## Sneak Preview of IPython
1818

19-
<img src="../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]
2120

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

@@ -86,27 +85,23 @@ Even though you're interacting with IPython Notebook using your browser, Noteboo
8685

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

89-
<img src="../images/ipython_notebook.png" alt="IPython Notebook empty">
90-
</img>
88+
![IPython Notebook empty][ipn-empty]
9189

9290
The empty box at the top is the first "cell" for entering Python code.
9391

9492
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:
9593

96-
<img src="../images/notebook_hello_world.png" alt="IPython Notebook Hello World">
97-
</img>
94+
![IPython Notebook Hello World][ipn-hello]
9895

9996
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:
10097

101-
<img src="../images/assign_shopping_list.png" alt="IPython Notebook Assign Variable">
102-
</img>
98+
![IPython Notebook Assign Variable][ipn-variable]
10399

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

106102
We can see this by making a third cell to print the contents:
107103

108-
<img src="../images/print_shopping_list.png" alt="IPython Notebook Print Shopping List">
109-
</img>
104+
![IPython Notebook Print Shopping List][ipn-list]
110105

111106
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.
112107

@@ -175,3 +170,10 @@ Tried out IPython Notebook but don't really like it? No problem! The rest of the
175170
## Next Chapter
176171

177172
Time to give Notebook a real workout! The next chapter is [Working With Text Files](text-files.html)
173+
174+
[ipn-example]: ../images/ipython_example.png
175+
[ipn-empty]: ../images/ipython_notebook.png
176+
[ipn-hello]: ../images/notebook_hello_world.png
177+
[ipn-variable]: ../images/assign_shopping_list.png
178+
[ipn-list]: ../images/print_shopping_list.png
179+

0 commit comments

Comments
(0)

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