Due to how Linux uses read permissions, if you don't want to make your /home/ directory readable by all and restrict reading on your subfolders you cannot share environments created in your ~/.conda/ folder. |
This guide will walk you through the process of creating a shareable environment outside your home directory to avoid you having to change permissions in your /home/ directory.
To create an environment outside the default location of ~/.conda/envs, you will need to use the prefix option during the environment creation process.
There is a shared directory available at /home/SE/ where you can put your environment that is readable by all users (but not writeable).
As a recommendation, you should add your initials after the environment name to differentiate your environment from someone else who made their own and named it similarly.
conda create -p /home/SE/your_env_name_initials |
This environment can be activated by typing
conda activate /home/SE/your_env_name_initials |
Please refer to the documentation for more details on using these environments: Switching Environments: Jupyter Notebook/Lab & Switching Environments: conda
In order to make your environment visible in the interactive apps (Jupyter Labs/Notebooks) you will need to install the kernel for the languages in your environment. You can do this with the following commands within the environment you want to use: To install the python kernel run: conda install -c anaconda ipykernel To install the R kernel run: conda install -c r r-irkernel |
If you want to have all shared environments visible and able to be activated by name alone, simply run the following command
|