Save and share results in Snowflake Notebooks¶
You can collaborate on data analysis with others using Snowflake Notebooks.
Each Snowflake Notebook is owned by a role, so other users that are granted or inherit the owner role can open, run, and edit notebooks owned by that role. You cannot share the notebook with other roles.
Caution
Notebooks are saved every three seconds. If other users have the notebook open and run it, you might overwrite each other’s work.
Export your notebook as file for sharing¶
To share your notebook externally, you can export it as an .ipynb
file. The exported notebook can be shared with others who may not
use Snowflake Notebooks. They can open the notebooks with other solutions that are compatible with the .ipynb
format.
Sign in to Snowsight.
Select Projects » Notebooks.
Open the notebook that you want to export.
Acknowledge that some commands might not be supported in other notebook tools, and select Export.
A file named
notebook_app
is downloaded. You can then import the exported notebook into another Snowflake account or another tool that supports.ipynb
files.
Note
Cell outputs are not included as part of the export, only the cell content.
Collapse cells to present notebooks to others¶
You can collapse the code in a cell to see only the output. For example, collapse a Python cell to show only the visualizations produced by your code, or collapse a SQL cell to show only the results table.
To change what is visible in the cell, select the Collapse results toggle.
This button has several toggles to allow you to choose which parts of the cell to collapse.
Considerations for sharing notebooks¶
The role used to create the notebook owns the notebook. For details on privileges required for notebooks, see Access control requirements.
Any user with that role, or whose role inherits that role, can edit and view the notebook.
To share and collaborate on a notebook with another user, that user must either have the owner role or be granted a role that inherits the owner role of the notebook.
You cannot share a notebook with other roles.