Python Forum

Full Version: Jupyter Notebook cant start run
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! My name is Alexander. I am from Russia. I am only began to learn the programming.
My learning book is - Beginning programming with Pyton by John Paul Mueller. (for dummies).

I am read book and stand at excercise of Jupyter Notebook environment of Anaconda IDE.
Problem is that Jupyter Notebook cant start. I am have Windows 10.
At Anaconda Navigator Anaconda Powershell and Spyder is good working.
But I am cant start run Jupyter Notebook that needs to learn the book.
I am have an Avast Antivirus, try to add a exception. And result is same.
Running Jupyter Program from My Desktop shows that message - "open this file in a browser..."
At Anaconda Navigator it loads (Jupyter Notebook)(blue line at down right of the screen) when I press launch Jupyter button. But nothing shows.
But operation system process shows it in a Tasks of windows. (ctrl-alt-del..)
Moderator: Removed images adult content
A question and a suggestion. First, what is your default browser? That's one missing piece of the puzzle, as Jupyter Notebook should open in your default browser.

Suggest - copy the url with the 8888 in it, completely (highlight, copy). Open the Chrome browser and paste that url into the address bar.

And let us know.
DuoLife - strange Image-Share picture... Its not my picture.

My default browser is Opera. I am try to set to default all browsers - FireFox, Chrome and etc.
I am try your method, manually enter URL with the 8888 (it cant copy automatically) and all works!
I am save it address in Opera to easier go to Jupyter Notebook.
Thank you. ))

Problem again. Next time I am launch Jupyter Notebook it shows me another URL 8888. And old URL not works. Its bad that cant copy by ctrl-c or something.
Set chrome as your default browser?
(Mar-30-2020, 10:16 PM)jefsummers Wrote: [ -> ]Set chrome as your default browser?

Yes, I am try all of exists browsers that I have in Windows 10 system. And all of them shows similar logo with localhost:8888 when I start Jupyter Notebook.
Strange, I am read russian forums of this problem, many people have some problems and no one right answer to solve it.
Quote:I am try your method, manually enter URL with the 8888 (it cant copy automatically) and all works!
I'm confused. You can get into Jupyter Notebook?
(Mar-31-2020, 06:52 PM)jefsummers Wrote: [ -> ]I'm confused. You can get into Jupyter Notebook?
Hello! Yes, I am all understand now. Thank you.
At First I didn't know how to copy the text from the command line CMD.
Then I found the "Mark" command (CTRL-M, then ENTER) and the required string (URL 8888) is easily copied to the browser's search bar.
Jupyter Notebook use the webbrowser to invoke a web browser when opening the Jupyter Notebook.
If test this should open in default browser(Windows).
import webbrowser

webbrowser.open("http://www.google.com")
So if use Chrome this usually work fine.

Writing out config that is used jupyter notebook --generate-config
(base) G:\Anaconda3\Scripts
λ jupyter notebook --generate-config
Writing default config to: C:\Users\Tom\.jupyter\jupyter_notebook_config.py
So if i open jupyter_notebook_config.py and change line 99 to eg use Firefox.
Jupyter Notebook will open in FireFox when start.
See that also need that %s in end of path for this to work.
## Specify what command to use to invoke a web browser when opening the notebook.
#  If not specified, the default browser will be determined by the `webbrowser`
#  standard library module, which allows setting of the BROWSER environment
#  variable to override it.
c.NotebookApp.browser = 'C:/Program Files (x86)/Mozilla Firefox/firefox.exe %s'
Default line 99 is set as this,then it open Jupyter Notebook in Chromes as that's my default browser.
#c.NotebookApp.browser = ''
Thank you for information!