Giter Site home page Giter Site logo

Comments (3)

fdncred avatar fdncred commented on May 21, 2024

Feel free to tweak on the script to help with that.

from nu_scripts.

Tiggax avatar Tiggax commented on May 21, 2024

I can try to update the script to use envs instead of the current envs_dirs. I'd just like to know how it would be better to work? Some of current options:

  • when typing conda activate should it try to autocomplete to base ... .venv where you can select the .venv to use the local virtual environment
  • typing conda activate and not selecting anything would check first for any virtual environment in current directory and if not finding anything default to base

from nu_scripts.

LordFckHelmchen avatar LordFckHelmchen commented on May 21, 2024

Hey @Tiggax , thanks for taking it on. My workflow is very focused on having all environment specs within a repo. So we check-in the environment.yml and always create the venv/conda env locally within the checked-out repo. Since I normally work with nu, when starting to code, I always have to switch back to CMD just to be able to activate the conda env and work with it. Just as a background.

The activate script should just behave as conda does it. I think they detect if the argument after the activate is a path or a name by looking for separators, e.g. try conda activate .venv (tries to resolve .venv as name) vs. conda activate .venv/ (tries to resolve .venv/ as path). I think that would be the easiest solution... And yes, @fdncred, if my nu shell scripting skills would be better, I would contribute, but I'm literally at 0

from nu_scripts.

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.