question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can you hide code cell contents when building from ipynb, or only MyST?

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
choldgrafcommented, Jun 26, 2020

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?

0reactions
MaxGheniscommented, Jun 26, 2020

Perfect, thanks @choldgraf! Would this be worth including in the docs?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found