The solution to the problem that jupyter notebook cannot jump to the browser and jupyter runs to the next line without responding.

Step one: Win+R to open cmd

Step 2: Enter:

jupyter notebook --generate-config

The following interface appears: 

  Step 3: Find this folder according to the path above, and double-click to open the jupyter-notebook-config.py file

Step 4: Use the shortcut key ctrl+F to find NotebookApp.browser, and enter the following code to save. As shown in the picture:

import webbrowser
webbrowser.register('msedge', None, webbrowser.GenericBrowser(r"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"))
c.NotebookApp.browser = 'msedge'

 

save document. 

 Finally, reopen jupyter notebook in cmd and you can jump to the browser normally. 

If it cannot run normally after entering jupyter notebook and the following situations occur, you can solve the problem through the following methods

1. If there is no result after running, jump directly to the next line.

2. Show that the kernel is busy

3. python3 in the upper right corner is solid (normally hollow)

 Don't worry, the following can solve your doubts. You can refer to the following link. I solved it using his method.

https://by-wei.blog.csdn.net/article/details/123677112?spm=1001.2014.3001.5506 

 

 

Guess you like

Origin blog.csdn.net/qq_72356432/article/details/126725250