ipypublish.sphinx.notebook.parser module

class ipypublish.sphinx.notebook.parser.NBParser(*args, **kwargs)[source]

Bases: docutils.parsers.rst.Parser

Sphinx source parser for Jupyter notebooks. adapted from nbsphinx

parse(inputstring, document)[source]

Parse text and generate a document tree.

set_application(app)[source]

set_application will be called from Sphinx to set app and other instance variables

Parameters

app (sphinx.application.Sphinx) – Sphinx application object

supported = ('jupyter_notebook',)