In [1]:
#apply styles to notebook (rather than doing it locally
# via the profile custom.css file)
from IPython.core.display import HTML
css_file = 'media/style.css'
HTML(open(css_file, "r").read())
Out[1]:
IPython notebook is part of IPython, an interactive computing architecture.
The IPython Notebook is a web-based interactive computational environment where you can combine code execution, text, mathematics, plots and rich media into a single document.
In [2]:
#some Python code
range(0,20)
Out[2]:
Markdown and LaTeX support
In [3]:
from IPython.display import YouTubeVideo
# a talk about IPython at Sage Days at U. Washington, Seattle.
# Video credit: William Stein.
YouTubeVideo('QTXyXuqfBLA')
Out[3]:
In [4]:
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('chirp chirp');
The Ferguson Area is Even More Segregated Than You Probably Guessed, Buzzfeed, 8/20/14
Linux, Mac, Windows downloads: https://store.continuum.io/cshop/anaconda/
pip install ipython[all]
Running Code in the IPython Notebook
Configuring IPython
Styling IPython Notebooks
Extensions (wait until 3.0)
Interactive widgets
NBViewer browser extensions
Converting IPython notebook to a Reveal.js-powered slideshow
IPython Notebook Security
R Markdown