Hi I’m Using Hydrogen and want to select multiple virtual environments.
From what I’ve found and tried:
- Create virtual environment via: venv or conda
- Activate virtual environment
- Register virtual environment via: python -m ipykernel install --user --name YourEnvName
- From activated virtual environment (terminal), run atom via: atom (if atom PATH is included)
What I want to know is, is there any possible method to skip step 4?
Something like including “conda activate YourEnvName” just before activating the kernel.
Since it is a tedious job to activate environment every time manually.
I tried looking the source files of Hydrogen, but I failed to understand (cuz I’m not used to .js)
(If I just skip 4 and run just atom (double clicking icon, default path), dll load error happens because PATH is not 100% consistent with the virtual environment. https://github.com/nteract/hydrogen/issues/1405,
I tried modifying the “kernel.js” of virtual environment to include “conda activate YourEnvName” but that made the environment to disappear from selectable kernel list when running Hydrogen.
#Hydrogen #Anaconda #environment #PATH #venv #kernel