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

Jupyterlab does not open automatically - cannot detect the path of the file. #14691

Open
ghost opened this issue Jun 15, 2023 · 12 comments
Open

Comments

@ghost
Copy link

ghost commented Jun 15, 2023

Description

When I open jupyter lab from the command prompt, i get the following error

Error message

Reproduce

Go to 'folder in file explorer'
Click on 'URL bar, type CMD'
Type 'python -m jupyterlab'
See error '- check screenshot

Expected behavior

Should open the jupyter notebook and server should run

Context

  • Operating System and version: Windows 10 Pro
  • Browser and version: Firefox 113.0.1 (64-bit)
  • JupyterLab version:
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output

Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[I 2023-06-15 17:49:34.932 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-06-15 17:49:34.932 ServerApp] Serving notebooks from local directory: C:\Users\Kipplouser1\Desktop\DropColumns
[I 2023-06-15 17:49:34.932 ServerApp] Jupyter Server 2.6.0 is running at:
[I 2023-06-15 17:49:34.932 ServerApp] http://localhost:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
[I 2023-06-15 17:49:34.932 ServerApp] http://127.0.0.1:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
[I 2023-06-15 17:49:34.932 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-06-15 17:49:34.994 ServerApp]

To access the server, open this file in a browser:
    file:///C:/Users/Kipplouser1/AppData/Roaming/jupyter/runtime/jpserver-7148-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
    http://127.0.0.1:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4

[I 2023-06-15 17:49:35.079 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.


Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[I 2023-06-15 17:49:34.932 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-06-15 17:49:34.932 ServerApp] Serving notebooks from local directory: C:\Users\Kipplouser1\Desktop\DropColumns
[I 2023-06-15 17:49:34.932 ServerApp] Jupyter Server 2.6.0 is running at:
[I 2023-06-15 17:49:34.932 ServerApp] http://localhost:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
[I 2023-06-15 17:49:34.932 ServerApp]     http://127.0.0.1:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
[I 2023-06-15 17:49:34.932 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-06-15 17:49:34.994 ServerApp]

    To access the server, open this file in a browser:
        file:///C:/Users/Kipplouser1/AppData/Roaming/jupyter/runtime/jpserver-7148-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
        http://127.0.0.1:8888/lab?token=f869f69c74a85e2a260b84cd9dbe017a6a9338fb24f6d3b4
[I 2023-06-15 17:49:35.079 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

Browser Output
Paste the output from your browser Javascript console here, if applicable.
@ghost ghost added the bug label Jun 15, 2023
@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Jun 15, 2023
@welcome
Copy link

welcome bot commented Jun 15, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@JasonWeill
Copy link
Contributor

Thanks for opening this issue! How did you install JupyterLab? Your issue suggests that you're running python -m jupyterlab. What happens when you run jupyter lab?

@fcollonval
Copy link
Member

@ysfnxt do you use WSL?

@ghost
Copy link
Author

ghost commented Jun 20, 2023

@fcollonval I do not.

@ghost
Copy link
Author

ghost commented Jun 20, 2023

@JasonWeill Thank you for your response. I installed it using pip.

When i run jupyter lab it is not recognized in git bash/command prompt. (Please refer below)

'jupyter' is not recognized as an internal or external command,
operable program or batch file.

@JasonWeill
Copy link
Contributor

Can you run jupyter-lab (no space) to launch JupyterLab? Alternatively, could you try installing JupyterLab via conda or mamba, which should put the jupyter binary in your PATH?

@JasonWeill
Copy link
Contributor

@ysfnxt Have you tried the alternative steps above? Any updates?

@ghost
Copy link
Author

ghost commented Jun 28, 2023

@JasonWeill I get this error.

'jupyter-lab' is not recognized as an internal or external command,
operable program or batch file.

I don't have admin rights to install conda. Is there an alternative?

@fcollonval
Copy link
Member

@ysfnxt the issue is that Git for Windows is coming with its own shell (Linux code compiled for Windows). You should no use it as it is not compatible with the rest of the Windows ecosystem.

if you have Python installed, I guess this is the stock Python distribution as you don't have conda. So you should execute command from the Windows command prompt.

Try:

  • (If I recall correctly) Press Win+R
  • Type cmd
  • Press Run
  • Test if you have Python install by executing python --version
  • Test you have jupyterlab install jupyter lab --version
  • Launch JupyterLab by executing jupyter lab

@ghost
Copy link
Author

ghost commented Jul 3, 2023

@fcollonval Python is installed on my system, so is jupyter lab. But it does not recognize it in Command Prompt unless i run python -m with it.

file

When I run pip install jupyterlab I get 'requirements already satisified' messages.

When i run python -m jupyterlab I get the error message

However when I select this from the console, It redirects to jupyterlab. (Figured this while i was facing this issue)

@JasonWeill
Copy link
Contributor

The file that you're unable to load is intended to redirect you to the token-containing URL in your third screen shot. It's odd that this file can't be created. Do you see any errors when running python -m jupyterlab that suggest that that file can't be written? Does its containing directory exist? I'm wondering if this is a permissions issue on writing to the directory in question.

@Ashutosh-777
Copy link

image
I am geeting above error when trying to open jupyter notebook, I changed my PC name from Ashutosh Kumar to Ghostrider (to remove the space between) but made sure to change all path from ashutosh kuma to ghostrider still getting this error.Can you help

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

No branches or pull requests

3 participants