Python Forum
Jupyter Notebook cant start run
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jupyter Notebook cant start run
#1
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
Reply
#2
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.
Reply
#3
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.
Reply
#4
Set chrome as your default browser?
Reply
#5
(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.
Reply
#6
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?
Reply
#7
(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.
Reply
#8
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 = ''
Reply
#9
Thank you for information!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 1,034 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 712 Oct-29-2023, 12:40 PM
Last Post: Mark17
  How to programmatically stop a program in Jupyter Notebook? Mark17 11 37,190 Feb-12-2023, 01:41 PM
Last Post: jp21in
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 946 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Graphs from Jupyter notebook to word Scott 0 889 Nov-28-2022, 06:16 AM
Last Post: Scott
  Opening an empty Jupyter notebook in VSCODE Krischu 3 1,848 Mar-09-2022, 01:57 PM
Last Post: Larz60+
  How to do line continuation in Jupyter Notebook? Mark17 4 5,503 Sep-22-2021, 04:22 PM
Last Post: ibreeden
  Jupyter Notebook as IDE bytecrunch 0 1,613 Sep-12-2021, 07:41 PM
Last Post: bytecrunch
  It says there is no keras in jupyter notebook. it is wrong there is a keras install Led_Zeppelin 0 1,889 Apr-27-2021, 08:29 PM
Last Post: Led_Zeppelin
  importing matplotlib in jupyter notebook Led_Zeppelin 4 3,474 Feb-25-2021, 07:28 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020