-
Notifications
You must be signed in to change notification settings - Fork 673
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
UPGRADE: myst-nb
and many other dependencies
#1842
Changes from all commits
7a79c97
c33eb1f
030b73e
6a3d059
47ed1e1
496a9c9
146698b
473d246
e0975b4
3e9bd03
b95d364
23d7194
7da70f5
998ae52
915de95
623cab3
aa4f03b
7f5c23b
313685b
25dcf7e
7414d0a
0b61b6c
c89552f
78f25bf
e77c4c3
1e7719a
3151b57
f6a0603
f80d19a
6ff0a82
29c4baf
6ce4874
5d60bf2
77f47ee
1af724e
d72614b
485eb22
85f133c
fdefe3e
aae4296
1ae8027
ba60d8a
5d6f55e
2fbfc06
9a24ce7
b825ac8
ae9e668
a934bcb
1c60752
53b7f84
46a6482
66326db
ae67893
379ea11
9dd1a36
15f9268
080aa48
9673e03
582a25a
4fcc7f2
2449ff9
513b485
0460988
7316e32
ba43c33
7744fde
8de9aea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,14 +36,25 @@ execute: | |
execute_notebooks: auto | ||
``` | ||
|
||
or equivalently: | ||
|
||
```yaml | ||
sphinx: | ||
config: | ||
nb_execution_mode: auto | ||
``` | ||
|
||
Both of the above configurations are global, for per-file use `execution_mode` key. | ||
|
||
This will only execute notebooks that are missing at least one output. | ||
If the notebook has *all* of its outputs populated, then it will not be executed. | ||
|
||
**To force the execution of all notebooks, regardless of their outputs**, change the | ||
above configuration value to: | ||
|
||
```yaml | ||
execute_notebooks: force | ||
execute: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AakashGfude is this configuration managed by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. configurations related to executing notebooks are managed by |
||
execute_notebooks: force | ||
``` | ||
|
||
**To cache execution outputs with [jupyter-cache]**, change the above configuration | ||
|
@@ -56,6 +67,15 @@ execute: | |
|
||
See {ref}`execute/cache` for more information. | ||
|
||
**To execute notebooks inline during parsing**, change the above configuration value to: | ||
|
||
```yaml | ||
execute: | ||
execute_notebooks: inline | ||
``` | ||
|
||
See [Inline variable evaluation (eval)](https://myst-nb.readthedocs.io/en/latest/render/inline.html#render-eval) for more information. | ||
|
||
**To turn off notebook execution**, change the above configuration value to: | ||
|
||
```yaml | ||
|
@@ -333,7 +353,7 @@ Enable activate execution tracebacks, in your `_config.yml`: | |
```yaml | ||
sphinx: | ||
config: | ||
execution_show_tb: True | ||
nb_execution_show_tb: True | ||
``` | ||
|
||
See [the MyST-NB documentation](https://myst-nb.readthedocs.io) for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AakashGfude are these warnings because they aren't supported
mime
types in the docs? This release should be able to support everything the currentjupyter-book
release does right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmcky these mime types mentioned are not specified in the default latex mime list in myst-nb : https://github.com/executablebooks/MyST-NB/blob/master/myst_nb/core/render.py#L1195. We can add them in the _config here. Or in a separate PR along with testing out the output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisjsewell any suggestions with these warnings. I'm not a huge fan of suppressing families of warnings, so I wonder if we should specify the
mime
type order for thedocs
.