Closed iremnasir closed 8 months ago
Do you recall an update of conda
or nb_conda_kernels
before seeing the error?
I get this exact error, though I'm on windows. I only get it when launching jupyter notebook/lab from a windows shortcut though - it works fine if I launch from the console.
The error is preceded by:
'conda' is not recognized as an internal or external command, operable program or batch file.
This is the first line printed out in the console when launching jupyter from the shortcut.
The target for the shortcut (my jupyter lab is installed in a conda environment named 'jplab') is:
%USERPROFILE%\Miniconda3\python.exe %USERPROFILE%\Miniconda3\cwp.py %USERPROFILE%\Miniconda3\envs\jplab %USERPROFILE%\Miniconda3\envs\jplab\python.exe %USERPROFILE%\Miniconda3\envs\jplab\Scripts\jupyter-lab-script.py "%USERPROFILE%/"
My work around is to change the target to effectively launch jupyter lab from the console:
%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& ‘%USERPROFILE%\Miniconda3\shell\condabin\conda-hook.ps1' ;
conda activate '%USERPROFILE%\Miniconda3' ";
cd ~;
conda activate jplab;
jupyter lab;
exit;
@s-pike On Windows this is though to resolve the fullpath for conda
. The shortcut is probably not initializing the environment the same way you are doing it in the script - aka activating the base environment (in which conda
is defined) and then activating the JupyterLab environment.
closing as stale. But if we need to address this, please re-open with an attempt to reproduce with a more up to date versions of conda and nb_conda_kernels...
Hello, I used conda env kernels reliably until today, where I could see all my environments when I opened a Jupyter lab interface. Out of nowhere today I get the following error and all my kernels seem to be gone:
My
conda list nb_conda_kernels
has following output :My
conda info
has the following output: