##// END OF EJS Templates
create rst converter and fix some bugs
create rst converter and fix some bugs

File last commit:

r6285:eb51d575
r9363:65d8b934
Show More
rst2ipynb.py
21 lines | 757 B | text/x-python | PythonLexer
Paul Ivanov
make rst2ipynb.py executable
r6284 #!/usr/bin/env python
slojo404
first pass of docutil writer/translator for rst to ipython notebook conversion. It is based on the html4css1 writer/translator and as such has some vestigial code hanging around while I continue to figure out how everything fits together
r6232 """
A minimal front end to the Docutils Publisher, producing an ipython notebook.
"""
import docutils.readers.standalone
import docutils.parsers.rst
import docutils.core
slojo404
some pep8 cleanup
r6277 import rst2ipynblib
slojo404
first pass of docutil writer/translator for rst to ipython notebook conversion. It is based on the html4css1 writer/translator and as such has some vestigial code hanging around while I continue to figure out how everything fits together
r6232 from docutils.core import publish_cmdline
Paul Ivanov
unused import and typos
r6285 description = ('Generates an ipython notebook from standalone '
'reStructuredText source. ' +
slojo404
some pep8 cleanup
r6277 docutils.core.default_description)
slojo404
first pass of docutil writer/translator for rst to ipython notebook conversion. It is based on the html4css1 writer/translator and as such has some vestigial code hanging around while I continue to figure out how everything fits together
r6232
publish_cmdline(reader=docutils.readers.standalone.Reader(),
parser=docutils.parsers.rst.Parser(),
writer=rst2ipynblib.Writer(),
enable_exit_status=1,
usage=docutils.core.default_usage,
description=description)