Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to open jupyter(ipython) notebook on browser

I'm using python3.5 and jupyter 4.0.6. I launched the jupyter notebook, and get the following output:

[I 21:47:27.021 NotebookApp] Serving notebooks from local directory: /home/nitrous
[I 21:47:27.021 NotebookApp] 0 active kernels
[I 21:47:27.021 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 21:47:27.022 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 21:47:27.023 NotebookApp] No web browser found: could not locate runnable browser.

on my firefox browser, I typed the specified localhost url: http://localhost:8888/ but I get unable to connect error message. What am I missing? is the hint of the problem on this line:

[W 21:47:27.023 NotebookApp] No web browser found: could not locate runnable browser.

it is my first time using the notebook. I tried to put the below code in the jupyter_notebook_config.py file but to no avail:

c.NotebookApp.open_browser = True
c.NotebookApp.browser = 'firefox'

it also says 0 active kernels. is that a problem?

like image 529
Wally Ali Avatar asked Feb 14 '16 22:02

Wally Ali


People also ask

How do I open Ipython notebook in browser?

Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App. The notebook interface will appear in a new browser window or tab. A secondary terminal window (used only for error logging and for shut down) will be also opened.

Why jupyter notebook is not opening in Chrome?

In order to open the jupyter notebook in a specific browser, you need to make that browser as your default browser. For example to open the jupyter notebook in Google Chrome: Open Chrome, go to Settings, select the Default Browser tab, and make Chrome as your default browser.

Can I use jupyter notebook in browser?

With this Jupyter lab distribution, you do not need to run jupyter notebook command in your terminal anymore to launch your notebook. It completely runs on a web browser, without having any dependency of installations on the end user device.


2 Answers

If you are running your jupyter notebook in a VM (mostly on a linux vm on a windows guest) and trying to access from guest, you will need to launch Jupyter Notebook with right options. Please try to run it like below and it should work.

jupyter notebook --ip=0.0.0.0 --no-browser

Please check the ip of the VM before you enter the URL in firefox. you can use

ifconfig

command for this.

like image 88
varun Avatar answered Sep 24 '22 06:09

varun


While running Jupyter on my ec2 instance I had faced the same issue. I resolved it by executing the following command :

jupyter notebook --no-browser

Initially it will show 0 active kernels, once we start creating notebooks on different environments like Python,R etc it will show us the number of active kernels.

like image 22
tarun kumar Sharma Avatar answered Sep 20 '22 06:09

tarun kumar Sharma