Sunet Drive integration¶
JupyterHub can be integrated with Sunet Drive so you can work with your Drive files from inside a notebook. This keeps your data in Drive (shared, backed by the platform's object storage, and accessible from your other devices) rather than only on the notebook server.
Whether this integration is enabled, and exactly how Drive appears, depends on how your hub was provisioned. Ask your administrator if you don't see it.
Accessing your files¶
When the integration is enabled, your Drive files are available from within the notebook environment, so you can read datasets and write results back to Drive directly from your code. Because the data lives in Drive, it persists independently of your notebook server and is reachable from the Drive web interface and sync clients as well.
Alternative: access Drive over WebDAV or the API¶
If your hub does not have the built-in integration, you can still reach Drive from a notebook using its standard interfaces:
- WebDAV, with an application password instead of your account password.
- The Nextcloud APIs, for scripted access.
See the Sunet Drive documentation for the relevant guides.
Choosing where data lives¶
- For data you want to keep, share, or reuse across sessions, store it in Drive.
- For large intermediate or scratch data that you don't need to keep, your notebook home directory is fine, within the limits of your server profile.