nebari-dev / nebari-slurm

An opinionated open source deployment of jupyterhub based on an Slurm job scheduler.
BSD 3-Clause "New" or "Revised" License
28 stars 10 forks source link

[ENH] - Add option to customize .condarc default environment paths in jupyterhub_config.py #147

Closed viniciusdc closed 8 months ago

viniciusdc commented 9 months ago

Feature description

Currently, when users create an environment using conda-store, it is not automatically available for use in both the Terminal and Jupyter Notebook. This creates inconvenience and inefficiency as users have to manually configure their environments for each use case.

We need to ensure that newly created environments are automatically accessible for users in both ecosystems when they spin up a new lab server.

For reference, a similar functionality is implemented in Nebari (linked below). However, conveniently conda-store group environments seems to be already present on the user terminal so changes on this regard doesn't seem to be required (e.g catching the groups object as in the Nebari's implementation )

Reference: Nebari Environment Setup

Current Configuration Example:

{
  "envs_dirs": [
    "/opt/conda-store/conda-store/{username}/envs"
  ],
  "changeps1": true
}

Value and/or benefit

Users will be able to access and experiment with their conda-store environments.

Anything else?

No response

aktech commented 8 months ago

Merged in #148