Serverless notebooks make working with data simple and efficient, but until now, no platform has offered a way to fully preserve notebook state after an idle disconnect. Customers tell us they often step away for lunch, a meeting, or even the weekend, only to return and find their entire session has disappeared. To resume, they had to re-initialize Spark, reload data, and rerun every cell.
With Serverless Snapshot Restoration, Databricks addresses this challenge by capturing and restoring the full interactive environment, including both Python and Spark state. This makes Databricks the first platform to support complete environment restoration for serverless notebooks, enabling seamless continuity between sessions.

When you return to a notebook after an idle disconnect, a banner appears at the top of the page. Click Reconnect, and your full Python and Spark session state is restored, typically in seconds!

Traditionally, returning to a disconnected notebook meant re-running every setup cell: imports, class definitions, UDFs, temp views, Spark configs, and more. With Databricks serverless snapshot restoration, Databricks reinstates your entire working environment, including:
Together, this makes for a more resilient notebook experience, reducing friction and keeping you productive even after extended breaks.
Serverless notebooks automatically shut down your attached compute after a period of inactivity. When this happens, Databricks captures your notebook’s environment state so it can be restored when you reconnect. Python state, including variables, functions, and imports, is serialized and stored in your workspace’s default storage. Spark session state (configs, temporary variables, catalog entries) is captured alongside it.
When you return, Databricks deserializes your Python state as soon as you connect to serverless compute, while also restoring your Spark session. Together, these snapshots reconstruct your full notebook environment in seconds and allow you to pick up exactly where you left off.
Here’s what’s coming next to make serverless notebooks even better:
Serverless Snapshot Restore is now enabled by default for all serverless notebooks. To learn more, check out our serverless notebook documentation.
