Skip to content

Optionally shows the code cell prompt (execution count)#70

Open
brichet wants to merge 1 commit into
deathbeds:mainfrom
brichet:code-cell-prompt
Open

Optionally shows the code cell prompt (execution count)#70
brichet wants to merge 1 commit into
deathbeds:mainfrom
brichet:code-cell-prompt

Conversation

@brichet
Copy link
Copy Markdown

@brichet brichet commented Nov 26, 2024

Allows displaying the input prompt (execution count) for Notebook code cell.

Checklist

  • ran doit lint locally

References

Fixes #67

Code changes

  • a setting (showCodeCellPrompt) to enable or disable display of the prompt
  • a class (.jp-deck-showCodeCellPrompt) added to the panel, depending on the value of the setting
  • CSS that hides the prompt or not, depending on the class on the panel

If the panel do not have the class, prompt on all cells are not displayed: display: none.
If the panel have the class, prompt of code cell are displayed, and prompt of other cells are hidden (visibility: hidden), to keep left-align between cells.

User-facing changes

Display the code cell prompt if expected.

Backwards-incompatible changes

None

@brichet brichet marked this pull request as draft November 26, 2024 13:25
@brichet brichet marked this pull request as ready for review November 29, 2024 16:08
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.

(optionally) display cell execution status

1 participant