Hiding sensitive code cells in a notebook
Hide code cells that contain sensitive data, such as credentials for data sources.
Note: When you share a notebook with a link, only collaborators with Editor or Admin role can see the content of code cells that were marked as sensitive. Collaborators with Viewer role can't see this content.
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 and R languages, enter the following syntax:
# @hidden_cell
Parent topic: Sharing notebooks