You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My notebook is executed correctly in the local context and included.
expectation
I expected it to pick up the configuration from my conf.py.
bug
But instead I ran into a "Executing notebook failed: CellTimeoutError [mystnb.exec]" error, which I tried to fix using the following configuration in conf.py
# https://myst-nb.readthedocs.io/en/latest/configuration.html#global-configurationnb_execution_timeout=240# otherwise it's a 30 seconds maximum per cell,# https://myst-nb.readthedocs.io/en/latest/configuration.html# Executionnb_execution_raise_on_error=True
problem
So it might be only a documentation question, but: How do I set the configuration if I want to include a notebook which is not present in the docs folder with the sphinx conf.py file?
I get the warning: (ERROR/3) myst-nb configuration invalid: 'execution_timeout' must be of type <class 'int'> (got '120' that is a <class 'str'>). [mystnb]
Is there any way to set the NbParserConfig in the include directive?
Reproduce the bug
Use the include directive and add it to the extra/test.rst file:
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉
enryH
pushed a commit
to RasmussenLab/pimms
that referenced
this issue
Feb 5, 2024
Describe the bug
context
When I include a notebook into sphinx from a different location as described here, the conf.py parameter is not picked up:
My notebook is executed correctly in the local context and included.
expectation
I expected it to pick up the configuration from my
conf.py
.bug
But instead I ran into a "Executing notebook failed: CellTimeoutError [mystnb.exec]" error, which I tried to fix using the following configuration in
conf.py
problem
So it might be only a documentation question, but: How do I set the configuration if I want to include a notebook which is not present in the
docs
folder with the sphinxconf.py
file?If I try to set the
docutils.conf
file asI get the warning:
(ERROR/3) myst-nb configuration invalid: 'execution_timeout' must be of type <class 'int'> (got '120' that is a <class 'str'>). [mystnb]
Is there any way to set the
NbParserConfig
in the include directive?Reproduce the bug
include
directive and add it to theextra/test.rst
file:and then include that into
index.rst
:List your environment
I don't have jupyter book installed.
The text was updated successfully, but these errors were encountered: