Giter VIP home page Giter VIP logo

Comments (4)

rothnic avatar rothnic commented on June 11, 2024

Part of the intended use for this is with tmpnb, so I wouldn't want to prescribe how the notebooks are stored. With tmpnb, you don't want them persisted at all, instead you'd want to link them in from some other location, like google drive, or you are free to use git within the jupyter terminal. The notebooks directory is completely up to the end user really, something that could easily be modified. I was more just providing an example.

I wonder if there is a solution where the directory is an input? I think the volume can be created with the run command. Otherwise, I'd suggest just extending off of this image using "FROM", then making your custom volume changes.

Open to ideas here.

from anaconda-notebook.

ruxi avatar ruxi commented on June 11, 2024

The docker compose docs suggest it may be possible to set a directory as an input using the volumes option.

from anaconda-notebook.

rothnic avatar rothnic commented on June 11, 2024

Looks like the regular docker run -v <host directory>:<guest directory> works without modification to the image. See docker volumes documentation.

For me, this looked like the following command:

docker run -i -t -p 8888:8888 -v \
/Users/rothnic/Documents/workspace/notebooks:/home/condauser/notebooks rothnic/anaconda-notebook \
/home/condauser/anaconda3/bin/ipython notebook

This is just the regular run command executed by the dockerfile, except I've added the -v option. You then provide it the place where your notebooks exist, then :, then the place where we expect the notebooks to be in the container.

from anaconda-notebook.

denisvolokh avatar denisvolokh commented on June 11, 2024

Guys, are you able to save new notebooks because when I mount host directory like in your example I have permisson denied error.

from anaconda-notebook.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.