Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter --paths incorrect output #228

Closed
mlucool opened this issue May 14, 2021 · 2 comments · Fixed by #291
Closed

Jupyter --paths incorrect output #228

mlucool opened this issue May 14, 2021 · 2 comments · Fixed by #291

Comments

@mlucool
Copy link

mlucool commented May 14, 2021

Hi,

jupyter --paths outputs:

$ jupyter --paths
config:
    /path/to/user/.jupyter
    /path/to/venv/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /path/to/user/.local/share/jupyter
    /path/to/venv/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /path/to/user/.local/share/jupyter/runtime

Surprisingly, if you have a file named /path/to/user/jupyter_notebook_config.py it get's used too! I'm not sure if this is a bug in the output of --paths or a bug in which files should be used for config (or if this a bug in jupyter_server).

@jasongrout
Copy link
Member

Can you use the --debug switch to see why it is giving those paths?

@mlucool
Copy link
Author

mlucool commented May 14, 2021

DEBUG 09:34:27 Searching ['/path/to/user', '/path/to/user/.jupyter', '/path/to/venv/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
DEBUG 09:34:27 Looking for jupyter_config in /etc/jupyter
DEBUG 09:34:27 Looking for jupyter_config in /usr/local/etc/jupyter
DEBUG 09:34:27 Looking for jupyter_config in /path/to/venv/etc/jupyter
DEBUG 09:34:27 Looking for jupyter_config in /path/to/user/.jupyter
DEBUG 09:34:27 Looking for jupyter_config in /path/to/user
DEBUG 09:34:27 Looking for jupyter_server_config in /etc/jupyter
DEBUG 09:34:27 Looking for jupyter_server_config in /usr/local/etc/jupyter
DEBUG 09:34:27 Looking for jupyter_server_config in /path/to/venv/etc/jupyter

I think what's happening is the cwd is being picked up at runtime but not via --paths:

path.insert(0, os.getcwd())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants