Could not open jupyter (ipython) laptop in browser

I am using python3.5 and jupyter 4.0.6 . I ran jupyter notebook and got 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. 

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

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

This is my first time using a laptop. I tried to put the code below in the jupyter_notebook_config.py file, but to no avail:

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

he also says 0 active kernels . This is problem?

+5
source share
3 answers

I had a similar problem, but with Chrome. I do not know in firefox, but in chrome, Settings-> Enable guest browsing.

0
source

While running Jupyter on my ec2 instance, I encountered the same problem. I resolved it by running the following command:

jupyter notebook --no-browser

Initially, it will show 0 active cores, as soon as we start creating laptops in different environments, such as Python, R, etc., it will show us the number of active cores.

0
source

If you are using a jupyter laptop in a virtual machine (mainly on Linux vm on a Windows guest computer) and trying to access from a guest, you will need to run the Jupyter Notebook with the correct parameters. Try running it as shown below and it should work.

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

Please check the ip of the virtual machine before entering the URL in firefox. you can use

 ifconfig 

for this.

0
source

Source: https://habr.com/ru/post/1243003/


All Articles