# Getting your notebook after your Binder has stopped

**URL:** https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268
**Category:** Binder
**Tags:** how-to
**Created:** [February 7, 2020, 6:34am UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268 "2020-02-07T06:34:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)
#### Post date: [February 7, 2020, 6:34am UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/1 "2020-02-07T06:34:28Z")

</div>

We have added a few new buttons to the toolbar of the notebook on [mybinder.org](http://mybinder.org):

 ![Screenshot 2020-02-06 at 20.35.10](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/e/e40cd3e1b41c9dd0b02b4823e4dd39ed043cd3a5.png)

Try it out with one of our [demo repositories](https://mybinder.org/v2/gh/binder-examples/conda_environment/master?filepath=index.ipynb). To learn more keep reading 🙂

The new toolbar gives you some options for downloading your notebook after the Binder session has ended. It will be automatically installed when you (re)build your repository.

_On [mybinder.org](http://mybinder.org) we have a (very) short timeout for sessions. So short, that going for a short coffee break is likely to have your session ended before you get back. This is frustrating for people, especially in a course/workshop setting. The reason it is configured like this is that the vast majority of sessions are started by people who go away again quickly._

To help with this we now install [https://github.com/manics/jupyter-offlinenotebook](https://github.com/manics/jupyter-offlinenotebook) by default. This extension allows you to **download your notebook even after the server has stopped** or you have disconnected from the internet.

This means as long as you have the tab open you can save your work by clicking the big “Download” button. That is it.

* * *

There are two additional buttons (they look like “clouds”). These allow you to save your notebook to your browser’s internal storage. Then at a later point in time you can overwrite the notebook with the one from the browser storage. One situation we hope this will be useful for is when your Binder session has ended but you want to continue working on the notebook.

When your Binder session ends you would:

1. store the notebook to your browser’s storage by clicking the left-hand cloud
2. restart your binder session
3. open the original notebook
4. restore the notebook from your browser’s storage

You can now continue to work on your notebook. A short video of this (with the “restart Binder” step removed for brevity):

 ![Kapture 2020-02-07 at 7.25.09](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/6/627f2f5ef76eaf67ff4e4c6bb5d89dd8c43cebc3.gif)

I first add a new cell, add something to it, store the notebook, then continue editing it and then restore the notebook from the previous state stored in my browser’s storage.

* * *

We have tested the extension on Firefox and Chrome. However browser compatibility across operating systems is hard. So please report things that don’t work and if you happen to know how to fix them: please do make a Pull Request 🙂

This extension is one of our ideas for solving the problem that [mybinder.org](http://mybinder.org) has no persistence. It is a work in progress (what isn’t). We worked on it because people gave us feedback about what worked well and what didn’t work well. This is crucial for us because we don’t spy on our users and you are spread around the globe so we meet far too few of you. Please keep the feedback coming.

Happy Friday everyone!

---

<div class="post-metadata">

### Author: ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)
#### Post date: [February 7, 2020, 10:27am UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/2 "2020-02-07T10:27:09Z")

</div>

On s semi related note, if anyone knows how/if we can modify the RStudio interface … inquisitive minds would like to know how.

---

<div class="post-metadata">

### Author: ![nuest](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/nuest/32/82_2.png) [@nuest](https://discourse.jupyter.org/u/nuest)
#### Post date: [February 7, 2020, 11:32am UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/3 "2020-02-07T11:32:52Z")

</div>

You can write an RStudio Add-in. Should be pretty straightforward to integrate (install R package, load it).

[https://rstudio.github.io/rstudioaddins/](https://rstudio.github.io/rstudioaddins/)

What feature are you thinking about? A similar local session storage?

---

<div class="post-metadata">

### Author: ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)
#### Post date: [February 7, 2020, 12:52pm UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/4 "2020-02-07T12:52:15Z")

</div>

I was thinking of the buttons we have in the top right corner of the notebook view that give you the link for sharing and such. Then eventually also a form of local storage of the file you are viewing in RStudio.

---

<div class="post-metadata">

### Author: ![saulshanabrook](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/saulshanabrook/32/159_2.png) [@saulshanabrook](https://discourse.jupyter.org/u/saulshanabrook)
#### Post date: [February 10, 2020, 10:03pm UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/5 "2020-02-10T22:03:44Z")

</div>

Let me know if you want any pointers on how to add this to JupyterLab.

---

<div class="post-metadata">

### Author: ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)
#### Post date: [February 11, 2020, 8:34am UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/6 "2020-02-11T08:34:00Z")

</div>

Yes please! Or even a PR 🙂

---

<div class="post-metadata">

### Author: ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)
#### Post date: [February 11, 2020, 1:57pm UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/7 "2020-02-11T13:57:35Z")

</div>

Having thought about it, we already have some of these buttons via the new jupyter-offlinenotebook extension. So we probably have lab covered already!

---

<div class="post-metadata">

### Author: ![saulshanabrook](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/saulshanabrook/32/159_2.png) [@saulshanabrook](https://discourse.jupyter.org/u/saulshanabrook)
#### Post date: [February 11, 2020, 2:03pm UTC](https://discourse.jupyter.org/t/getting-your-notebook-after-your-binder-has-stopped/3268/8 "2020-02-11T14:03:49Z")

</div>

Ah yeah just saw you already have a JupyterLab extension! [https://github.com/manics/jupyter-offlinenotebook#jupyterlab-extension](https://github.com/manics/jupyter-offlinenotebook#jupyterlab-extension)
