Jupyter-notebook doesn't open a web browser. It worked just fine before, then after windows 10 prompted for an update it began to open in Microsoft edge. When I tried to change it to the default browser which is chrome now it won't open at all.
I followed how to open Jupyter notebook in chrome on windows to try and change it back to chrome.
When I try and run
jupyter notebook
in cmd all I get is
[I 21:39:08.015 NotebookApp] JupyterLab extension loaded from C:\Users\roy\Anaconda3\lib\site-packages\jupyterlab
[I 21:39:08.015 NotebookApp] JupyterLab application directory is C:\Users\roy\Anaconda3\share\jupyter\lab
[I 21:39:08.015 NotebookApp] Serving notebooks from local directory: C:\Users\roy
[I 21:39:08.015 NotebookApp] The Jupyter Notebook is running at:
[I 21:39:08.015 NotebookApp] http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
[I 21:39:08.031 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 21:39:08.109 NotebookApp] No web browser found: could not locate runnable browser.
To access the notebook, open this file in a browser:
file:///C:/Users/roy/AppData/Roaming/jupyter/runtime/nbserver-1516-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
However when I copy and paste the url in a web browser it just works fine.
Solved it.
I went to the
.jupyter folder in my Users directory >
opened the jupyter_notebook_config.py file >
then edited this line from:
c.NotebookApp.browser = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe '
to:
c.NotebookApp.browser = u'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
Now it works well.
This is a issue of tunneling.
Try this:
ssh username#xx.xx.xx.xx -NL 1234:localhost:1234
For more details, refer the below link:
https://medium.com/#apbetahouse45/how-to-run-jupyter-notebooks-on-remote-server-part-1-ssh-a2be0232c533
This solved my similar issue when jupyter is installed under my python 2.7 directory, but is not necessary under the jupyter installed in my python 3.7 directory. Readers with a 3.7 directory may be encountering a different issue.
I had the same issue because by default program to open .html files was not a browser. I just had to tell my computer to always open .html files with a browser.
Related
I have been struggling with this problem the last few days. I am running Manjaro Linux on my laptop and I have recently installed Jupyter Notebook and Jupyterlab using pip.
However, when I try to run it, I get the following output:
[I 2021-05-20 16:21:19.980 LabApp] JupyterLab extension loaded from /usr/lib/python3.9/site-packages/jupyterlab
[I 2021-05-20 16:21:19.980 LabApp] JupyterLab application directory is /usr/share/jupyter/lab
[I 16:21:20.005 NotebookApp] Serving notebooks from local directory: /home/veducha
[I 16:21:20.005 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 16:21:20.005 NotebookApp] http://localhost:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
[I 16:21:20.005 NotebookApp] or http://127.0.0.1:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
[I 16:21:20.005 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:21:20.056 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/veducha/.local/share/jupyter/runtime/nbserver-72176-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
or http://127.0.0.1:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
followed by a tab opening on my browser saying that it is unable to connect to the localhost.
I have tried different using browsers, and some of the answers given in other posts (downgrading tornado, for example) do not seem to work since now you're required to have the latest version of tornado.
Can anyone please help me?
Thanks,
E.
I am trying to use jupyter notebook on Pycharm.
Following this article, I ran a simple Hello World code but nothing shows up.
I got some logs like this.
/home/ryuzot/anaconda3/envs/keras_playground2/bin/jupyter notebook --no-browser --port 8888
[I 00:52:46.955 NotebookApp] Serving notebooks from local directory:
/home/ryuzot/PycharmProjects/keras_playground
[I 00:52:46.955 NotebookApp] Jupyter Notebook 6.1.1 is running at:
[I 00:52:46.955 NotebookApp] http://localhost:8888/?
token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
[I 00:52:46.955 NotebookApp] or http://127.0.0.1:8888/?
token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
[I 00:52:46.955 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 00:52:46.957 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/ryuzot/.local/share/jupyter/runtime/nbserver-13870-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
or http://127.0.0.1:8888/?token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
I change the port which jupyter is running to 8888 and 8080, but it didn't work.
I use Pycharm professional 2020.2, Jupyter Notebook 6.1.1 , Python 3.7 on openSUSE 15.2.
I hope to receive some help.
To start working with Jupyter notebooks in PyCharm:
Create a new Python project, specify a virtual environment, and install the jupyter package.
Open or create a .ipynb file.
Add and edit source cells.
Execute any of the code cells to launch the Jupyter server.
Analyze execution results in the Preview pane.
I am launching a Jupyter notebook from an Anaconda environment (Python 3.6.8) on Windows 10 and when I do that the page that's displayed in my Chrome browser is totally blank.
The output in the console (git bash) window looks like this:
$ jupyter notebook object_detection_tutorial.ipynb
[I 13:18:13.500 NotebookApp] Serving notebooks from local directory: C:\home\git\object_detection_tensorflow\TensorFlow\models\research\object_detection
[I 13:18:13.500 NotebookApp] The Jupyter Notebook is running at:
[I 13:18:13.500 NotebookApp] http://localhost:8888/?token=bfb419ee35f8fd9800621e52dc8d73515990e2298148135b
[I 13:18:13.500 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:18:13.513 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/James%20Adams/AppData/Roaming/jupyter/runtime/nbserver-2808-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=bfb419ee35f8fd9800621e52dc8d73515990e2298148135b
If I copy and paste the URL listed above into the Chrome browser address bar I get a normal looking response in the console but the same blank page in the browser:
[I 13:21:17.840 NotebookApp] 302 GET /?token=bfb419ee35f8fd9800621e52dc8d73515990e2298148135b (::1) 0.99ms
I have tried a number of things with no different result so far:
clear the browser's cache and cookies
downgraded the notebook module to 5.7.4 (conda install notebook=5.7.4)
used a different browser (Firefox)
What else can I try to fix this?
I have instaled anaconda and python works fine in Sypder , IPython etc . However I am not able to run python notebook.
Kernel gets created , it also connects but it shows the dark circle busy symbol throughout . There is no problem with the firewall or antivirus .
I have tried by disabling both .
I am also not able to open python terminal from notebook there is some powershell error.
Can anyone suggest something ?
Edit 1 : Added the snapshot and the log
Log Anaconda Prompt :
(base) C:\Users\Project>jupyter notebook
[I 13:11:26.561 NotebookApp] JupyterLab extension loaded from C:\Users\Project\A
naconda3\lib\site-packages\jupyterlab
[I 13:11:26.561 NotebookApp] JupyterLab application directory is C:\Users\Projec
t\Anaconda3\share\jupyter\lab
[I 13:11:26.569 NotebookApp] Serving notebooks from local directory: C:\Users\Pr
oject
[I 13:11:26.570 NotebookApp] The Jupyter Notebook is running at:
[I 13:11:26.570 NotebookApp] http://localhost:8888/?token=28e7406ee648d631648f9b
8c53e1f3027f5eb30516ccf15f
[I 13:11:26.571 NotebookApp] Use Control-C to stop this server and shut down all
kernels (twice to skip confirmation).
[C 13:11:26.768 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Project/AppData/Roaming/jupyter/runtime/nbserver-3064-o
pen.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=28e7406ee648d631648f9b8c53e1f3027f5eb30516c
cf15f
[I 13:11:56.237 NotebookApp] Creating new notebook in
[I 13:12:02.401 NotebookApp] Kernel started: 55d8fb5e-2fe7-4d4b-a1d3-a11b0b7e7e7
d
[I 13:12:05.242 NotebookApp] Adapting to protocol v5.1 for kernel 55d8fb5e-2fe7-
4d4b-a1d3-a11b0b7e7e7d
And the image where kernel is always busy
kernel busy
I was also getting the same issue, I tried a lot of different stuff but nothing seemed to help me out. Ultimately, a Kernel Restart instead of Kernel Interrupt helped me out! The kernel restarted and I was able to run the kernels as usual.
I think this is just a workaround if someone finds the real solution please do let us know!
I has the same issue because I started it as below
jupyter notebook --gateway-url=http://my-domain.com:8888
but I remove geteway-url param then the issue was gone
I know that you didn't make this very same mistake like me but I hope this gives you some clues
I've had docker to use the jupyter notebook with tensorflow.
(My OS is window 10 so I use the Powershell.)
I want the jupyter to open the web browser automatically. When I try to initialize jupyter notebook.
For instance, I enter the command to start anaconda image (including tensorflow).
> docker run -it -v ~/tensorwork:/notebooks -p 8888:8888 anaconda3
And activate tensorflow
(base) root#e088a0e0e58e:/# conda activate tensorflow
After entering tensorflow kernel mode, I execute jupyter notebook.
(tensorflow) root#e088a0e0e58e:/# jupyter notebook --ip '*' --allow-root
[I 14:47:00.827 NotebookApp] [nb_conda_kernels] enabled, 4 kernels found
[W 14:47:01.080 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 14:47:01.214 NotebookApp] [nb_anacondacloud] enabled
[I 14:47:01.219 NotebookApp] [nb_conda] enabled
[I 14:47:01.265 NotebookApp] ✓ nbpresent HTML export ENABLED
[W 14:47:01.265 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'
[I 14:47:01.268 NotebookApp] Serving notebooks from local directory: /
[I 14:47:01.269 NotebookApp] 0 active kernels
[I 14:47:01.269 NotebookApp] The Jupyter Notebook is running at:
[I 14:47:01.269 NotebookApp] http://[all ip addresses on your system]:8888/?token=55d0e39e50ff64ca52ab43516d06c96127704fb56de2d356
[I 14:47:01.269 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 14:47:01.270 NotebookApp] No web browser found: could not locate runnable browser.
[C 14:47:01.275 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=55d0e39e50ff64ca52ab43516d06c96127704fb56de2d356
Execution of the jupyter notebook works well.
However, I manually enter the URL my browser to enter the notebook.
I guess this problem came from docker's feature. The container's file path needs to be connected to the local host so that jupyter can find the default web browser(chrome) that I use.
But how can I make it possible? I've already tried the editing config of jupyter notebook.
Before I execute jupyter notebook, I enter the command as following:
jupyter notebook --generate-config
vim ~/.jupyter/jupyter_notebook_config.py # or use your favorite editor
c.NotebookApp.browser = u'chrome'
(refer ; https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/oXjbKNMyP30)
But the jupyter still said it cannot find any web browser. Help me please :)