Giter Site home page Giter Site logo

Integrate the creation and use of conda-pack'd envs with dynamically generate --conda-yml envs for quicker restarts about galyleo HOT 2 CLOSED

mkandes avatar mkandes commented on August 23, 2024
Integrate the creation and use of conda-pack'd envs with dynamically generate --conda-yml envs for quicker restarts

from galyleo.

Comments (2)

pwrose avatar pwrose commented on August 23, 2024

Here is a suggestion about caching the conda-pack environment.

  1. Add a "--cache" option
  2. When a new conda env is first specified, e.g.
    galyleo options --conda-env <env_name> --conda-yml <env_yml> --cache, a packed conda environment is stored, e.g in ${HOME}/.galyleo-cache/<env_name>/<env_name>.tar.gz. Also, the <env_yml> file is stored in this directory.
  3. When the same command line is run again, the specified env_yml file is checked against the cached env_yml file. If they are identical, then the cached conda environment is used, otherwise, a new packed conda environment is created.
  4. We may also want to cache the /Miniconda3-latest-Linux-x86_64.sh file.

The cache directory may look like this:

${HOME}/.galyleo-cache
    Miniconda3-latest-Linux-x86_64.sh
    notebooks-sharing
            notebooks-sharing.tar.gz
            notebooks-sharing.yml
    next-environment-here

I've tried to create a simple bash script to show the logic. It isn't working, but it gives you an idea. On Expanse see pwrose/galyleo-cache.sb.
    
     

from galyleo.

mkandes avatar mkandes commented on August 23, 2024

@pwrose - Done. But I have not yet deployed the update to Expanse yet. I will do so sometime next week and let you know, if you're interested in testing this new feature. I'd like to make a good pass through and clean up the README.md documentation before pushing the new version into production.

f9decd0

from galyleo.

Related Issues (20)

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.