I work with many conda environments in my workflow and like to use the hydrogen package for the Atom Editor when I am exploring objects. However I always forget how to add a new jupyter kernel to the new environments even though it is only two lines of code.
What are those lines of code?
Create a new conda environment from a list of specified packages. To use the newly-created environment, use 'conda activate envname'. This command requires either the -n NAME or -p PREFIXoption.
Setting anacondaEnter in Atom configuration panel by pressing “CTRL” + “,” once you have it go to “Packages” and write “terminus” in the search bar, then press “Settings” and go to Core>Shell Override. if you see the precious (base) before your path then you made it !
You can create a custom conda environment from a conda compatible environment file ( environment. yaml ) using the odsc conda create command. By default, the create option also installs additional libraries to ensure that the conda environment is compatible with JupyterLab and the OCI services.
Here is the link to the github issue where the comment is answered.
The two lines of code to be run in your terminal are these:
source activate YourEnvNameHeRE
python -m ipykernel install --user --name YourEnvNameHeRE
After you run these two lines and restart Atom, you will now be prompted to choose which environment you use when evaluating code using Hydrogen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With