IPython notebook can be used to generate pretty notebooks that can be easily deployed on to the web. Such deployment should be particularly easy using jekyll (used to create this website) as all notebooks can be deployed as posts after converting the notebooks to markdown (see nbconvert)

See a list of interesting iPython notebooks here.

In particular, the style of this notebook is ideal for a book chapter.