[Notebooks update] Session Persistence for Variables and Files! | Kaggle
Hi Kagglers,
We’ve heard your feedback, and now interactive editing of your notebooks includes optional “Persistence” settings. This should be helpful if you find yourself losing progress due to situations like “Are you still there?” timeouts.
There are 4 modes:
- No persistence: Each time you run your notebook you have a clean slate of working files/variables.
- Variables only: Each time your notebook session ends, variables will be saved. When you next run your notebook those variables will be restored.
- Files only: Files in your /kaggle/working directory will carry over from one run of your notebook to the next.
- Variables & Files: Provides the features of “Variables only” and “Files only” together.
Caveats:
- Persistence must be enabled before the session stops for it to take effect (you can't persist what is already lost).
- All persistence modes are best-effort, there are circumstances where data loss is still possible (ex. Notebook crashes).
- Persistence adds some time to stopping/starting your notebooks (to save/restore your data).
- Persistence can’t restore all types of data (ex. GPU/TPU memory), or data that gets to be too large to fit in your /kaggle/working directory.
- This only affects interactive Notebooks, not Save Versions.