-
Notifications
You must be signed in to change notification settings - Fork 60
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 "Hide cell contents" directives #160
Comments
@matthewturk - thanks for the issue, and great timing! In the latest release we added functionality to reference notebook output as a figure. First, label the cell using cell metadata like so (following the style of quarto): #| label: my-cell
5 + 5 Then you can reference the label in a figure directive:
Doing so will embed the output as a figure. Sounds like this matches the second option in your proposals? There isn't a ton of flexibility yet, e.g. you can't hide cells directly in the notebook, only when including elsewhere. Give it a try and let us know what else you need to make this any more usable! |
Thank you! What I was missing was indeed referencing it using I'm fine with closing the issue, although if you want to use it to track getting cell metadata like mystnb that's OK with me too. |
I added info about figures referencing cell output to the docs in #177 I'll close this now, and we can open a new issue when we start thinking more about cell metadata. |
Is there any plan to support myst-nb cell tags like hide-input, remove-cell... |
Context
I'd like to specify some cells in jupyter notebooks as being hidden, using either the YAML frontmatter options or using the cell metadata tags, as specified in the MySTNB documentation. At present, neither suppresses when using
.ipynb
as content sources andmyst start
to serve.Proposal
I think either allowing these configuration options, or support direct transclusion of figures from notebooks would be sufficient to enable generating figures/diagrams using jupyter notebooks. (i.e., not a thumbnail, but a direct embedding of the cell outputs using figure references.) My particular use case is where I'm doing some internal API manipulations to expose behavior and methods, so the underlying code may just serve to confuse.
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: