##// END OF EJS Templates
Improve conversion to latex of output cells...
Improve conversion to latex of output cells Improve the latex convert possibilites of pyout and display_data cells. Detailed changes: - set display_data_priority for latex output to start with 'latex' - use numbered equations - define relative figure size instead of absolute - specify image file position relative to input file position - pyout.text is only rendered if latex representation is not available - place display_data_format_latex output in equation environment - some minor code clean-up
jakobgager -
r8804:70796c14
Show More
Name Size Modified Last Commit Author
converters
css
js
rst2ipynblib
tests
.gitignore Loading ...
.travis.yml Loading ...
README.rst Loading ...
custom_converter.py Loading ...
dollarmath.py Loading ...
nbconvert.py Loading ...
nbstripout.py Loading ...
notebook_sphinxext.py Loading ...
preamble.tex Loading ...
requirements.txt 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

You will need the python markdown module

$ pip install markdown

as well as the latest development version of docutils. This can be installed via

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

Nbconvert also needs the pandoc multiformat converter 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.

For conversion to HTML, pygments is also required

$ pip install pygments

Running Tests

$ pip install nose
$ nosetests

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.