QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
76 stars 23 forks source link

Develop jupyter directive for full control option #13

Open mmcky opened 6 years ago

mmcky commented 6 years ago

Develop a custom Jupyter directive for sphinx that allows for full control of the notebook concept.

An example would be:

.. jupyter:: {{ language }}
    :type: in
    :no-execute:
    :label: xyz

or

.. jupyter:: {{ language }}
    :type: out
    :label: xyz

Potential to add:

the downside of using a custom directive would be support for other output types such as html and pdf.

mmcky commented 6 years ago

PR #84 starts this work to include a new directive to get more control over the jupyter notebooks, including the option of cell-break (e.g., when the text is too long)

Implemented:

allow for explicit control of jupyter blocks

Notes

  1. markdown and raw can have cell attachments https://nbformat.readthedocs.io/en/latest/format_description.html#cell-attachments