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

**URL:** <https://discuss.hail.is/t/can-i-create-a-notebook-that-continues-to-run-when-i-close-my-laptop/1810>\
**Category:** Hail Query & hailctl\
**Created:** [November 25, 2020, 4:35pm UTC](https://discuss.hail.is/t/can-i-create-a-notebook-that-continues-to-run-when-i-close-my-laptop/1810 "2020-11-25T16:35:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilliank](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lilliank](https://discuss.hail.is/u/lilliank)\
**Post date:** [November 25, 2020, 4:35pm UTC](https://discuss.hail.is/t/can-i-create-a-notebook-that-continues-to-run-when-i-close-my-laptop/1810/1 "2020-11-25T16:35:33Z")

</div>

Hello,

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

```auto
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!

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [November 25, 2020, 5:19pm UTC](https://discuss.hail.is/t/can-i-create-a-notebook-that-continues-to-run-when-i-close-my-laptop/1810/2 "2020-11-25T17:19:16Z")

</div>

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.
