-
Notifications
You must be signed in to change notification settings - Fork 84
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
Extension error
when both "myst_nb"
and "myst_parser"
are in extensions
#421
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Extension error
when both "myst_nb"
and "myst_parser"
are in extensions
Hi ! +1 on this issue. I think warning about this behaviour should be made more visible, maybe in the https://myst-nb.readthedocs.io/en/latest/quickstart.html |
I noticed when googling that there used to be a From this page:
This is more direct (and possibly not the friendliest of language, maybe why it was removed) but still doesn't state directly that activating both will cause an error |
@NickleDave If I replace source_suffix = {'.md': 'markdown'`} I get the error
It seems to me that the myst_parser is required to write in Markdown. |
I have the same issue -- I have non-notebook documentation written in myst-markdown, and wanted to switch from FYI -- I have installed myst_nb from the current |
I'm new to this and quite confused. Maybe the general idea is to pipe everything via https://docs.readthedocs.io/en/stable/guides/jupyter.html#using-notebooks-in-other-formats suggests: # conf.py
nb_custom_formats = {
".md": ["jupytext.reads", {"fmt": "mystnb"}],
} In which case |
+1 same issue here 😅 are already workarounds available? |
Sounds like the question of whether to specify both But we're now at a point on this issue where people are chiming in with multiple things that might or might not be related. @chrisjsewell @choldgraf apologies in advance for adding to your notifications but what do you think about clarifying here and/or adding info in the docs about when and how to use these extensions together? |
Describe the bug
Hi, thanks so much for MyST-NB, I am very happy I can include .md notebooks in my build, and switch over from
nbsphinx
fairly painlessly.I am not even sure if this is a bug per se but it is behavior that was a bit surprising so I want to raise an issue about it, since I would guess that other people that switch to
myst-parser
and then addmyst-nb
might run into the same situation.context
I added MyST-NB to a project after switching from .rst to MyST parser, because I wanted to additionally execute notebooks during builds, which double as tutorial material in the docs.
This gave me something like the following in my
conf.py
expectation
I expected to be able to just build and execute notebooks after this.
bug
But instead I get:
(I get the same error when using
sphinx-autobuild
, if it matters.)problem
I think this might be intended behavior, judging from this note in the docs?
But it's still surprising, at least to me.
I would guess one of the following behaviors might be a bit less confusing:
there is no need to add myst_parser when you are using myst_nb, please remove myst_parser from extensions in conf.py
myst_parser
fromextensions
if you addmyst_nb
"Reproduce the bug
I am able to get this to happen with a minimal build so I'm pretty sure it's not something unique to my setup.
extensions
includesmyst_nb
andmyst_parser
index.md
List your environment
The text was updated successfully, but these errors were encountered: