nebari-dev / nebari

🪴 Nebari - your open source data science platform
https://nebari.dev
BSD 3-Clause "New" or "Revised" License
283 stars 93 forks source link

[ENH] - Have conda store environments in user namespace not show up with username prefix #2860

Open Adam-D-Lewis opened 1 week ago

Adam-D-Lewis commented 1 week ago

Feature description

conda env list results in something like the following image

I'd prefer the env names in the user namespace not have a username prefix.

# conda environments:
#
new                      /home/alewis@quansight.com/.conda/envs/new
admin-climatology        /home/conda/admin/envs/admin-climatology
allm                    /home/conda/alewis@quansight.com/envs/alewis@quansight.com-allm
dash                    /home/conda/alewis@quansight.com/envs/alewis@quansight.com-dash
embeddings              /home/conda/alewis@quansight.com/envs/alewis@quansight.com-embeddings
excelpy                 /home/conda/alewis@quansight.com/envs/alewis@quansight.com-excelpy
falcon                  /home/conda/alewis@quansight.com/envs/alewis@quansight.com-falcon
lc                      /home/conda/alewis@quansight.com/envs/alewis@quansight.com-lc
mem1                    /home/conda/alewis@quansight.com/envs/alewis@quansight.com-mem1
mem2                    /home/conda/alewis@quansight.com/envs/alewis@quansight.com-mem2
mem3                    /home/conda/alewis@quansight.com/envs/alewis@quansight.com-mem3
memory                  /home/conda/alewis@quansight.com/envs/alewis@quansight.com-memory
panel                   /home/conda/alewis@quansight.com/envs/alewis@quansight.com-panel
pmill                   /home/conda/alewis@quansight.com/envs/alewis@quansight.com-pmill
r                       /home/conda/alewis@quansight.com/envs/alewis@quansight.com-r
scratch                 /home/conda/alewis@quansight.com/envs/alewis@quansight.com-scratch
scratch2                /home/conda/alewis@quansight.com/envs/alewis@quansight.com-scratch2
sec                     /home/conda/alewis@quansight.com/envs/alewis@quansight.com-sec
test                    /home/conda/alewis@quansight.com/envs/alewis@quansight.com-test
trees                   /home/conda/alewis@quansight.com/envs/alewis@quansight.com-trees
analyst-bio-data              /home/conda/analyst/envs/analyst-bio-data
analyst-dashboard-papermill    /home/conda/analyst/envs/analyst-dashboard-papermill

I could foresee a few issues.

How to implement

I'm not sure how best to implement this. It doesn't seem straight forward. Maybe symlinks have a role here?

Value and/or benefit

Better UX for user environments

Anything else?

No response