##// END OF EJS Templates
added 'py' format, which is cleaner than PyWriter...
added 'py' format, which is cleaner than PyWriter additionally, it allows for future extensions (where you drop the prompt numbers, or all of the markdown cells, or drop just the code and keep only the markdown around as comments, as a template for homework, for example). Currently, as noted in ConverterPy's docstring, it does not guarantee that what gets written is valid python, since the code cells may contain magics.
Paul Ivanov -
r8261:6cb9ef51
Show More
Name Size Modified Last Commit Author
css
js
rst2ipynblib
tests
.gitignore Loading ...
README.rst Loading ...
custom_converter.py Loading ...
decorators.py Loading ...
dollarmath.py Loading ...
lexers.py Loading ...
nbconvert.py Loading ...
nbstripout.py Loading ...
preamble.tex Loading ...
rst2ipynb.py Loading ...
work_flow.txt Loading ...

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
  • PDF
  • Python script

As these tools mature, these utilities will be merged into IPython

Requirements

The latest development version of doctest is required. This can be installed via

$ curl http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/docutils/?view=tar > docutils.gz
$ pip install -U docutils.gz

For conversion to HTML, pygments is also required

$ pip install pygments

Running Tests

$ pip install nose
$ nosetests