This article outlines recommended practices when working with cloud-based Jupyter Notebooks in Terra. For more information about the capabilities of Terra-based notebooks, explore the Visualization and Statistics section of our support knowledge base.
1. When to save output to Workspace bucket
Because the Cloud Environment PD is unique to each user and each workspace, and because it is inaccessible outside of the workspace, there are several instances where you will want or need to save output generated in an interactive analysis to the Workspace bucket.
Sharing data with colleagues
The Persistent Disk associated with your workspace Cloud Environment is unique to you. Thus, in order to share generated data with colleagues, even colleagues who are working in the same workspace and the same notebook, you will need to copy it to your Workspace bucket.
Using generated data as workflow input
Because the PD is inaccessible from outside your Cloud Environment, you will need to copy any data generated in an interactive analysis to the Workspace bucket to use as input for a workflow.
Deleting the Persistent Disk
When you delete or recreate your Cloud Environment, you have the option of keeping or deleting the associated Persistent Disk. If you choose to delete the PD, you will want to ensure that any data you want to keep is copied to the Workspace bucket.
A note of caution when deleting your Cloud Environment Persistent Disk! If the current outputs are important, you should save them to your Workspace bucket before re-creating your Cloud Environment Persistent Disk. To learn more about how to do that see this article.
If you are not worried about how the outputs will change after updating your Cloud Environment, you can re-run the notebook as soon as your Cloud Environment and Persistent Disk has been re-created.
2. Re-create your cluster regularly
We recommend deleting and re-creating Cloud Environments every month or two to stay updated.
To keep track of how old your Cloud Environments are, you can navigate to the Cloud Environments section of your Terra profile:
Why do you need to update? To maintain the highest standards of OS security, and to add new features, we regularly update the implementation of the Cloud Environment. Frequent updates means you may run into trouble if a software update affects the type of environment you have set up for notebooks. To mitigate potential problems, we recommend deleting and then re-creating cloud environments every other month.
Deleting and re-creating a cloud environment is quick and simple! Just click on the "Cloud Environment" button to open the configuration tab, and click "Delete Environment Options".
You will have the option of keeping your Persistent Disk.