In Jupyter Notebooks you can add cell level configuration by specifying tags in the cell metadata. There are also global controls in the project settings.
Notebook Cell Tags¶
Tags are a list of strings under the tags
key in the cell metadata, which can be set in JupyterLab, VSCode or in a {code-cell}
directive.
In the JSON representation of a jupyter notebook these look like:
{
"cell_type": "code",
"source": ["print('hello world')"],
"metadata": {
"tags": ["my-tag1", "my-tag2"]
}
}
In Markdown of a jupyter notebook these look like:
```{code-cell} python
:tags: [remove-input]
print("This will show output with no input!")
```
for a single tag, or
```{code-cell} python
:tags: [my-tag1, my-tag2]
print("This will show output with no input!")
```
for any number of tags.