Can I create a notebook that continues to run when I close my laptop?

Hello,

I am running code on the google cloud using a notebook, using the command below:

hailctl dataproc connect --zone us-central1-c lkp notebook

The notebook seems to be tied to my computer: if I close my laptop, it loses connection and the computations stop, and I often have to restart from the beginning.

Is there a way to run a notebook so that it can continue to run when I close my laptop?

Thanks!

The kernel keeps running, but Jupyter doesn’t really support closing and re-opening the connection.

For this reason, most folks use hailctl dataproc submit with a plain python script, saving any output they need to a google bucket.