README.rst
62 lines
| 1.6 KiB
| text/x-rst
|
RstLexer
Anton I. Sipos
|
r6242 | ================================================================ | ||
nbconvert: conversion utilities for the IPython notebook format | ||||
================================================================ | ||||
Overview | ||||
======== | ||||
nbconvert provides command line utilities to convert to and from IPython | ||||
notebooks and standard formats: | ||||
- ReST | ||||
- Markdown | ||||
- HTML | ||||
- Python script | ||||
Fernando Perez
|
r8394 | As these tools mature, these utilities will be merged into IPython. | ||
Anton I. Sipos
|
r6242 | |||
Anton I. Sipos
|
r6245 | Requirements | ||
============ | ||||
Fernando Perez
|
r8393 | |||
Fernando Perez
|
r8429 | You will need the `python markdown module | ||
<http://pypi.python.org/pypi/Markdown>`_ :: | ||||
$ pip install markdown | ||||
as well as the latest development version of docutils. This can be installed | ||||
Fernando Perez
|
r8393 | via :: | ||
Anton I. Sipos
|
r6245 | |||
Jason Grout
|
r8412 | $ curl http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/docutils/?view=tar > docutils.tgz | ||
Fernando Perez
|
r8414 | $ pip install -U docutils.tgz | ||
Anton I. Sipos
|
r6245 | |||
Fernando Perez
|
r8393 | Nbconvert also needs the `pandoc multiformat converter | ||
<http://johnmacfarlane.net/pandoc>`_ to do the actual text conversions. Pandoc | ||||
is included in most linux distributions package managers, and the author's | ||||
website contains links to Mac OS X and Windows installers. | ||||
Anton I. Sipos
|
r6261 | For conversion to HTML, pygments is also required | ||
:: | ||||
$ pip install pygments | ||||
Fernando Perez
|
r8393 | |||
Anton I. Sipos
|
r6242 | Running Tests | ||
============= | ||||
:: | ||||
$ pip install nose | ||||
$ nosetests | ||||
Fernando Perez
|
r8394 | |||
Using nbconvert | ||||
=============== | ||||
You will need to either put the source repository in your ``$PATH`` or symlink | ||||
the ``nbconvert.py`` script, as well as the ``css`` and ``js`` subdirectories | ||||
to a directory in your ``$PATH``. Once this is done, you can call it as:: | ||||
nbconvert -f <FORMAT> notebook.ipynb | ||||
Use ``nbconvert -h`` for up to date help on the available formats. | ||||