#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())
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.
#some Python code
range(0,20)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
Markdown and LaTeX support
from IPython.display import YouTubeVideo
# a talk about IPython at Sage Days at U. Washington, Seattle.
# Video credit: William Stein.
YouTubeVideo('QTXyXuqfBLA')
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/
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
Becky Sweger
bsweger@gmail.com
@bendystraw