jupyter / tmpnb

Creates temporary Jupyter Notebook servers using Docker containers. [DEPRECATED - See BinderHub project]
https://github.com/jupyterhub/binderhub
BSD 3-Clause "New" or "Revised" License
528 stars 123 forks source link

Can't save any files #213

Open rtwk opened 8 years ago

rtwk commented 8 years ago

Running tmpnb locally. Can access via browser from a local server. But the problem is, since everything I do on it is temporary, nothing is saved. I want to achieve something lie try.jupyter, where certain files are saved and can not be deleted, users though can make changes, which are temporary.

captainsafia commented 8 years ago

Hello @rtwk! Thanks for posting this question. I'll try my best to answer it.

tmpnb is designed to host temporary Notebooks that aren't saved to disk at all. try.jupyter.org is a demo application that utilizes tmpnb.

In the Docker image used for the demo page, you'll note that several Notebook files are loaded into the Docker image as seen in the Dockerfile.

Locally, tmpnb utilizes the jupyter/minimal-notebook Docker image which does not load up any Notebooks in the Docker image.

I'm assuming that you would like to create a Docker image where a certain set of Notebooks are loaded everytime you start tmpnb. In order to do this, you will need to create your own Docker file based on the minimal-notebook image that copies or pulls the relevant Notebooks. If this is what you are trying to achieve, I'm happy to work through it with you.

Let me know if my response made sense. Happy to make any clarifications or explain further.

rtwk commented 8 years ago

That is what I was looking for. This guides me to the right direction. Let me work on it and I will let you know if find an issue. Thanks a ton.

rtwk commented 8 years ago

For my own version (of Dockerfile) shall I replace username with one in my machine? Or shall need to continue with the given one? If I change username, some of the paths are also changed. Shall I replace those with my own?

rgbkrk commented 8 years ago

tmpnb provides new containers for each visitor. The username in the container is there so you're not running everyone as root by default.