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
I think it's possible and would be helpful for jupytext to convert between notebook and markdown while preserving MyST functionality in both formats. I have been having a hard time collaborating with notebook authors, who are only comfortable working with a traditional notebook and simple development requirements, on a jupyter book. With the upcoming shift to jupyter book 2.0, I'm trying to go full MyST, and am now stuck on the issue of md:myst format encoded by jupytext not working with myst even while the paired notebook does. Having only non-working md:myst files in the repository seems to require unnecessary complications during building.
Presently the jupyterlab-myst extension utilizes a YAML block in the first cell, but the markdown that jupytext writes in this case does not pass this frontmatter to the YAML block in markdown. You get two YAML blocks, and myst does not find its frontmatter in the second.
What do you think about modifying the md:myst conversion in jupytext to keep the YAML frontmatter together in markdown? The notebook metadata could go under the jupyter key, as it currently does for the md format, for separation. Yes, there would be some complication to work through with the kernelspec field to keep both jupyter and myst working and configurable.
I will share a draft PR that minimally accomplishes how it could work (while appearing to break stuff, but I can get to that).
The text was updated successfully, but these errors were encountered:
Thank you @itcarroll for opening this issue - it's great to have you here! I plan to look into the issue and the associated PR over the weekend, but sure that sounds like a welcome improvement!
CC @chrisjsewell @choldgraf
I think it's possible and would be helpful for jupytext to convert between notebook and markdown while preserving MyST functionality in both formats. I have been having a hard time collaborating with notebook authors, who are only comfortable working with a traditional notebook and simple development requirements, on a jupyter book. With the upcoming shift to jupyter book 2.0, I'm trying to go full MyST, and am now stuck on the issue of
md:myst
format encoded by jupytext not working withmyst
even while the paired notebook does. Having only non-workingmd:myst
files in the repository seems to require unnecessary complications during building.Presently the jupyterlab-myst extension utilizes a YAML block in the first cell, but the markdown that jupytext writes in this case does not pass this frontmatter to the YAML block in markdown. You get two YAML blocks, and
myst
does not find its frontmatter in the second.Notebook
MyST Markdown
What do you think about modifying the
md:myst
conversion in jupytext to keep the YAML frontmatter together in markdown? The notebook metadata could go under thejupyter
key, as it currently does for themd
format, for separation. Yes, there would be some complication to work through with thekernelspec
field to keep both jupyter and myst working and configurable.I will share a draft PR that minimally accomplishes how it could work (while appearing to break stuff, but I can get to that).
The text was updated successfully, but these errors were encountered: