Open user23ayush opened 4 years ago
What is produced on the notebook server console when attempting to start a kernel?
What is produced on the notebook server console when attempting to start a kernel?
I think this is the error you are asking
This is what I get when I launch Jupyter notebook C:\Users\AYUSH>jupyter notebook [I 20:28:02.669 NotebookApp] The port 8888 is already in use, trying another port. [I 20:28:02.669 NotebookApp] The port 8889 is already in use, trying another port. [I 20:28:02.719 NotebookApp] JupyterLab extension loaded from E:\ANACONDA3\lib\site-packages\jupyterlab [I 20:28:02.720 NotebookApp] JupyterLab application directory is E:\ANACONDA3\share\jupyter\lab [I 20:28:02.733 NotebookApp] Serving notebooks from local directory: C:\Users\AYUSH [I 20:28:02.733 NotebookApp] The Jupyter Notebook is running at: [I 20:28:02.733 NotebookApp] http://localhost:8890/?token=402151f344e8b06841d8520d42a5ccb50fdf7d0592004854 [I 20:28:02.733 NotebookApp] or http://127.0.0.1:8890/?token=402151f344e8b06841d8520d42a5ccb50fdf7d0592004854 [I 20:28:02.733 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 20:28:02.773 NotebookApp]
Hmm - looks like some critical status log message was about to be produced.
First, I suspect you have a couple notebook servers already running (on ports 8888 and 8889) that we should probably stop. Control-C (twice) out of this instance, then:
jupyter notebook stop 8888
jupyter notebook stop 8889
Once back to a clean state, please to the following:
jupyter kernelspec list
jupyter notebook --debug
Thanks.
C:\Users\AYUSH>jupyter notebook [I 23:41:09.950 NotebookApp] JupyterLab extension loaded from E:\ANACONDA3\lib\site-packages\jupyterlab [I 23:41:09.951 NotebookApp] JupyterLab application directory is E:\ANACONDA3\share\jupyter\lab [I 23:41:09.973 NotebookApp] Serving notebooks from local directory: C:\Users\AYUSH [I 23:41:09.973 NotebookApp] The Jupyter Notebook is running at: [I 23:41:09.973 NotebookApp] http://localhost:8888/?token=6d1dd65904672c7b9d747c2484863d5e456db8de2708ab1b [I 23:41:09.974 NotebookApp] or http://127.0.0.1:8888/?token=6d1dd65904672c7b9d747c2484863d5e456db8de2708ab1b [I 23:41:09.974 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 23:41:10.034 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/AYUSH/AppData/Roaming/jupyter/runtime/nbserver-15492-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=6d1dd65904672c7b9d747c2484863d5e456db8de2708ab1b
or http://127.0.0.1:8888/?token=6d1dd65904672c7b9d747c2484863d5e456db8de2708ab1b
[I 23:41:35.035 NotebookApp] Interrupted... [I 23:41:35.035 NotebookApp] Shutting down 0 kernels
C:\Users\AYUSH>jupyter notebook stop 8888 There is currently no server running on port 8888 Ports currently in use:
C:\Users\AYUSH>jupyter notebook stop 8889 There is currently no server running on port 8889 Ports currently in use:
C:\Users\AYUSH>jupyter notebook --debug [D 23:43:30.901 NotebookApp] Searching ['C:\Users\AYUSH', 'C:\Users\AYUSH\.jupyter', 'E:\ANACONDA3\etc\jupyter', 'C:\ProgramData\jupyter'] for config files [D 23:43:30.902 NotebookApp] Looking for jupyter_config in C:\ProgramData\jupyter [D 23:43:30.904 NotebookApp] Looking for jupyter_config in E:\ANACONDA3\etc\jupyter [D 23:43:30.905 NotebookApp] Looking for jupyter_config in C:\Users\AYUSH.jupyter [D 23:43:30.906 NotebookApp] Looking for jupyter_config in C:\Users\AYUSH [D 23:43:30.907 NotebookApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter [D 23:43:30.907 NotebookApp] Looking for jupyter_notebook_config in E:\ANACONDA3\etc\jupyter [D 23:43:30.910 NotebookApp] Loaded config file: E:\ANACONDA3\etc\jupyter\jupyter_notebook_config.json [D 23:43:30.910 NotebookApp] Looking for jupyter_notebook_config in C:\Users\AYUSH.jupyter [D 23:43:30.911 NotebookApp] Looking for jupyter_notebook_config in C:\Users\AYUSH [D 23:43:30.915 NotebookApp] Ignoring min_open_files_limit because the limit cannot be adjusted (for example, on Windows) [D 23:43:30.920 NotebookApp] Paths used for configuration of jupyter_notebook_config: C:\ProgramData\jupyter\jupyter_notebook_config.json [D 23:43:30.921 NotebookApp] Paths used for configuration of jupyter_notebook_config: E:\ANACONDA3\etc\jupyter\jupyter_notebook_config.d\jupyterlab.json E:\ANACONDA3\etc\jupyter\jupyter_notebook_config.json [D 23:43:30.923 NotebookApp] Paths used for configuration of jupyter_notebook_config: C:\Users\AYUSH.jupyter\jupyter_notebook_config.json [I 23:43:31.371 NotebookApp] JupyterLab extension loaded from E:\ANACONDA3\lib\site-packages\jupyterlab [I 23:43:31.371 NotebookApp] JupyterLab application directory is E:\ANACONDA3\share\jupyter\lab [D 23:43:31.392 NotebookApp] NodeJS was not found. Yarn user configuration is ignored. [I 23:43:31.396 NotebookApp] Serving notebooks from local directory: C:\Users\AYUSH [I 23:43:31.396 NotebookApp] The Jupyter Notebook is running at: [I 23:43:31.397 NotebookApp] http://localhost:8888/?token=250d3d468100e9c5d20b5ad0d070b30c8f7c5884ec154e28 [I 23:43:31.398 NotebookApp] or http://127.0.0.1:8888/?token=250d3d468100e9c5d20b5ad0d070b30c8f7c5884ec154e28 [I 23:43:31.399 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 23:43:31.460 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/AYUSH/AppData/Roaming/jupyter/runtime/nbserver-15912-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=250d3d468100e9c5d20b5ad0d070b30c8f7c5884ec154e28
or http://127.0.0.1:8888/?token=250d3d468100e9c5d20b5ad0d070b30c8f7c5884ec154e28
[D 23:43:32.973 NotebookApp] Accepting token-authenticated connection from ::1
[D 23:43:32.975 NotebookApp] Using contents: services/contents
[D 23:43:33.047 NotebookApp] Path base/images/favicon.ico served from E:\ANACONDA3\lib\site-packages\notebook\static\base\images\favicon.ico
[D 23:43:33.048 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from E:\ANACONDA3\lib\site-packages\notebook\static\components\jquery-ui\themes\smoothness\jquery-ui.min.css
[D 23:43:33.052 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from E:\ANACONDA3\lib\site-packages\notebook\static\components\jquery-typeahead\dist\jquery.typeahead.min.css
[D 23:43:33.055 NotebookApp] Path style/style.min.css served from E:\ANACONDA3\lib\site-packages\notebook\static\style\style.min.css
[D 23:43:33.056 NotebookApp] Path components/es6-promise/promise.min.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\es6-promise\promise.min.js
[D 23:43:33.057 NotebookApp] Path components/react/react.production.min.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\react\react.production.min.js
[D 23:43:33.061 NotebookApp] Path components/react/react-dom.production.min.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\react\react-dom.production.min.js
[D 23:43:33.063 NotebookApp] Path components/create-react-class/index.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\create-react-class\index.js
[D 23:43:33.064 NotebookApp] Path components/requirejs/require.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\requirejs\require.js
[D 23:43:33.066 NotebookApp] Path base/images/logo.png served from E:\ANACONDA3\lib\site-packages\notebook\static\base\images\logo.png
[D 23:43:33.068 NotebookApp] Path tree/js/main.min.js served from E:\ANACONDA3\lib\site-packages\notebook\static\tree\js\main.min.js
[D 23:43:33.073 NotebookApp] 200 GET /tree?token=250d3d468100e9c5d20b5ad0d070b30c8f7c5884ec154e28 (::1) 100.73ms
[D 23:43:33.137 NotebookApp] Path custom.css served from E:\ANACONDA3\lib\site-packages\notebook\static\custom\custom.css
[D 23:43:33.139 NotebookApp] 304 GET /custom/custom.css (::1) 2.99ms
[D 23:43:33.659 NotebookApp] Path services\contents.js served from E:\ANACONDA3\lib\site-packages\notebook\static\services\contents.js
[D 23:43:33.662 NotebookApp] 200 GET /static/services/contents.js?v=20200422234330 (::1) 3.00ms
[D 23:43:33.706 NotebookApp] Paths used for configuration of tree:
C:\ProgramData\jupyter\nbconfig\tree.json
[D 23:43:33.707 NotebookApp] Paths used for configuration of tree:
E:\ANACONDA3\etc\jupyter\nbconfig\tree.json
[D 23:43:33.710 NotebookApp] Paths used for configuration of tree:
C:\Users\AYUSH.jupyter\nbconfig\tree.json
[D 23:43:33.712 NotebookApp] 200 GET /api/config/tree?=1587579213414 (::1) 7.98ms
[D 23:43:33.716 NotebookApp] Paths used for configuration of common:
C:\ProgramData\jupyter\nbconfig\common.json
[D 23:43:33.719 NotebookApp] Paths used for configuration of common:
E:\ANACONDA3\etc\jupyter\nbconfig\common.json
[D 23:43:33.722 NotebookApp] Paths used for configuration of common:
C:\Users\AYUSH.jupyter\nbconfig\common.json
[D 23:43:33.723 NotebookApp] 200 GET /api/config/common?=1587579213415 (::1) 8.98ms
[D 23:43:33.730 NotebookApp] Found kernel myenv in C:\Users\AYUSH\AppData\Roaming\jupyter\kernels
[D 23:43:33.730 NotebookApp] Found kernel python3 in C:\Users\AYUSH\AppData\Roaming\jupyter\kernels
[D 23:43:33.738 NotebookApp] 304 GET /api/kernelspecs (::1) 10.97ms
[D 23:43:33.743 NotebookApp] 200 GET /api/sessions?=1587579213417 (::1) 2.99ms
[D 23:43:33.746 NotebookApp] 200 GET /api/terminals?=1587579213418 (::1) 1.00ms
[D 23:43:33.751 NotebookApp] 200 GET /api/terminals?=1587579213416 (::1) 0.99ms
[D 23:43:33.821 NotebookApp] Path custom.js served from E:\ANACONDA3\lib\site-packages\notebook\static\custom\custom.js
[D 23:43:33.824 NotebookApp] 200 GET /custom/custom.js?v=20200422234330 (::1) 3.99ms
[D 23:43:33.877 NotebookApp] 200 GET /api/contents?type=directory&_=1587579213419 (::1) 33.91ms
[I 23:43:45.587 NotebookApp] Creating new notebook in
[D 23:43:45.595 NotebookApp] Saving C:\Users\AYUSH\Untitled17.ipynb
[D 23:43:45.644 NotebookApp] 201 POST /api/contents (::1) 59.59ms
[D 23:43:45.659 NotebookApp] Using contents: services/contents
[D 23:43:45.737 NotebookApp] Path base/images/favicon-notebook.ico served from E:\ANACONDA3\lib\site-packages\notebook\static\base\images\favicon-notebook.ico
[D 23:43:45.738 NotebookApp] Path components/bootstrap-tour/build/css/bootstrap-tour.min.css served from E:\ANACONDA3\lib\site-packages\notebook\static\components\bootstrap-tour\build\css\bootstrap-tour.min.css
[D 23:43:45.742 NotebookApp] Path components/codemirror/lib/codemirror.css served from E:\ANACONDA3\lib\site-packages\notebook\static\components\codemirror\lib\codemirror.css
[D 23:43:45.743 NotebookApp] Path notebook/css/override.css served from E:\ANACONDA3\lib\site-packages\notebook\static\notebook\css\override.css
[D 23:43:46.259 NotebookApp] Path components/text-encoding/lib/encoding.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\text-encoding\lib\encoding.js
[D 23:43:46.260 NotebookApp] Path notebook/js/main.min.js served from E:\ANACONDA3\lib\site-packages\notebook\static\notebook\js\main.min.js
[D 23:43:46.268 NotebookApp] 200 GET /notebooks/Untitled17.ipynb?kernel_name=python3 (::1) 610.26ms
[D 23:43:46.310 NotebookApp] Path components\MathJax\MathJax.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\MathJax\MathJax.js
[D 23:43:46.312 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (::1) 3.99ms
[D 23:43:46.320 NotebookApp] 304 GET /custom/custom.css (::1) 1.99ms
[D 23:43:46.448 NotebookApp] Path components\MathJax\config\TeX-AMS-MML_HTMLorMML-full.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\MathJax\config\TeX-AMS-MML_HTMLorMML-full.js
[D 23:43:46.449 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MMLHTMLorMML-full.js?V=2.7.7 (::1) 1.99ms
[D 23:43:46.574 NotebookApp] Path components\MathJax\config\Safe.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\MathJax\config\Safe.js
[D 23:43:46.575 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.7 (::1) 1.96ms
[D 23:43:46.676 NotebookApp] Paths used for configuration of notebook:
C:\ProgramData\jupyter\nbconfig\notebook.json
[D 23:43:46.677 NotebookApp] Paths used for configuration of notebook:
E:\ANACONDA3\etc\jupyter\nbconfig\notebook.d\widgetsnbextension.json
E:\ANACONDA3\etc\jupyter\nbconfig\notebook.json
[D 23:43:46.680 NotebookApp] Paths used for configuration of notebook:
C:\Users\AYUSH.jupyter\nbconfig\notebook.json
[D 23:43:46.681 NotebookApp] 200 GET /api/config/notebook?=1587579226537 (::1) 5.98ms
[D 23:43:46.684 NotebookApp] Paths used for configuration of common:
C:\ProgramData\jupyter\nbconfig\common.json
[D 23:43:46.685 NotebookApp] Paths used for configuration of common:
E:\ANACONDA3\etc\jupyter\nbconfig\common.json
[D 23:43:46.686 NotebookApp] Paths used for configuration of common:
C:\Users\AYUSH.jupyter\nbconfig\common.json
[D 23:43:46.689 NotebookApp] 200 GET /api/config/common?_=1587579226538 (::1) 5.98ms
[D 23:43:46.712 NotebookApp] Path components\MathJax\extensions\MathML\content-mathml.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\MathJax\extensions\MathML\content-mathml.js
[D 23:43:46.713 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.7 (::1) 1.99ms
[D 23:43:46.742 NotebookApp] Found kernel myenv in C:\Users\AYUSH\AppData\Roaming\jupyter\kernels
[D 23:43:46.743 NotebookApp] Found kernel python3 in C:\Users\AYUSH\AppData\Roaming\jupyter\kernels
[D 23:43:46.748 NotebookApp] 304 GET /api/kernelspecs (::1) 6.98ms
[D 23:43:46.795 NotebookApp] 200 GET /api/contents/Untitled17.ipynb?type=notebook&=1587579226539 (::1) 19.98ms
[D 23:43:46.800 NotebookApp] 304 GET /custom/custom.js?v=20200422234330 (::1) 3.00ms
[D 23:43:46.802 NotebookApp] Path components\MathJax\jax\output\HTML-CSS\fonts\STIX-Web\fontdata.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\MathJax\jax\output\HTML-CSS\fonts\STIX-Web\fontdata.js
[D 23:43:46.804 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.7 (::1) 2.99ms
[D 23:43:46.845 NotebookApp] Path jupyter-js-widgets\extension.js served from E:\ANACONDA3\share\jupyter\nbextensions\jupyter-js-widgets\extension.js
[D 23:43:46.858 NotebookApp] 200 GET /nbextensions/jupyter-js-widgets/extension.js?v=20200422234330 (::1) 13.99ms
[D 23:43:46.952 NotebookApp] 200 GET /api/contents/Untitled17.ipynb/checkpoints?_=1587579226540 (::1) 1.00ms
[D 23:43:47.013 NotebookApp] Path components\MathJax\extensions\Safe.js served from E:\ANACONDA3\lib\site-packages\notebook\static\components\MathJax\extensions\Safe.js
[D 23:43:47.014 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.7 (::1) 2.00ms
[D 23:43:47.099 NotebookApp] Starting kernel: ['C:\Users\AYUSH\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe', '-m', 'ipykernel_launcher', '-f', 'C:\Users\AYUSH\AppData\Roaming\jupyter\runtime\kernel-96a4d59e-12da-4a1e-9329-a3bf5b886e8a.json']
[D 23:43:47.272 NotebookApp] Connecting to: tcp://127.0.0.1:52523
[D 23:43:47.285 NotebookApp] Connecting to: tcp://127.0.0.1:52521
[I 23:43:47.289 NotebookApp] Kernel started: 96a4d59e-12da-4a1e-9329-a3bf5b886e8a
[D 23:43:47.290 NotebookApp] Kernel args: {'kernel_name': 'python3', 'cwd': 'C:\Users\AYUSH'}
[D 23:43:47.291 NotebookApp] 201 POST /api/sessions (::1) 270.28ms
[D 23:43:47.303 NotebookApp] Initializing websocket connection /api/kernels/96a4d59e-12da-4a1e-9329-a3bf5b886e8a/channels
[D 23:43:47.306 NotebookApp] Requesting kernel info from 96a4d59e-12da-4a1e-9329-a3bf5b886e8a
[D 23:43:47.306 NotebookApp] Connecting to: tcp://127.0.0.1:52520
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\AYUSH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\ipykernel_launcher.py", line 16, in
Thank you for you efforts sir but the problem still persists
Hmm - looks like there's an issue during the initialization of the python kernel. I'm not sure downgrading tornado is necessary (your findings may have been associated with an older issue). I would recommend updating tornado and ensure you're running the latest versions of ipython and ipykernel.
If that doesn't result in successful start-up, and no one else here has other ideas, you might try opening an issue (with this information) in https://github.com/ipython/ipython.
As i found the solution is to downgrade the tornado pip to 5.1.1 . Either using pip install tornado==5.1.1 command or the screen shot method . But I cannot access the Mark to install the version as shown in screenshot. when I run the command
C:\Users\AYUSH>pip install tornado==5.1.1 Requirement already satisfied: tornado==5.1.1 in e:\anaconda3\lib\site-packages (5.1.1)
but still it shows cannot connect to kernel in Jupyter notebook. Please Help me i am stuck at this