HTML5 slides
Making use of different cell markings for slide shows, a Notebook file is converted
into a presentation with multiple HTML5 slides (using the reveal.js framework).
LaTeX/PDF
Such a file can also be converted to a LaTeX file, which then can be converted into a
PDF document.
RestructuredText
RestructuredText (.rst) is used, for example, by the SPHINX documentation
package for Python projects.
ANALYTICS AND PUBLISHING PLATFORM
A major advantage of IPython Notebook is that you can easily publish and share your complete Notebook with
others. Once your analytics project with IPython is finished, you can publish it as an HTML page or a PDF, or use
the content for a slide presentation.
The format of an IPython Notebook file is based on the JavaScript Object Notation
(JSON) standard. The following is the text version of the Notebook displayed in Figure 2-3
— you will notice some metadata, the different types of cells, and their content, and that
even graphics are translated into ASCII characters:
{
“metadata”: {
“name”: ””
},
“nbformat”: 3 ,
“nbformat_minor”: 0 ,
“worksheets”: [
{
“cells”: [
{
“cell_type”: “code”,
“collapsed”: false,
“input”: [
“import numpy as np\n”,
“import matplotlib.pyplot as plt”
],
“language”: “python”,
“metadata”: {},
“outputs”: [],
“prompt_number”: 1
},
{
“cell_type”: “code”,
“collapsed”: false,
“input”: [
“a = np.linspace(0, 10, 25)\n”,
“b = np.sin(a)”
],
“language”: “python”,
“metadata”: {},
“outputs”: [],
“prompt_number”: 2
},
{
“cell_type”: “markdown”,
“metadata”: {},
“source”: [
“Inline comments can be easily placed between code cells.”
]
},
{
“cell_type”: “code”,
“collapsed”: false,
“input”: [