Important:

IBM Cloud Pak® for Data Version 4.7 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.

Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.

Hiding sensitive code cells in a notebook (Watson Studio)

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. Any collaborators in the same project can see the cells, but when you share a notebook with a link, those cells will be hidden from anyone who uses the link.

To hide code cells:

  1. Open the notebook and select the code cell to hide.

  2. 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

    Syntax for hiding code cells

Parent topic: Sharing notebooks