mamba-org / gator

Conda environment and package management extension from within Jupyter
Other
260 stars 30 forks source link

select location of new env #4

Open ptulpen opened 5 years ago

ptulpen commented 5 years ago

Hello, I use jupyter_conda in an environment where jupyter itself is installed to /opt/conda... as system installation is it still possible to have the oppotunity to select the location of a new environment ? (e.g. the users home)

fcollonval commented 5 years ago

Hey @ptulpen, I'll look in the documentation of conda. Unfortunately there is no other way than defining the full prefix for the environment when calling conda create. So this requires some changes in the ux and in the server extension as well. Feel free to submit a PR if you need this feature.

A note: conda restraints the folder list, it looks at for environments. So the user should not be allowed to create environment outside those place. Otherwise the new environment won't be visible by this jupyter extension.

dwilliams782 commented 4 years ago

We have just ran into the same issue, using JupyterLab as part of Z2JH in Kubernetes.

We set an environment variable to install new conda environments to a persistent disk and it appears to work well:

extraEnv:
  CONDA_ENVS_PATH: "/home/jovyan/.conda/envs"
fcollonval commented 4 years ago

Thanks @dwilliams782 for sharing that trick.