Can you hide code cell contents when building from ipynb, or only MyST?
See original GitHub issueIs your feature request related to a problem? Please describe. I’m trying to hide code cell contents when building an ipynb. When I followed the instructions by adding
{
"tags": [
"hide-input",
]
}
to a code cell in the ipynb, it didn’t work. I’m guessing it has to be MyST, but that wasn’t clear from the documentation.
A link to the documentation page where you see an issue. https://jupyterbook.org/interactive/hiding.html#hide-code-cell-content
Describe the solution you’d like Describe a way to hide code cell content from ipynb’s if one exists, or if it’s only for MyST, please clarify that.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Hide or remove content - Jupyter Book
You can hide most cell elements of a page. The sections below describe how to hide each using cell tags in MyST Markdown....
Read more >Hide cell contents - MyST-NB
You cannot hide an entire markdown cell, but you can hide sections of markdown content by using roles and directives. For information on...
Read more >How to hide code in Jupyter Notebook? - MLJAR
You can add tag for cell that has code that you would like to hide. It is simple. Please click View -> Cell...
Read more >How to hide code from cells in ipython notebook visualized ...
Personally, I prefer to keep it at the bottom of the document. To do so, simply move the display(button) line to a separate...
Read more >Tag to skip cell execution · Issue #833 - GitHub
The example I'm working with now are magic calls. ... I would like a tag that I can add to a cell, not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
for sure - I think this is actually already in the docs, we should just link to it to make it more discoverable: https://jupyterbook.org/advanced/advanced.html#how-should-i-add-cell-tags-to-my-notebooks
any interest in making a PR that adds a link to that section when we talk about hiding stuff w/ Jupyter Book?
Perfect, thanks @choldgraf! Would this be worth including in the docs?