I would like to run a Jupyter notebook (on a distant server) using packages installed in a environment crocoanalysis
conda create crocoanalysis
conda activate crocoanalysis
conda install netcdf4
Worked perfectly, package installed :
(crocoanalysis) conda list
# packages in environment at /home6/datahome/abarboni/.conda/envs/crocoanalysis:
[...]
netcdf4 1.5.3 py38hbf33ddf_0
Now I shared this environment with Jupyter notebook kernel, and run the notebook (changing the port to access it on my local computer, but this is a priori not an issue here):
(crocoanalysis) python -m ipykernel install --user --name=crocoanalysis
(crocoanalysis) nohup jupyter notebook --no-browser --port=8090
Running the notebook, the environment is available and active, but packages listed are not the ones of the active environment, instead it keeps using the base environment... What is missing ?
Jupyter notebook output
I also tried to put the environment directory to the PYTHONPATH but 1) it did not work , 2) this is not exactly what I'm looking for : (adding into the .bashrc)
export PYTHONPATH="${PYTHONPATH}:/home6/datahome/abarboni/.conda/envs/crocoanalysis"
I also tried running the notebook outside this new environment but does not work either
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…