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

unable to accessing jupyter notebook terminal on browswe with python version other than 3.7 #7209

Closed
vikas41299 opened this issue Jan 5, 2024 · 5 comments
Labels

Comments

@vikas41299
Copy link

After successfully launching Jupyter Notebook in my browser, I find that the terminal feature within the notebook is not functioning or is inaccessible. Jupyter Notebook works seamlessly with Python 3.7 on my system, but encounters issues with other Python versions. Could you please help me to figure out the problem, why they do so. I'm currently work oveer python but facing issue regarding compatibility of jupyter-notebook with python other than 3.7 installed in virtual env.

By running the command jupyter notebook, by running command jupyter notebook, i got message given below and open blank browser

(jnb) vikass_thakur.iitr@login03:$ juputer notebook
bash: juputer: command not found...
(jnb) vikass_thakur.iitr@login03:
$ jp
[W 2024-01-05 19:43:30.616 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 depr ecated in future releases of Jupyter Server.
[W 2024-01-05 19:43:30.704 ServerApp] A _jupyter_server_extension_points function was not found in nbclassic. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprec ated in future releases of Jupyter Server.
[W 2024-01-05 19:43:30.705 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 de precated in future releases of Jupyter Server.
[I 2024-01-05 19:43:30.706 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-01-05 19:43:30.724 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-01-05 19:43:30.745 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-01-05 19:43:30.771 ServerApp] nbclassic | extension was successfully linked.
[I 2024-01-05 19:43:30.797 ServerApp] notebook | extension was successfully linked.
[I 2024-01-05 19:43:31.298 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-01-05 19:43:31.356 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-01-05 19:43:31.362 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-01-05 19:43:31.364 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-01-05 19:43:31.379 LabApp] JupyterLab extension loaded from /home/vikass_thakur.iitr/miniconda3/envs/jnb/lib/python3.10/site-packages/jupyterlab
[I 2024-01-05 19:43:31.379 LabApp] JupyterLab application directory is /home/vikass_thakur.iitr/miniconda3/envs/jnb/share/jupyter/lab
[I 2024-01-05 19:43:31.380 LabApp] Extension Manager is 'pypi'.
[I 2024-01-05 19:43:31.386 ServerApp] jupyterlab | extension was successfully loaded.


| | | |_ __ | | | | ___
| || | ' / / _ | / -)
_/| ./_
,_,|____|
|_|

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 2024-01-05 19:43:31.402 ServerApp] nbclassic | extension was successfully loaded.
[I 2024-01-05 19:43:31.418 ServerApp] notebook | extension was successfully loaded.
[I 2024-01-05 19:43:31.419 ServerApp] The port 8888 is already in use, trying another port.
[I 2024-01-05 19:43:31.420 ServerApp] The port 8889 is already in use, trying another port.
[I 2024-01-05 19:43:31.420 ServerApp] The port 8890 is already in use, trying another port.
[I 2024-01-05 19:43:31.421 ServerApp] The port 8891 is already in use, trying another port.
[I 2024-01-05 19:43:31.421 ServerApp] The port 8892 is already in use, trying another port.
[I 2024-01-05 19:43:31.422 ServerApp] Serving notebooks from local directory: /home/vikass_thakur.iitr
[I 2024-01-05 19:43:31.423 ServerApp] Jupyter Server 2.12.2 is running at:
[I 2024-01-05 19:43:31.423 ServerApp] http://localhost:8981/tree?token=8e9e77635581903af0c81963cd9c8efb8fadc290b868f336
[I 2024-01-05 19:43:31.423 ServerApp] http://127.0.0.1:8981/tree?token=8e9e77635581903af0c81963cd9c8efb8fadc290b868f336
[I 2024-01-05 19:43:31.423 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2024-01-05 19:43:31.563 ServerApp]

To access the server, open this file in a browser:
    file:///home/vikass_thakur.iitr/.local/share/jupyter/runtime/jpserver-121406-open.html
Or copy and paste one of these URLs:
    http://localhost:8981/tree?token=8e9e77635581903af0c81963cd9c8efb8fadc290b868f336
    http://127.0.0.1:8981/tree?token=8e9e77635581903af0c81963cd9c8efb8fadc290b868f336

[I 2024-01-05 19:43:31.632 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-ser ver, 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-se rver
START /usr/bin/firefox "/home/vikass_thakur.iitr/.local/share/jupyter/runtime/jpserver-121406-open.html"
Running without a11y support!
^C[I 2024-01-05 19:53:57.704 ServerApp] interrupted
[I 2024-01-05 19:53:57.704 ServerApp] Serving notebooks from local directory: /home/vikass_thakur.iitr
0 active kernels
Jupyter Server 2.12.2 is running at:
http://localhost:8981/tree?token=8e9e77635581903af0c81963cd9c8efb8fadc290b868f336
http://127.0.0.1:8981/tree?token=8e9e77635581903af0c81963cd9c8efb8fadc290b868f336
Shutdown this Jupyter server (y/[n])? y
[C 2024-01-05 19:53:58.255 ServerApp] Shutdown confirmed
[I 2024-01-05 19:53:58.258 ServerApp] Shutting down 6 extensions

@vikas41299 vikas41299 added enhancement status:Needs Triage Applied to issues that need triage labels Jan 5, 2024
@RRosio
Copy link
Collaborator

RRosio commented Jan 9, 2024

Thanks for opening this issue @vikas41299, could you share the version of Notebook that you are running into this issue with? Can you try clearing the cache in your browser to see if that changes anything for you?

@JasonWeill
Copy link
Collaborator

Python 3.7 is end-of-life, so newer versions of Python, with the possible exception of Python 3.12, should work.

@vikas41299
Copy link
Author

Python 3.7 is end-of-life, so newer versions of Python, with the possible exception of Python 3.12, should work.

I already tried with python 3.12, still suffer with same issue.

@RRosio
Copy link
Collaborator

RRosio commented Jan 16, 2024

Thanks for the update @vikas41299, it looks like those warnings are not related to the original issue. notebook_shim and jupyter-lsp are extensions that must declare the functions in the warning, but it seems like they should be working for you at the moment based on the message itself.
Just wanted to double check, if you try clearing the cache and reloading the webpage, do you get the same error?

@vikas41299
Copy link
Author

vikas41299 commented Jan 19, 2024

Thanks for the update @vikas41299, it looks like those warnings are not related to the original issue. notebook_shim and jupyter-lsp are extensions that must declare the functions in the warning, but it seems like they should be working for you at the moment based on the message itself. Just wanted to double-check, if you try clearing the cache and reloading the webpage, do you get the same error?

@RRosio Thank you for always responding to my queries so promptly. Your quick and helpful replies are greatly appreciated!
The problem is resolved now: Instead of using pip to install jupyter, Using the 'conda -channel' option helped resolve the present issue, and now it works fine with Python versions greater than 3.7 as well

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

No branches or pull requests

3 participants