Well, this is getting more ridiculous by the minute.
I created an ARE profile that only lists the virtual environment and doesn’t use conda/analysis3 as module. When I run that profile after nuking my .local, this ARE session runs jupyter from /apps/jupyterlab/3.4.3-py3.9/bin/jupyter. The prompt in the terminal is normal (not “singularity”) and it sees only the virtual environment and ipykernel. However, when I try to run any code in a notebook using the virtual environment, the notebook can’t connect to the kernel. If I run python on the terminal, loading xarray fails with error No module named 'numpy.core._multiarray_umath'.
I then created an ARE profile that only uses conda/analysis3. That session did exactly the same! used the same jupyter, even.
I then started my previous profile, which uses IDENTICAL configuration to the only conda environment from before. This time, this ARE session used jupyter from analysis3, the prompt said “singularity”, it showed all the analysis3 environments but not my virtual environment.
These are two sessions with the same configuration. One launched via saved settings and the other one launched via Interactive Apps.
This is the config from the first one (session 031e8492-bab1-4959-95a2-e7facec049ff)
{
"cluster": "ncigadi",
"bc_num_hours": "4",
"queue": "normalbw",
"compute_size": "small",
"project": "nf33",
"storage": "gdata/xp65+gdata/nf33+gdata/gb02+gdata/lo70",
"software": "",
"settings": "",
"adv_checkbox": "1",
"extra_jupyter_args_adv": "",
"data_modules_use_adv": "/g/data/xp65/public/modules",
"data_modules_adv": "conda/analysis3",
"python_env_adv": "",
"conda_env_adv": "",
"envvars_adv": "",
"jobfs_adv": "",
"pbsflags_adv": "",
"prescript_adv": "",
"bc_email_on_started": "0"
}
And this is the second (183efac9-f0ac-401d-8100-8dc6107b7b57)
{
"cluster": "ncigadi",
"bc_num_hours": "4",
"queue": "normalbw",
"compute_size": "small",
"project": "nf33",
"storage": "gdata/xp65+gdata/nf33+gdata/gb02+gdata/lo70",
"software": "",
"settings": "",
"adv_checkbox": "1",
"extra_jupyter_args_adv": "",
"data_modules_use_adv": "/g/data/xp65/public/modules",
"data_modules_adv": "conda/analysis3",
"python_env_adv": "",
"conda_env_adv": "",
"envvars_adv": "",
"jobfs_adv": "",
"pbsflags_adv": "",
"prescript_adv": "",
"bc_email_on_started": "0"
}
Same config, different result. One after the other, without changing anything in my bashrc.