Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow temporarily suppressing execution of cells #177

Open
slavoutich opened this issue Apr 8, 2021 · 1 comment
Open

Comments

@slavoutich
Copy link

Problem that I would like to solve is to avoid cells compilation, that can be quite slow, when it is not needed. For example, one wants to build Sphinx documentation to check if cross-referencing between classes/functions is done right. Checking this does not require Jupyter cell execution, but this task can easily take on the order of several minutes, depending on how heavily jupyter-sphinx is used.

I propose to make jupyter-sphinx compilation to be suppressable by some environment variable, for example:

make JUPYTER_SPHINX_SUPPRESS=true html

In this case, outputs of jupyter-sphinx can be replaced by some dummy output instead of actually executed results, which should speed up compilation a lot.

@hagenw
Copy link

hagenw commented Oct 15, 2021

That's exactly what I was looking for as well. E.g. when running link checking with sphinx it would be great to disable execution of Jupyter cells.

One solution would be to add a config option, which can be used to disable execution of cells globally and which can then be easily set when running sphinx on the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants