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 run a Jupyter server instance inside a venv, which is completely isolated from the main system Jupyter. It was my understanding that I could set JUPYTER_CONFIG_DIR and JUPYTER_DATA_DIR to replace all search paths, so that it no longer touches global configuration. However, it looks like the system paths are added to the search paths no matter what is done:
This means, for example, that if I have jupyter lab installed globally, but not in the venv, running jupyter-notebook in the venv will give ModuleNotFoundError: No module named 'jupyterlab' during startup, no matter what.
Is there a way to isolate jupyter server inside a venv? Ideally, there would be a NO_SYSTEM_CONFIG_PATH environmental variable that, when set, does not add the system config directories.
I would be very happy to create a PR with this fix, so long as I know that something like this would be considered.
The text was updated successfully, but these errors were encountered:
I am trying to run a Jupyter server instance inside a venv, which is completely isolated from the main system Jupyter. It was my understanding that I could set
JUPYTER_CONFIG_DIR
andJUPYTER_DATA_DIR
to replace all search paths, so that it no longer touches global configuration. However, it looks like the system paths are added to the search paths no matter what is done:https://github.com/jupyter/jupyter_core/blob/master/jupyter_core/paths.py#L174
https://github.com/jupyter/jupyter_core/blob/master/jupyter_core/paths.py#L228
This means, for example, that if I have jupyter lab installed globally, but not in the venv, running jupyter-notebook in the venv will give
ModuleNotFoundError: No module named 'jupyterlab'
during startup, no matter what.Is there a way to isolate jupyter server inside a venv? Ideally, there would be a
NO_SYSTEM_CONFIG_PATH
environmental variable that, when set, does not add the system config directories.I would be very happy to create a PR with this fix, so long as I know that something like this would be considered.
The text was updated successfully, but these errors were encountered: