You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to select a virtualenv_eda310 kernel in a jupyter notebook. The virtualenv environments installed were correctly recognised by jupyter_environment_kernels at startup.
The kernel itself seems to load correctly in the notebook:
But none of the external libraries installed in the virtualenv can be loaded in the notebook. When viewed in the notebook, the console shows the following error:
[W 15:22:14.563 NotebookApp] Kernelspec name virtualenv_eda310 cannot be found!
[E 15:22:14.588 NotebookApp] Couldn't get environment variables for commands: ['C:\Users\naray/Python/venvs\eda310\Shell\activate']
Traceback (most recent call last):
File "C:\Users\naray\Python\venvs\jupy310\lib\site-packages\environment_kernels\envs_virtualenv.py", line 44, in _get_env_vars_for_virtualenv_env
envs = source_env_vars_from_command(args)
File "C:\Users\naray\Python\venvs\jupy310\lib\site-packages\environment_kernels\activate_helper.py", line 57, in source_env_vars_from_command
return source_cmd(args)
File "C:\Users\naray\Python\venvs\jupy310\lib\site-packages\environment_kernels\activate_helper.py", line 94, in source_cmd
raise RuntimeError("Command not found: %s" % args[0])
RuntimeError: Command not found: C:\Users\naray/Python/venvs\eda310\Shell\activate
[I 15:22:14.617 NotebookApp] Kernel started: 4a5cd807-d19a-4c5b-99fa-cbafe3dff5c1, name: virtualenv_eda310
[I 15:22:22.204 NotebookApp] Starting buffering for 4a5cd807-d19a-4c5b-99fa-cbafe3dff5c1:142fb0addac144449ac94eec560718cc
[I 15:22:22.207 NotebookApp] Restoring connection for 4a5cd807-d19a-4c5b-99fa-cbafe3dff5c1:142fb0addac144449ac94eec560718cc
The activate command is installed into the Scripts folder within the virtual environment, but jupyter_environment_kernels is looking for it in the Shell folder.
Can you please investigate and resolve?
Thanks,
Narayan
The text was updated successfully, but these errors were encountered:
RNarayan73
changed the title
Looking in wrong place for activate in virtualenv
Looking in wrong place to activate a virtualenv
Sep 16, 2023
Versions:
Python: 3.10
Jupyter Notebook: 6.5.4
I am trying to select a virtualenv_eda310 kernel in a jupyter notebook. The virtualenv environments installed were correctly recognised by jupyter_environment_kernels at startup.
The kernel itself seems to load correctly in the notebook:
But none of the external libraries installed in the virtualenv can be loaded in the notebook. When viewed in the notebook, the console shows the following error:
The activate command is installed into the Scripts folder within the virtual environment, but jupyter_environment_kernels is looking for it in the Shell folder.
Can you please investigate and resolve?
Thanks,
Narayan
The text was updated successfully, but these errors were encountered: