This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
[BUGFIX]Disable nbsphinx plugin execute code chunks #1197
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There are cases that we don't want to compute the results for the
python
code chunks in the.md
files. So I added a configuration for disabling execute code chunks when converting.md
files to.ipynb
files. See #1191 #1192However, the
nbsphinx
plugin ofsphinx
, which is in charge of reading.ipynb
files forsphinx
, automatically executes all chunks without output, which is opposite to what we want. So this pull request turns this feature off.Turning this off won't have any side effect because all the
ipynb
files in this project resides in thedocs/examples/
path and they are all converted frommd
files. So even if we want to compute the results, all the computation should be done inmd2ipynb.py
file andnbsphinx
will still not compute code chunks in the normal process.Checklist
Essentials
Changes
Comments
cc @dmlc/gluon-nlp-team