-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support myst-nb tags and settings for executable code cell block #50
Comments
@fwkoch do we have this tagged somewhere in the mystjs repo as well? I remember talking about it! |
Yes taking into account the myst-nb cell tags like hide-input, remove-cell... would be really great 👍 Update: I just come to realize my question is most probably more related to mystjs |
After a relatively long search, I don't think we currently have this feature. However, I basically and gradually clear about how to implement this. From my perspective ,
|
Hey @GYHHAHA - thanks for the issue! Finally spent some time chewing on this, and I think you are on the right track. In particular, it's important to identify most of the work needs to go into I'm pretty sure that's basically parroting your previous comment? Getting slightly more into the weeds: We want to support jupyterbook-style metadata tags. We also probably want to support code cell options provided inline, i.e.: #| hide-code: true
print('hello world') These are already nicely consolidated into
This means to propagate this info down to the What does it mean to "update those nodes accordingly" though...? I suspect we will need to update the node specs to include additional fields to contain this info. The What do these new fields look like? It doesn't make a ton of sense to keep the full name, I don't think... for example, maybe One additional small thought: We may want to venture outside notebooks and add this as an option to the
However, this would probably require implementing on the Anyway! Quite keen to see your implementation if you are willing to make a PR! Happy to help out along the way however you need. |
Thanks for your informative response! It's very clear. Since myst-cli and myst-theme are separated repos, so I will split into 2 prs, one for transformer stuff + type spec, and one for react rendering. Personally speaking, I vote on keeping the origin jupyter meta tags, both beneficial for new comer to verify or search and semantic ambiguity-free. Another reason is the jupyter output can be html/text/picture/... even std err or stream, user might want to remove-stderr as documented here, simple "output" will result to difficulty for extending. For the
Thanks again for your help! @fwkoch |
In order to make --- update I see this is a |
This would be realy great. Many times I'd like to present the results from a live notebook (running as a webpage with Is there any roadmap for this? |
Hi @MatusGasparik , the roadmap is in here. Unfortunately, I'm in busy days these weeks, I hope I can finish the rest of work in here at the middle of July and take a overall look on that with @rowanc1 . |
Thanks @GYHHAHA and @MatusGasparik! Our attention has mostly been on getting the execution working directly in MyST, and I was a bit hesitant to do both of these at the same time. The execution work is starting to settle down now, and I think this is one of the things that we can turn to next! @GYHHAHA has got a great start on that already. 🚀 @MatusGasparik are you using any ipywidgets in your work by chance? |
Hi @rowanc1. Not yet, or not directly. I’m also just getting started. But I will definitely be using some of the PyViz tools (HoloViews, Bokeh, …) and Pyvista for interactive visualization. The idea of having MyST based interactive webpages connected to a Jupyter server is beyond amazing! |
@banesullivan is ideally going to be at scipy next week helping out with the MyST poster there! Very excited to be working with him a bit to support rich visualizations & making them fully interactive! Will try to get to that hidden code/outputs soon! |
Context
Currently, the executed result directly ignores the myst-nb tags and settings. It would be great if we bring these features into the mystjs rendering process, especially for tags like
hide-*/skip-execution/raises-exception/remove-*
(*
can be input/output/cell).Proposal
No response
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: