Code Monkey home page Code Monkey logo

Comments (7)

matt-long avatar matt-long commented on June 20, 2024

I had this in a previous version of the scripts, but took it out once deciding that these scripts should launch from the conda base environment. I don't have to do conda activate before running the script, so I am somewhat skeptical of your assertion that that is necessary.

from ncar-python-tutorial.

mnlevy1981 avatar mnlevy1981 commented on June 20, 2024

This is tied to #92, right? If we don't want users to change (base) then this functionality is needed.

@andersy005 I'm a little confused about how you worded the issue, though:

the ssh tunnel scripts in scripts/jlab require activating a conda environment with jupyter installed in it prior launching ./scripts/jlab/jlab-machine-name script"

seems to imply you need to have access to jupyter locally. That's not true, is it? You need to launch jupyter lab on the remote machine in an environment with jupyter (and, as @matt-long points out, currently the base environment fits the bill but that might change in the future)

from ncar-python-tutorial.

kmpaul avatar kmpaul commented on June 20, 2024

Also, whether or not base is activated depends on how the user has set up conda. For example, I have some old Python work that requires that I use the system-wide Python packages for the code to remain consistent. In order to prevent my conda install on Cheyenne from interfering with system packages, I have to disable autoactivation of the base environment:

conda config --set auto_activate_base false

from ncar-python-tutorial.

kmpaul avatar kmpaul commented on June 20, 2024

...so, if it wasn't obvious from what I said, that means that I need to conda activate base before doing anything.

from ncar-python-tutorial.

kmpaul avatar kmpaul commented on June 20, 2024

It seems to me that the best solution to accommodate everyone is to have the conda_env_name default to base.

from ncar-python-tutorial.

kmpaul avatar kmpaul commented on June 20, 2024

@mnlevy1981 You are correct that you need jupyter lab in the remote machine's conda environment. But I actually think that was what @andersy005 meant. I think @andersy005 actually meant that you need to have jupyter installed in the remote environment before you run the jlab-machine script on your local machine.

from ncar-python-tutorial.

andersy005 avatar andersy005 commented on June 20, 2024

Closing this as it's being handled in https://github.com/NCAR/jupyter-forward

from ncar-python-tutorial.

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.