mkdocs-jupyter icon indicating copy to clipboard operation
mkdocs-jupyter copied to clipboard

Plugin Option to remove In [ ] and Out [ ]

Open thomasmarwitz opened this issue 9 months ago • 1 comments

From the docs: Image

Setting noinput: True removes the input (as the name implies) and the Out [...].

Image

Setting show_input: false (without setting noinput):

Image

In our use case, we would like to show Input and Output cells but not these prefixes In[ ] and Out[ ], as they take away space, especially on mobile:

Image

Our workaround was the following:

.jp-InputPrompt, .jp-OutputPrompt {
    display: none !important;
}

But I guess many people want to optimize code listings to save space for mobile, therefore, I suggest adding two options:

- hide_in
- hide_out

This would allow to remove no_input as the same could be achieved by combining hide_in: True & show_input: False - only about the "other metadata" I'm not sure what that is? Perhaps cell tags?

WDYT?

thomasmarwitz avatar Feb 27 '25 17:02 thomasmarwitz

I would love this.

gialmisi avatar May 19 '25 12:05 gialmisi