Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No web browser found: could not locate runnable browser. Jupyter-notebook

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.

like image 681
David Odhiambo Nyerere Avatar asked Apr 06 '19 23:04

David Odhiambo Nyerere


1 Answers

This is a issue of tunneling. Try this:

ssh [email protected] -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

like image 56
Akshay Wadhwani Avatar answered Nov 10 '22 01:11

Akshay Wadhwani