Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

the tags remove-input - remove-output - remove-cell are effective on code cells only
the feature is activated through the code cell’s `metadata.tags

using the myst directive did not pan out here...
here’s the textual input for the first cell below
the other two have a similar content, but for the tag

```{code-cell} ipython3
:tags: [remove-input]
print("with remove-input we show the output but not the code")
```

setting the remove-input tag

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 1 remove-input code cell below

with remove-input we show the output but not the code

↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ hide-input cell above


setting the remove-output tag

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 1 remove-output code cell below

print("this time we see the code and not the output")

↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ remove-output cell above


setting the remove-cell tag

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 1 remove-cell code cell below

↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ remove-cell cell above