Skip to content

Conversation

@danielballan
Copy link
Contributor

This uses cell metadata to make a cell hidden by default but expandable, both in JupyterLab and in the rendered HTML.

---
tags: [hide-cell]
jupyter:
  source_hidden: true
---

The tags operate on MyST. The jupyter key operates on JupyterLab. See references below.

In JupyterLab

image

image

References:

Rendered in HTML by MyST

image

image

Reference: https://jupyterbook.org/en/stable/interactive/hiding.html#hide-entire-code-cells

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@bsipocz bsipocz merged commit 05d4045 into scientific-python:main May 14, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants