Skip to content

pinned="false" still shows input cells in build #34

Answered by mbostock
gganapat asked this question in Q&A
Discussion options

You must be logged in to vote

Per https://observablehq.com/notebook-kit/desktop-guide#pinning-cells, emphasis added:

Pinned cells stay open even when they are not focused. JavaScript cells are pinned by default, but other cells default to unpinned. If a cell doesn’t display anything, it will stay open regardless of whether it is pinned.

This last part is only true in Desktop, when you are editing notebooks; when using Notebook Kit (either in preview or build), the source code of unpinned cells won’t be visible even if they don’t display anything. Displaying the source code is necessary in Desktop because without the source code being visible, there would (as currently designed) be no way to reopen the hidden cell.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gganapat
Comment options

Answer selected by mbostock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #33 on August 04, 2025 20:10.