QuantEcon / sphinxcontrib-jupyter

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

FEAT: Add global ignore to no-execute code-blocks #129

Closed mmcky closed 5 years ago

mmcky commented 5 years ago

This PR adds a global ignore option for code blocks specified with :class: no-execute.

This can be enabled in the conf.py file through jupyter_ignore_no_execute=True or with sphinx-build using D flag and specifying jupyter_ignore_no_execute=1

this is useful for compiling a set of notebooks that may have blocks that contain errors but would like to run the cells anyway. This is being used for QuantEcon lectures.

natashawatkins commented 5 years ago

What about blocks that contain code that we don't want to run, ie. C code or something?

mmcky commented 5 years ago

@natashawatkins -- discussion found in the issue: https://github.com/QuantEcon/lecture-source-py/issues/85