| jupytext |
|
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| kernelspec |
|
sphinx-togglebutton is particularly useful with MyST-NB notebooks.
This is used to show and hide code cell inputs and outputs.
Here is a demonstration of the functionality.
The code below generated the buttons that follow:
```{toggle-all-button}
```
```{toggle-all-button} cell-inputs
```
```{toggle-all-button} cell-outputs
```
:tags: [hide-input]
for ii in range(20):
print(f"Number: {ii}")
:tags: [hide-output]
for ii in range(20):
print(f"Number: {ii}")
:tags: [hide-cell]
for ii in range(20):
print(f"Number: {ii}")