The basics of IPython Notebook. It is a web-based interactive development environment. We will cover the basics of managing notebooks and cell types.
Finding Help:
Notebooks are documents representing all input and output of operations. This includes code, text input and numerical, text and rich media output. These files have ipynb extensions.
Cells can contain code or documentation. We will explore working with cells.
This is a markdown cell. In can contain:
**Markdown** *Text*
<strong>HTML formula</strong>
$LATEX%
Markdown Text
HTML
$LATEX formula$
May contain python code and ipython magic.
In [1]:
3+5
Out[1]:
In [2]:
1+2
3+5
Out[2]:
In [3]:
x = 1
y = 2
x + y
Out[3]:
In [7]:
z = x + y
z
Out[7]:
In [ ]:
%%bash
ls
echo "** Creating New File **"
touch test.txt
ls
echo "** Deleting New File **"
rm test.txt
These cells are like markdown but they do not render their input.
Heading cells are great for creating bookmarks in an IPython Notebook. You can hover over headings to find their link. Usually it is capitalized slug of the title text. This helps in linking to a specific part of a notebook.