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-lab did not open Jupyter notebook #134

Closed
Ewaoluwa1 opened this issue Jul 15, 2023 · 5 comments
Closed

Jupyter-lab did not open Jupyter notebook #134

Ewaoluwa1 opened this issue Jul 15, 2023 · 5 comments

Comments

@Ewaoluwa1
Copy link

I wanted to open jupyter-lab after activating my imcsegpipe environment, then I got the following:

[I 2023-07-15 17:53:20.851 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-07-15 17:53:20.862 ServerApp] Package jupyter_lsp took 0.0104s to import
[W 2023-07-15 17:53:20.862 ServerApp] A _jupyter_server_extension_points function was not found in jupyter_lsp. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-07-15 17:53:20.868 ServerApp] Package jupyter_server_terminals took 0.0054s to import
[I 2023-07-15 17:53:20.919 ServerApp] Package jupytext took 0.0513s to import
[I 2023-07-15 17:53:20.920 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-07-15 17:53:20.920 ServerApp] A _jupyter_server_extension_points function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-07-15 17:53:20.921 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-07-15 17:53:20.925 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-07-15 17:53:20.930 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-07-15 17:53:20.930 ServerApp] jupytext | extension was successfully linked.
[I 2023-07-15 17:53:21.086 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-07-15 17:53:21.102 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-07-15 17:53:21.104 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-07-15 17:53:21.105 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-07-15 17:53:21.105 LabApp] JupyterLab extension loaded from /home/ibrofina/.conda/envs/imcsegpipe/lib/python3.9/site-packages/jupyterlab
[I 2023-07-15 17:53:21.106 LabApp] JupyterLab application directory is /home/ibrofina/.conda/envs/imcsegpipe/share/jupyter/lab
[I 2023-07-15 17:53:21.106 LabApp] Extension Manager is 'pypi'.
[I 2023-07-15 17:53:21.108 ServerApp] jupyterlab | extension was successfully loaded.
[W 2023-07-15 17:53:21.108 ServerApp] [Jupytext Server Extension] Async contents managers like AsyncLargeFileManager are not supported at the moment (mwouts/jupytext#1020). We will derive a contents manager from LargeFileManager instead.
[I 2023-07-15 17:53:21.108 ServerApp] [Jupytext Server Extension] Deriving a JupytextContentsManager from LargeFileManager
[I 2023-07-15 17:53:21.109 ServerApp] jupytext | extension was successfully loaded.
[I 2023-07-15 17:53:21.109 ServerApp] Serving notebooks from local directory: /home/ibrofina/ImcSegmentationPipeline-3.6[I 2023-07-15 17:53:21.109 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-07-15 17:53:21.109 ServerApp] http://localhost:8888/lab?token=46dc4632806c1435bc467fa6df3e0b463446333e0b50bf61
[I 2023-07-15 17:53:21.109 ServerApp] http://127.0.0.1:8888/lab?token=46dc4632806c1435bc467fa6df3e0b463446333e0b50bf61
[I 2023-07-15 17:53:21.109 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 2023-07-15 17:53:21.112 ServerApp] No web browser found: Error('could not locate runnable browser').
[C 2023-07-15 17:53:21.112 ServerApp]

To access the server, open this file in a browser:
    file:///home/ibrofina/.local/share/jupyter/runtime/jpserver-813474-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/lab?token=46dc4632806c1435bc467fa6df3e0b463446333e0b50bf61
    http://127.0.0.1:8888/lab?token=46dc4632806c1435bc467fa6df3e0b463446333e0b50bf61

[I 2023-07-15 17:53:21.348 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
^C[I 2023-07-15 18:01:57.858 ServerApp] interrupted
[I 2023-07-15 18:01:57.859 ServerApp] Serving notebooks from local directory: /home/ibrofina/ImcSegmentationPipeline-3.6 0 active kernels
Jupyter Server 2.7.0 is running at:
http://localhost:8888/lab?token=46dc4632806c1435bc467fa6df3e0b463446333e0b50bf61
http://127.0.0.1:8888/lab?token=46dc4632806c1435bc467fa6df3e0b463446333e0b50bf61

What should I do?

@Milad4849
Copy link
Contributor

Hi @Ewaoluwa1

Thanks for your question. Are you running the command locally or remotely? If locally, then you can paste the URLs at the bottom into a web browser?

@Ewaoluwa1
Copy link
Author

Ewaoluwa1 commented Jul 17, 2023

@Milad4849 I am running the command remotely. I pasted the URL you mentioned on the web browser but "..can reach the page"

@jwindhager
Copy link
Contributor

Just briefly: When running Jupyter Lab remotely, you will need to either set up SSH tunneling, or configure Jupyter Lab to allow remote access (and then replace the "localhost" in the URL with your server's IP/address). Probably easier to do the former. Depending on your operating system, @Milad4849 can probably give better hands-on instructions 😇

@Milad4849
Copy link
Contributor

@Ewaoluwa1 I suggest to contact your system administrators regarding the establishing of a ssh connection, as the precise instructions can vary depending on the set-up. Once that is done you can start jupyterlab with the following command jupyter lab --no-browser --ip <ip of your instance>. This would give you a URL that you can paste into the browser on your local machine to access the jupyter session.

@Ewaoluwa1
Copy link
Author

So I changed to running the command locally (I was working remotely initially), and the command worked. Thank you all for your reply

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

No branches or pull requests

4 participants