Is there a way to change the default cluster setting after a notebook has been created?

User16826987838
Databricks Employee
Databricks Employee

When you create a notebook, you are prompted to specify a default cluster that it will connect to. Is there a way to change that setting after the notebook is created?

Mooune_DBU
Databricks Employee
Databricks Employee

Yes of course, notebooks are not exclusively tied to a specific cluster so you can pick any available/visible cluster to attach the notebook on when you want to run it.

Also please keep in mind that by doing this half-way through executing a notebook, you will loose/clear all variable states and configurations (i.e. notebook scoped libraries)