QuantEcon / sphinxcontrib-jupyter

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

FEAT: Support to specify data or support files for a notebook #107

Closed mmcky closed 5 years ago

mmcky commented 6 years ago

python_essentials screenshot from 2018-09-12 11-47-23

I think what we should do is add this to .. jupyter:: to specify a file dependence. In the case of a local dependency (such as a data file) we could add:

.. jupyter::
   :attachment: <reference to file>

probably shouldn't use this term as it is something we can support for markdown cells (https://nbformat.readthedocs.io/en/latest/format_description.html?highlight=attachment#cell-attachments)

or

.. jupyter::
   :file: <reference to file>
mmcky commented 5 years ago

This has been implemented in #250. Not through a jupyter directive but as a dependency list in the conf.py file.