Hide sensitive code cells in a notebook
If your notebook includes code cells with sensitive data, such as credentials for data sources, you can hide those code cells from anyone you share your notebook with. Project collaborators can see hidden cells.
To hide code cells:
- Open the notebook and select the code cell to hide.
Insert a comment with the hide tag on the first line of the code cell.
For the Python, R, and Scala languages, enter the following syntax: