With Regards,
I have installed Anaconda and then launch Jupyter Notebook .Being a noob I am trying printing my name in it I am not getting the ouput.
I have downgraded the tornado to 5.1.1, but still it is not working.
I have Python 3.7.1 installed.
There is something ipykernel which I have installed by using pip install ipykernel but again nothing happens.
Moreover on typing jupyter kernelspec list I ve got this
C:\Users\This-PC>jupyter kernelspec list
Available kernels:
python3 c:\users\this-pc\appdata\local\programs\python\python37-32\share\jupyter\kernels\python3
I am attaching some images please find out.
If you need anything else I will supply it.
Thank you.
Errors:
i have the same problem!!
Could you please provide the output you see on the Notebook server's console? It may show some clues as to what might be happening.
Could you please provide the output you see on the Notebook server's console? It may show some clues as to what might be happening.
I have attached the images for the output
Here it is:
@toanasahmed - this is the output on the Notebook itself. I'm talking about the terminal/shell in which the command jupyter notebook was invoked. It should contain some traceback information or the like relative to this issue.
I would also recommend restarting the notebook server with debug logging enabled (e.g., jupyter notebook --debug ... which will produce additional information that may prove helpful. Thanks.
Thanks for your quick reply.
Here is the output for jupyter notebook :
And this is the outcome for jupyter notebook - debug . . . after restarting the notebook server:
`C:\Users\This-PC>jupyter notebook - debug . . .
The Jupyter HTML Notebook.
This launches a Tornado based HTML Notebook Server that serves up an
HTML5/Javascript Notebook client.
Subcommands are launched as jupyter-notebook cmd [args]. For information on
using subcommand 'cmd', do: jupyter-notebook cmd -h.
list
List currently running notebook servers.
stop
Stop currently running notebook server for a given port
password
Set a password for the notebook server.
Arguments that take values are actually convenience aliases to full
Configurables, whose aliases are listed on the help line. For more information
on full configurables, see '--help-all'.
--debug
set log level to logging.DEBUG (maximize logging output)
--generate-config
generate default config file
-y
Answer yes to any questions instead of prompting.
--no-browser
Don't open the notebook in a browser after startup.
--pylab
DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib.
--no-mathjax
Disable MathJax
MathJax is the javascript library Jupyter uses to render math/LaTeX. It is
very large, so you may want to disable it if you have a slow internet
connection, or for offline use of the notebook.
When disabled, equations etc. will appear as their untransformed TeX source.
--allow-root
Allow the notebook to be run from root user.
--script
DEPRECATED, IGNORED
--no-script
DEPRECATED, IGNORED
--log-level=
Default: 30
Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
Set the log level by value or name.
--config=
Default: ''
Full path of a config file.
--ip=
Default: 'localhost'
The IP address the notebook server will listen on.
--port=
Default: 8888
The port the notebook server will listen on.
--port-retries=
Default: 50
The number of additional ports to try if the specified port is not
available.
--transport=
Default: 'tcp'
Choices: ['tcp', 'ipc']
--keyfile=
Default: ''
The full path to a private key file for usage with SSL/TLS.
--certfile=
Default: ''
The full path to an SSL/TLS certificate file.
--client-ca=
Default: ''
The full path to a certificate authority certificate for SSL/TLS client
authentication.
--notebook-dir=
Default: ''
The directory to use for notebooks and kernels.
--browser=
Default: ''
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.
--pylab=
Default: 'disabled'
DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib.
--gateway-url=
Default: None
The url of the Kernel or Enterprise Gateway server where kernel
specifications are defined and kernel management takes place. If defined,
this Notebook server acts as a proxy for all kernel management and kernel
specification retrieval. (JUPYTER_GATEWAY_URL env var)
To see all available configurables, use --help-all
jupyter notebook # start the notebook
jupyter notebook --certfile=mycert.pem # use SSL/TLS certificate
jupyter notebook password # enter a password to protect the server
[C 00:05:56.683 NotebookApp] Bad config encountered during initialization:
[C 00:05:56.683 NotebookApp] Invalid argument: '-'
`
@toanasahmed - we're actually going backwards here from a troubleshooting standpoint, so let's try to address the issues I see in your response and we'll go from there.
--debug. The ellipses (e.g., ...) were purely meant to represent the rest of your command line when jupyter notebook was started the first time. They should not be included in your command and is why jupyter produced its help output because it couldn't parse those options. If you don't know how your jupyter server was started originally, then it may not be possible to continue this exercise unless your original command was simply jupyter notebook.8888, the second is using port 8889 and the final (current) instance is listening on port 8890. I would strongly recommend you terminate all instances so that only one is running (with the --debug flag). To terminate instances, go to their command window/terminal and enter <control-C> twice. This will terminate a single instance of a server. If you no longer have access to those terminals, you'll need to determine the notebook process and terminate it.Once the these three points are addressed I think we should be able to move forward on troubleshooting your original issue. Thanks.

can u take a look for me? thanks.
:smile: I believe "interesting portions" of the terminal output have scrolled off your screen. Please capture the entire startup sequence, either via screen-scrape or by redirecting the output to a file.
What we _can_ see is that it appears the kernel-info response has not been received. This is consistent with the kernel not completely starting. I'm hoping some "useful" information is above the various GET responses. There should be information pertaining to the kernel's startup.
(my-rdkit-env) [root@localhost ~]# jupyter notebook --allow-root --debug
[D 17:14:33.065 NotebookApp] Searching ['/root', '/root/.jupyter', '/root/anaconda3/envs/my-rdkit-env/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 17:14:33.066 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 17:14:33.066 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 17:14:33.066 NotebookApp] Looking for jupyter_config in /root/anaconda3/envs/my-rdkit-env/etc/jupyter
[D 17:14:33.066 NotebookApp] Looking for jupyter_config in /root/.jupyter
[D 17:14:33.066 NotebookApp] Looking for jupyter_config in /root
[D 17:14:33.067 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 17:14:33.067 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 17:14:33.067 NotebookApp] Looking for jupyter_notebook_config in /root/anaconda3/envs/my-rdkit-env/etc/jupyter
[D 17:14:33.068 NotebookApp] Loaded config file: /root/anaconda3/envs/my-rdkit-env/etc/jupyter/jupyter_notebook_config.json
[D 17:14:33.068 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter
[D 17:14:33.068 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.py
[D 17:14:33.069 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.json
[W 17:14:33.069 NotebookApp] Collisions detected in /root/.jupyter/jupyter_notebook_config.py and /root/.jupyter/jupyter_notebook_config.json config files. /root/.jupyter/jupyter_notebook_config.json has higher priority: {
"NotebookApp": {
"password": "'123456' ignored, using 'sha1:f3bd4481664e:e213e841b4854685bcae350b836039389cd79cee'"
}
}
[D 17:14:33.069 NotebookApp] Looking for jupyter_notebook_config in /root
[D 17:14:33.073 NotebookApp] [nb_conda_kernels] refreshing conda info
WARNING: The conda.compat module is deprecated and will be removed in a future release.
[I 17:14:33.495 NotebookApp] [nb_conda_kernels] enabled, 3 kernels found
[D 17:14:33.505 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 17:14:33.506 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 17:14:33.507 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/root/anaconda3/envs/my-rdkit-env/etc/jupyter/jupyter_notebook_config.json
[D 17:14:33.508 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/root/.jupyter/jupyter_notebook_config.json
[I 17:14:33.860 NotebookApp] [nb_conda] enabled
[I 17:14:33.861 NotebookApp] Serving notebooks from local directory: /root
[I 17:14:33.861 NotebookApp] The Jupyter Notebook is running at:
[I 17:14:33.861 NotebookApp] http://localhost.localdomain:8888/
[I 17:14:33.861 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 17:15:59.512 NotebookApp] 302 GET / (172.16.48.232) 1.19ms
[D 17:15:59.520 NotebookApp] Using contents: services/contents
[D 17:15:59.604 NotebookApp] Path base/images/favicon.ico served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/base/images/favicon.ico
[D 17:15:59.606 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css
[D 17:15:59.606 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/jquery-typeahead/dist/jquery.typeahead.min.css
[D 17:15:59.606 NotebookApp] Path style/style.min.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/style/style.min.css
[D 17:15:59.607 NotebookApp] Path components/es6-promise/promise.min.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/es6-promise/promise.min.js
[D 17:15:59.608 NotebookApp] Path components/react/react.production.min.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/react/react.production.min.js
[D 17:15:59.608 NotebookApp] Path components/react/react-dom.production.min.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/react/react-dom.production.min.js
[D 17:15:59.608 NotebookApp] Path components/create-react-class/index.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/create-react-class/index.js
[D 17:15:59.609 NotebookApp] Path components/requirejs/require.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/requirejs/require.js
[D 17:15:59.610 NotebookApp] Path base/images/logo.png served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/base/images/logo.png
[D 17:15:59.610 NotebookApp] Path tree/js/main.min.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/tree/js/main.min.js
[D 17:15:59.617 NotebookApp] 200 GET /tree? (172.16.48.232) 98.36ms
[D 17:15:59.654 NotebookApp] Path custom.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/custom/custom.css
[D 17:15:59.656 NotebookApp] 304 GET /custom/custom.css (172.16.48.232) 4.05ms
[D 17:16:00.290 NotebookApp] Path services/contents.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/services/contents.js
[D 17:16:00.291 NotebookApp] 200 GET /static/services/contents.js?v=20191105171433 (172.16.48.232) 1.77ms
[D 17:16:00.354 NotebookApp] Paths used for configuration of tree:
/etc/jupyter/nbconfig/tree.json
[D 17:16:00.356 NotebookApp] Paths used for configuration of tree:
/usr/local/etc/jupyter/nbconfig/tree.json
[D 17:16:00.357 NotebookApp] Paths used for configuration of tree:
/root/anaconda3/envs/my-rdkit-env/etc/jupyter/nbconfig/tree.json
[D 17:16:00.358 NotebookApp] Paths used for configuration of tree:
/root/.jupyter/nbconfig/tree.json
[D 17:16:00.359 NotebookApp] 200 GET /api/config/tree?_=1572916567934 (172.16.48.232) 9.88ms
[D 17:16:00.362 NotebookApp] Paths used for configuration of common:
/etc/jupyter/nbconfig/common.json
[D 17:16:00.363 NotebookApp] Paths used for configuration of common:
/usr/local/etc/jupyter/nbconfig/common.json
[D 17:16:00.364 NotebookApp] Paths used for configuration of common:
/root/anaconda3/envs/my-rdkit-env/etc/jupyter/nbconfig/common.json
[D 17:16:00.365 NotebookApp] Paths used for configuration of common:
/root/.jupyter/nbconfig/common.json
[D 17:16:00.366 NotebookApp] 200 GET /api/config/common?_=1572916567935 (172.16.48.232) 5.56ms
[D 17:16:00.370 NotebookApp] Found kernel python3 in /root/anaconda3/envs/my-rdkit-env/share/jupyter/kernels
[D 17:16:00.371 NotebookApp] [nb_conda_kernels] refreshing conda info
WARNING: The conda.compat module is deprecated and will be removed in a future release.
[D 17:16:00.767 NotebookApp] 304 GET /api/kernelspecs (172.16.48.232) 398.96ms
[D 17:16:00.768 NotebookApp] 200 GET /api/terminals?_=1572916567936 (172.16.48.232) 399.78ms
[D 17:16:00.777 NotebookApp] 200 GET /api/sessions?_=1572916567937 (172.16.48.232) 6.02ms
[D 17:16:00.777 NotebookApp] Path custom.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/custom/custom.js
[D 17:16:00.778 NotebookApp] 200 GET /custom/custom.js?v=20191105171433 (172.16.48.232) 6.30ms
[D 17:16:00.778 NotebookApp] Path nb_conda/tree.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/tree.js
[D 17:16:00.779 NotebookApp] 200 GET /nbextensions/nb_conda/tree.js?v=20191105171433 (172.16.48.232) 6.45ms
[D 17:16:00.781 NotebookApp] 200 GET /api/terminals?_=1572916567938 (172.16.48.232) 1.06ms
[D 17:16:00.816 NotebookApp] 200 GET /api/contents?type=directory&_=1572916567939 (172.16.48.232) 6.96ms
[D 17:16:00.820 NotebookApp] Path nb_conda/models.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/models.js
[D 17:16:00.821 NotebookApp] 200 GET /nbextensions/nb_conda/models.js?v=20191105171433 (172.16.48.232) 1.80ms
[D 17:16:00.823 NotebookApp] Path nb_conda/views.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/views.js
[D 17:16:00.824 NotebookApp] 200 GET /nbextensions/nb_conda/views.js?v=20191105171433 (172.16.48.232) 2.53ms
[D 17:16:00.825 NotebookApp] Path nb_conda/urls.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/urls.js
[D 17:16:00.826 NotebookApp] 200 GET /nbextensions/nb_conda/urls.js?v=20191105171433 (172.16.48.232) 3.07ms
[D 17:16:00.898 NotebookApp] Path nb_conda/common.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/common.js
[D 17:16:00.899 NotebookApp] 200 GET /nbextensions/nb_conda/common.js?v=20191105171433 (172.16.48.232) 1.72ms
[D 17:16:00.916 NotebookApp] Path nb_conda/conda.css served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/conda.css
[D 17:16:00.916 NotebookApp] 304 GET /nbextensions/nb_conda/conda.css (172.16.48.232) 1.44ms
[D 17:16:00.918 NotebookApp] Path nb_conda/tab.html served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/tab.html
[D 17:16:00.919 NotebookApp] 304 GET /nbextensions/nb_conda/tab.html (172.16.48.232) 1.40ms
[D 17:16:36.131 NotebookApp] 200 GET /api/sessions?_=1572916567940 (172.16.48.232) 1.53ms
[D 17:16:36.133 NotebookApp] 200 GET /api/terminals?_=1572916567941 (172.16.48.232) 1.25ms
[D 17:16:36.170 NotebookApp] 200 GET /api/contents?type=directory&_=1572916567942 (172.16.48.232) 5.11ms
[D 17:16:44.535 NotebookApp] 200 GET /api/contents/test_dir?type=directory&_=1572916567943 (172.16.48.232) 3.86ms
[D 17:16:47.369 NotebookApp] Using contents: services/contents
[D 17:16:47.469 NotebookApp] Path base/images/favicon-notebook.ico served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/base/images/favicon-notebook.ico
[D 17:16:47.469 NotebookApp] Path components/bootstrap-tour/build/css/bootstrap-tour.min.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/bootstrap-tour/build/css/bootstrap-tour.min.css
[D 17:16:47.469 NotebookApp] Path components/codemirror/lib/codemirror.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/codemirror/lib/codemirror.css
[D 17:16:47.470 NotebookApp] Path notebook/css/override.css served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/notebook/css/override.css
[D 17:16:47.681 NotebookApp] Path components/text-encoding/lib/encoding.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/text-encoding/lib/encoding.js
[D 17:16:47.681 NotebookApp] Path notebook/js/main.min.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/notebook/js/main.min.js
[D 17:16:47.687 NotebookApp] 200 GET /notebooks/test_dir/rdkit.ipynb (172.16.48.232) 319.09ms
[D 17:16:47.752 NotebookApp] Path components/MathJax/MathJax.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/MathJax/MathJax.js
[D 17:16:47.753 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (172.16.48.232) 1.77ms
[D 17:16:47.754 NotebookApp] 304 GET /custom/custom.css (172.16.48.232) 2.14ms
[D 17:16:47.932 NotebookApp] Path components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js
[D 17:16:47.933 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js?V=2.7.6 (172.16.48.232) 1.38ms
[D 17:16:47.982 NotebookApp] Path components/MathJax/config/Safe.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/MathJax/config/Safe.js
[D 17:16:47.983 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.6 (172.16.48.232) 1.43ms
[D 17:16:48.136 NotebookApp] Paths used for configuration of notebook:
/etc/jupyter/nbconfig/notebook.json
[D 17:16:48.137 NotebookApp] Paths used for configuration of notebook:
/usr/local/etc/jupyter/nbconfig/notebook.json
[D 17:16:48.138 NotebookApp] Paths used for configuration of notebook:
/root/anaconda3/envs/my-rdkit-env/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json
/root/anaconda3/envs/my-rdkit-env/etc/jupyter/nbconfig/notebook.json
[D 17:16:48.140 NotebookApp] Paths used for configuration of notebook:
/root/.jupyter/nbconfig/notebook.json
[D 17:16:48.141 NotebookApp] 200 GET /api/config/notebook?_=1572916615681 (172.16.48.232) 6.31ms
[D 17:16:48.143 NotebookApp] Paths used for configuration of common:
/etc/jupyter/nbconfig/common.json
[D 17:16:48.145 NotebookApp] Paths used for configuration of common:
/usr/local/etc/jupyter/nbconfig/common.json
[D 17:16:48.146 NotebookApp] Paths used for configuration of common:
/root/anaconda3/envs/my-rdkit-env/etc/jupyter/nbconfig/common.json
[D 17:16:48.147 NotebookApp] Paths used for configuration of common:
/root/.jupyter/nbconfig/common.json
[D 17:16:48.147 NotebookApp] 200 GET /api/config/common?_=1572916615682 (172.16.48.232) 5.58ms
[D 17:16:48.166 NotebookApp] Path components/MathJax/extensions/MathML/content-mathml.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/MathJax/extensions/MathML/content-mathml.js
[D 17:16:48.167 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.6 (172.16.48.232) 1.51ms
[D 17:16:48.198 NotebookApp] Found kernel python3 in /root/anaconda3/envs/my-rdkit-env/share/jupyter/kernels
[D 17:16:48.201 NotebookApp] 304 GET /api/kernelspecs (172.16.48.232) 3.58ms
[D 17:16:48.246 NotebookApp] 200 GET /api/contents/test_dir/rdkit.ipynb?type=notebook&_=1572916615683 (172.16.48.232) 19.99ms
[D 17:16:48.249 NotebookApp] 304 GET /custom/custom.js?v=20191105171433 (172.16.48.232) 1.37ms
[D 17:16:48.252 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js
[D 17:16:48.253 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.6 (172.16.48.232) 1.60ms
[D 17:16:48.262 NotebookApp] Path jupyter-js-widgets/extension.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/jupyter-js-widgets/extension.js
[D 17:16:48.264 NotebookApp] Path nb_conda/main.js served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/main.js
[D 17:16:48.265 NotebookApp] 200 GET /nbextensions/nb_conda/main.js?v=20191105171433 (172.16.48.232) 1.74ms
[D 17:16:48.326 NotebookApp] Path components/MathJax/extensions/Safe.js served from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/components/MathJax/extensions/Safe.js
[D 17:16:48.327 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.6 (172.16.48.232) 1.45ms
[D 17:16:48.422 NotebookApp] 200 GET /nbextensions/jupyter-js-widgets/extension.js?v=20191105171433 (172.16.48.232) 161.32ms
[D 17:16:48.603 NotebookApp] Starting kernel: ['/root/anaconda3/envs/my-rdkit-env/bin/python', '-m', 'ipykernel_launcher', '-f', '/root/.local/share/jupyter/runtime/kernel-f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669.json']
[D 17:16:48.612 NotebookApp] Connecting to: tcp://:34636
[D 17:16:48.615 NotebookApp] Connecting to: tcp://:44862
[I 17:16:48.619 NotebookApp] Kernel started: f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:16:48.619 NotebookApp] Kernel args: {'kernel_name': 'python3', 'cwd': '/root/test_dir'}
[D 17:16:48.621 NotebookApp] 201 POST /api/sessions (172.16.48.232) 56.14ms
[D 17:16:48.626 NotebookApp] 200 GET /api/contents/test_dir/rdkit.ipynb/checkpoints?_=1572916615684 (172.16.48.232) 3.42ms
[D 17:16:48.645 NotebookApp] 304 GET /nbextensions/nb_conda/models.js?v=20191105171433 (172.16.48.232) 1.51ms
[D 17:16:48.649 NotebookApp] 304 GET /nbextensions/nb_conda/views.js?v=20191105171433 (172.16.48.232) 1.30ms
[D 17:16:48.651 NotebookApp] 304 GET /nbextensions/nb_conda/urls.js?v=20191105171433 (172.16.48.232) 1.31ms
[D 17:16:48.726 NotebookApp] Initializing websocket connection /api/kernels/f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669/channels
[D 17:16:48.729 NotebookApp] Requesting kernel info from f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:16:48.729 NotebookApp] Connecting to: tcp://:37767
[D 17:16:48.836 NotebookApp] 304 GET /nbextensions/nb_conda/common.js?v=20191105171433 (172.16.48.232) 1.30ms
[D 17:16:48.866 NotebookApp] 304 GET /nbextensions/nb_conda/conda.css (172.16.48.232) 1.15ms
[D 17:16:48.869 NotebookApp] Path nb_conda/menu.html served from /root/anaconda3/envs/my-rdkit-env/share/jupyter/nbextensions/nb_conda/menu.html
[D 17:16:48.870 NotebookApp] 304 GET /nbextensions/nb_conda/menu.html (172.16.48.232) 1.45ms
[D 17:17:19.995 NotebookApp] 200 GET /api/sessions?_=1572916567944 (172.16.48.232) 1.84ms
[D 17:17:20.002 NotebookApp] 200 GET /api/terminals?_=1572916567945 (172.16.48.232) 1.29ms
[D 17:17:20.069 NotebookApp] 200 GET /api/contents/test_dir?type=directory&_=1572916567946 (172.16.48.232) 3.96ms
[W 17:17:48.731 NotebookApp] Timeout waiting for kernel_info reply from f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:17:48.733 NotebookApp] 101 GET /api/kernels/f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669/channels?session_id=77f3e9738ba44a078cf968c2cc61bc17 (172.16.48.232) 60007.36ms
[D 17:17:48.733 NotebookApp] Opening websocket /api/kernels/f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669/channels
[D 17:17:48.734 NotebookApp] Getting buffer for f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:17:48.734 NotebookApp] Connecting to: tcp://:37767
[D 17:17:48.734 NotebookApp] Connecting to: tcp://:34636
[D 17:17:48.735 NotebookApp] Connecting to: tcp://:44862
[D 17:17:48.735 NotebookApp] Connecting to: tcp://:60515
@xh22 - thank you for the complete console. Here are the "interesting" aspects...
[D 17:14:33.073 NotebookApp] [nb_conda_kernels] refreshing conda info
WARNING: The conda.compat module is deprecated and will be removed in a future release.
[I 17:14:33.495 NotebookApp] [nb_conda_kernels] enabled, 3 kernels found
...
[D 17:16:48.603 NotebookApp] Starting kernel: ['/root/anaconda3/envs/my-rdkit-env/bin/python', '-m', 'ipykernel_launcher', '-f', '/root/.local/share/jupyter/runtime/kernel-f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669.json']
[D 17:16:48.612 NotebookApp] Connecting to: tcp://:34636
[D 17:16:48.615 NotebookApp] Connecting to: tcp://:44862
[I 17:16:48.619 NotebookApp] Kernel started: f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:16:48.619 NotebookApp] Kernel args: {'kernel_name': 'python3', 'cwd': '/root/test_dir'}
[D 17:16:48.621 NotebookApp] 201 POST /api/sessions (172.16.48.232) 56.14ms
[D 17:16:48.726 NotebookApp] Initializing websocket connection /api/kernels/f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669/channels
[D 17:16:48.729 NotebookApp] Requesting kernel info from f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:16:48.729 NotebookApp] Connecting to: tcp://:37767
...
[W 17:17:48.731 NotebookApp] Timeout waiting for kernel_info reply from f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669
[D 17:17:48.733 NotebookApp] 101 GET /api/kernels/f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669/channels?session_id=77f3e9738ba44a078cf968c2cc61bc17 (172.16.48.232) 60007.36ms
I suspect this has something to do with nb_conda_kernels - of which I'm not familiar as I've never used them - but have heard disparaging stories about. I'm not sure how to go about troubleshooting them, but its clear the launched kernel is not responding.
Perhaps someone else has ideas? I'm copying a few others that I've seen on threads dealing with conda kernels - hopefully they'll have some ideas or provide links to previous solutions. @takluyver @blink1073 @Carreau
One thing you might try is re-installing nb-conda-kernels and/or creating another env. I don't know what the scope of nb-conda-kernels is - whether they span all conda envs or are specific to a particular env - but if you can uninstall them, you could try installing ipykernel and use that from Notebook.
I apologize for not being able to help you further.
(test) [root@localhost ~]# jupyter notebook --allow-root --debug
[D 21:03:42.404 NotebookApp] Searching ['/root', '/root/.jupyter', '/root/anaconda3/envs/test/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 21:03:42.405 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 21:03:42.405 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 21:03:42.405 NotebookApp] Looking for jupyter_config in /root/anaconda3/envs/test/etc/jupyter
[D 21:03:42.405 NotebookApp] Looking for jupyter_config in /root/.jupyter
[D 21:03:42.405 NotebookApp] Looking for jupyter_config in /root
[D 21:03:42.406 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 21:03:42.406 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 21:03:42.407 NotebookApp] Looking for jupyter_notebook_config in /root/anaconda3/envs/test/etc/jupyter
[D 21:03:42.407 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter
[D 21:03:42.407 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.py
[D 21:03:42.408 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.json
[W 21:03:42.408 NotebookApp] Collisions detected in /root/.jupyter/jupyter_notebook_config.py and /root/.jupyter/jupyter_notebook_config.json config files. /root/.jupyter/jupyter_notebook_config.json has higher priority: {
"NotebookApp": {
"password": "'123456' ignored, using 'sha1:f3bd4481664e:e213e841b4854685bcae350b836039389cd79cee'"
}
}
[D 21:03:42.408 NotebookApp] Looking for jupyter_notebook_config in /root
[D 21:03:42.414 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 21:03:42.415 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 21:03:42.415 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/root/anaconda3/envs/test/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/root/anaconda3/envs/test/etc/jupyter/jupyter_notebook_config.json
[D 21:03:42.416 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/root/.jupyter/jupyter_notebook_config.json
[I 21:03:42.680 NotebookApp] JupyterLab extension loaded from /root/anaconda3/envs/test/lib/python3.6/site-packages/jupyterlab
[I 21:03:42.680 NotebookApp] JupyterLab application directory is /root/anaconda3/envs/test/share/jupyter/lab
[I 21:03:42.682 NotebookApp] Serving notebooks from local directory: /root
[I 21:03:42.682 NotebookApp] The Jupyter Notebook is running at:
[I 21:03:42.682 NotebookApp] http://localhost.localdomain:8888/
[I 21:03:42.682 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[D 21:03:45.050 NotebookApp] 200 GET /api/terminals?=1572916567971 (172.16.48.232) 3.27ms
[D 21:03:45.053 NotebookApp] 200 GET /api/sessions?=1572916567970 (172.16.48.232) 4.98ms
[D 21:03:45.127 NotebookApp] 200 GET /api/contents/test_dir?type=directory&=1572916567972 (172.16.48.232) 5.83ms
[D 21:03:46.206 NotebookApp] Using contents: services/contents
[D 21:03:46.323 NotebookApp] Path base/images/favicon-notebook.ico served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/base/images/favicon-notebook.ico
[D 21:03:46.323 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css
[D 21:03:46.324 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/jquery-typeahead/dist/jquery.typeahead.min.css
[D 21:03:46.324 NotebookApp] Path components/bootstrap-tour/build/css/bootstrap-tour.min.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/bootstrap-tour/build/css/bootstrap-tour.min.css
[D 21:03:46.324 NotebookApp] Path components/codemirror/lib/codemirror.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/codemirror/lib/codemirror.css
[D 21:03:46.324 NotebookApp] Path style/style.min.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/style/style.min.css
[D 21:03:46.325 NotebookApp] Path notebook/css/override.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/notebook/css/override.css
[D 21:03:46.326 NotebookApp] Path components/es6-promise/promise.min.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/es6-promise/promise.min.js
[D 21:03:46.326 NotebookApp] Path components/react/react.production.min.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/react/react.production.min.js
[D 21:03:46.326 NotebookApp] Path components/react/react-dom.production.min.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/react/react-dom.production.min.js
[D 21:03:46.326 NotebookApp] Path components/create-react-class/index.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/create-react-class/index.js
[D 21:03:46.327 NotebookApp] Path components/requirejs/require.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/requirejs/require.js
[D 21:03:46.327 NotebookApp] Path base/images/logo.png served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/base/images/logo.png
[D 21:03:46.584 NotebookApp] Path components/text-encoding/lib/encoding.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/text-encoding/lib/encoding.js
[D 21:03:46.585 NotebookApp] Path notebook/js/main.min.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/notebook/js/main.min.js
[D 21:03:46.592 NotebookApp] 200 GET /notebooks/test_dir/rdkit.ipynb (172.16.48.232) 387.11ms
[D 21:03:46.731 NotebookApp] Path components/MathJax/MathJax.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/MathJax/MathJax.js
[D 21:03:46.733 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (172.16.48.232) 3.71ms
[D 21:03:46.734 NotebookApp] Path custom.css served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/custom/custom.css
[D 21:03:46.735 NotebookApp] 304 GET /custom/custom.css (172.16.48.232) 1.52ms
[D 21:03:46.882 NotebookApp] Path components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js
[D 21:03:46.883 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js?V=2.7.6 (172.16.48.232) 1.59ms
[D 21:03:46.963 NotebookApp] Path services/contents.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/services/contents.js
[D 21:03:46.964 NotebookApp] 200 GET /static/services/contents.js?v=20191105210342 (172.16.48.232) 1.73ms
[D 21:03:47.025 NotebookApp] Path components/MathJax/config/Safe.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/MathJax/config/Safe.js
[D 21:03:47.025 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.6 (172.16.48.232) 1.46ms
[D 21:03:47.030 NotebookApp] Paths used for configuration of notebook:
/etc/jupyter/nbconfig/notebook.json
[D 21:03:47.031 NotebookApp] Paths used for configuration of notebook:
/usr/local/etc/jupyter/nbconfig/notebook.json
[D 21:03:47.032 NotebookApp] Paths used for configuration of notebook:
/root/anaconda3/envs/test/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json
/root/anaconda3/envs/test/etc/jupyter/nbconfig/notebook.json
[D 21:03:47.033 NotebookApp] Paths used for configuration of notebook:
/root/.jupyter/nbconfig/notebook.json
[D 21:03:47.034 NotebookApp] 200 GET /api/config/notebook?=1572930234463 (172.16.48.232) 7.60ms
[D 21:03:47.038 NotebookApp] Paths used for configuration of common:
/etc/jupyter/nbconfig/common.json
[D 21:03:47.039 NotebookApp] Paths used for configuration of common:
/usr/local/etc/jupyter/nbconfig/common.json
[D 21:03:47.040 NotebookApp] Paths used for configuration of common:
/root/anaconda3/envs/test/etc/jupyter/nbconfig/common.json
[D 21:03:47.041 NotebookApp] Paths used for configuration of common:
/root/.jupyter/nbconfig/common.json
[D 21:03:47.042 NotebookApp] 200 GET /api/config/common?=1572930234464 (172.16.48.232) 5.45ms
[D 21:03:47.075 NotebookApp] Found kernel python3 in /root/anaconda3/envs/test/share/jupyter/kernels
[D 21:03:47.081 NotebookApp] 304 GET /api/kernelspecs (172.16.48.232) 7.97ms
[D 21:03:47.109 NotebookApp] 200 GET /api/contents/test_dir/rdkit.ipynb?type=notebook&=1572930234465 (172.16.48.232) 22.58ms
[D 21:03:47.111 NotebookApp] Path custom.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/custom/custom.js
[D 21:03:47.112 NotebookApp] 200 GET /custom/custom.js?v=20191105210342 (172.16.48.232) 1.95ms
[D 21:03:47.136 NotebookApp] Path jupyter-js-widgets/extension.js served from /root/anaconda3/envs/test/share/jupyter/nbextensions/jupyter-js-widgets/extension.js
[D 21:03:47.174 NotebookApp] Path components/MathJax/extensions/MathML/content-mathml.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/MathJax/extensions/MathML/content-mathml.js
[D 21:03:47.174 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.6 (172.16.48.232) 1.47ms
[D 21:03:47.380 NotebookApp] Starting kernel: ['/root/anaconda3/envs/test/bin/python', '-m', 'ipykernel_launcher', '-f', '/run/user/0/jupyter/kernel-425ab218-76c9-4bb0-b6e2-fb3b90565c03.json']
[D 21:03:47.389 NotebookApp] Connecting to: tcp://:48108
[D 21:03:47.392 NotebookApp] Connecting to: tcp://:39233
[I 21:03:47.396 NotebookApp] Kernel started: 425ab218-76c9-4bb0-b6e2-fb3b90565c03
[D 21:03:47.396 NotebookApp] Kernel args: {'kernel_name': 'python3', 'cwd': '/root/test_dir'}
[D 21:03:47.398 NotebookApp] 201 POST /api/sessions (172.16.48.232) 55.70ms
[D 21:03:47.402 NotebookApp] 200 GET /api/contents/test_dir/rdkit.ipynb/checkpoints?_=1572930234466 (172.16.48.232) 58.44ms
[D 21:03:47.411 NotebookApp] 200 GET /nbextensions/jupyter-js-widgets/extension.js?v=20191105210342 (172.16.48.232) 275.37ms
[D 21:03:47.413 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js
[D 21:03:47.414 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.6 (172.16.48.232) 2.03ms
[D 21:03:47.475 NotebookApp] Path components/MathJax/extensions/Safe.js served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/components/MathJax/extensions/Safe.js
[D 21:03:47.476 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.6 (172.16.48.232) 1.44ms
[D 21:03:47.695 NotebookApp] Initializing websocket connection /api/kernels/425ab218-76c9-4bb0-b6e2-fb3b90565c03/channels
[D 21:03:47.698 NotebookApp] Requesting kernel info from 425ab218-76c9-4bb0-b6e2-fb3b90565c03
[D 21:03:47.698 NotebookApp] Connecting to: tcp://:39586
[D 21:03:48.512 NotebookApp] Path base/images/favicon-busy-1.ico served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/base/images/favicon-busy-1.ico
[D 21:03:48.513 NotebookApp] 304 GET /static/base/images/favicon-busy-1.ico (172.16.48.232) 1.56ms
[W 21:04:47.700 NotebookApp] Timeout waiting for kernel_info reply from 425ab218-76c9-4bb0-b6e2-fb3b90565c03
[D 21:04:47.701 NotebookApp] 101 GET /api/kernels/425ab218-76c9-4bb0-b6e2-fb3b90565c03/channels?session_id=3711cc0e8ba1407f8b472c791bc4d775 (172.16.48.232) 60007.49ms
[D 21:04:47.702 NotebookApp] Opening websocket /api/kernels/425ab218-76c9-4bb0-b6e2-fb3b90565c03/channels
[D 21:04:47.702 NotebookApp] Getting buffer for 425ab218-76c9-4bb0-b6e2-fb3b90565c03
[D 21:04:47.703 NotebookApp] Connecting to: tcp://:39586
[D 21:04:47.703 NotebookApp] Connecting to: tcp://:48108
[D 21:04:47.704 NotebookApp] Connecting to: tcp://:39233
[D 21:04:47.705 NotebookApp] Connecting to: tcp://:45585
[D 21:04:47.961 NotebookApp] Initializing websocket connection /api/kernels/db32acf9-77e3-4467-b93a-38b8ec9f324e/channels
[W 21:04:47.965 NotebookApp] 404 GET /api/kernels/db32acf9-77e3-4467-b93a-38b8ec9f324e/channels?session_id=b5280c24342b49a6a515b1df07a9bdb9 (172.16.48.232): Kernel does not exist: db32acf9-77e3-4467-b93a-38b8ec9f324e
[D 21:04:47.965 NotebookApp] Using contents: services/contents
[D 21:04:47.982 NotebookApp] Path base/images/favicon.ico served from /root/anaconda3/envs/test/lib/python3.6/site-packages/notebook/static/base/images/favicon.ico
[W 21:04:47.983 NotebookApp] 404 GET /api/kernels/db32acf9-77e3-4467-b93a-38b8ec9f324e/channels?session_id=b5280c24342b49a6a515b1df07a9bdb9 (172.16.48.232) 22.24ms referer=None
thank u for your reply, i changed a env still get this error
Jupyter notebook not connecting to kernel in virtual environment. Have reinstalled Anaconda, jupyter notebook repeatedly. Worked on different browsers - Chrome, Firefox, Edge
Python: 3.7
Anaconda: 4.7.12
Tornado: 5.1.1(tried with 6.0.3 but still not connecting.)
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.
and on anaconda prompt
RuntimeError: This event loop is already running
[W 01:43:14.974 NotebookApp] KernelRestarter: restart failed
[W 01:43:14.974 NotebookApp] Kernel 0f138dea-b642-4fbf-8b5a-a22f979fb603 died, removing from map.
[W 01:43:21.140 NotebookApp] Replacing stale connection: 0f138dea-b642-4fbf-8b5a-a22f979fb603:756a070714d04866bc9f5c7f600db245
[W 01:43:43.185 NotebookApp] Replacing stale connection: 0f138dea-b642-4fbf-8b5a-a22f979fb603:756a070714d04866bc9f5c7f600db245
[W 01:44:00.144 NotebookApp] Timeout waiting for kernel_info reply from 0f138dea-b642-4fbf-8b5a-a22f979fb603
[E 01:44:00.146 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 0f138dea-b642-4fbf-8b5a-a22f979fb603)
[W 01:44:00.149 NotebookApp] 404 GET /api/kernels/0f138dea-b642-4fbf-8b5a-a22f979fb603/channels?session_id=756a070714d04866bc9f5c7f600db245 (::1): Kernel does not exist: 0f138dea-b642-4fbf-8b5a-a22f979fb603
[W 01:44:00.161 NotebookApp] 404 GET /api/kernels/0f138dea-b642-4fbf-8b5a-a22f979fb603/channels?session_id=756a070714d04866bc9f5c7f600db245 (::1) 39023.48ms referer=None
[W 01:44:00.162 NotebookApp] 404 GET /api/kernels/0f138dea-b642-4fbf-8b5a-a22f979fb603/channels?session_id=756a070714d04866bc9f5c7f600db245 (::1): Kernel does not exist: 0f138dea-b642-4fbf-8b5a-a22f979fb603
[W 01:44:00.165 NotebookApp] 404 GET /api/kernels/0f138dea-b642-4fbf-8b5a-a22f979fb603/channels?session_id=756a070714d04866bc9f5c7f600db245 (::1) 16983.47ms referer=None
[W 01:44:04.177 NotebookApp] Replacing stale connection: 0f138dea-b642-4fbf-8b5a-a22f979fb603:756a070714d04866bc9f5c7f600db245
Error Message: Kernel doesn't exist.
But Kernel has been created.
I got the following error messages once I removed SSL certificate paths from config file:
Uncaught exception GET /api/kernels/75d3fc32-cabb-43ea-af5f-e67591e90c7a/channels?session_id=6e9313c388bf4e768b6016ed049163d3 (172.31.55.192)
HTTPServerRequest(protocol='http', host='128.237.146.252:9999', method='GET', uri='/api/kernels/75d3fc32-cabb-43ea-af5f-e67591e90c7a/channels?session_id=6e9313c388bf4e768b6016ed049163d3', version='HTTP/1.1', remote_ip='172.31.55.192')
Traceback (most recent call last):
File "/Users/vishnuc/anaconda3/lib/python3.7/site-packages/tornado/websocket.py", line 956, in _accept_connection
open_result = handler.open(handler.open_args, *handler.open_kwargs)
File "/Users/vishnuc/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/handlers.py", line 274, in open
self.create_stream()
File "/Users/vishnuc/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/handlers.py", line 127, in create_stream
meth = getattr(km, 'connect_' + channel)
AttributeError: 'MappingKernelManager' object has no attribute 'connect_control'
Turns out this is a tornado issue. I upgraded to tornado v6.0.3 and it starts working again.
@seewishnew please help and explain in detail how you solve this ??????. my tornado is upgraded version .....
my error>>>>>>>>>>>>>>>>>>>>>..
https://github.com/thtrieu/darkflow/issues/1147
Please help me with this error , when I create a new notebook using jupyter I get this error.
I am using python 3.8 and windows 10
C:\Users\kimish.DESKTOP-PT5P6T3>jupyter notebook
[W 14:48:24.922 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 14:48:25.129 NotebookApp] JupyterLab extension loaded from c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\jupyterlab
[I 14:48:25.129 NotebookApp] JupyterLab application directory is c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\share\jupyter\lab
[I 14:48:25.134 NotebookApp] Serving notebooks from local directory: C:\Users\kimish.DESKTOP-PT5P6T3
[I 14:48:25.134 NotebookApp] The Jupyter Notebook is running at:
[I 14:48:25.134 NotebookApp] http://localhost:8888/?token=ff0ac09771a1203a76ab291a8d89d8677fcc932075140e7d
[I 14:48:25.135 NotebookApp] or http://127.0.0.1:8888/?token=ff0ac09771a1203a76ab291a8d89d8677fcc932075140e7d
[I 14:48:25.135 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:48:25.178 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/kimish.DESKTOP-PT5P6T3/AppData/Roaming/jupyter/runtime/nbserver-12632-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=ff0ac09771a1203a76ab291a8d89d8677fcc932075140e7d
or http://127.0.0.1:8888/?token=ff0ac09771a1203a76ab291a8d89d8677fcc932075140e7d
[I 14:48:37.136 NotebookApp] Creating new notebook in
[W 14:48:38.613 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200411144824 (::1) 37.90ms referer=http://localhost:8888/notebooks/Untitled12.ipynb?kernel_name=python3
[I 14:48:38.797 NotebookApp] Kernel started: 34ab8f86-f841-4692-bd38-04bce7ecfdf4
Traceback (most recent call last):
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packagesipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packagesipykernel__init__.py", line 2, in
from .connect import *
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packagesipykernel\connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\IPython__init__.py", line 55, in
from .core.application import Application
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\IPython\core\application.py", line 18, in
import logging
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\logging__init__.py", line 28, in
from string import Template
File "C:\Users\kimish.DESKTOP-PT5P6T3\string.py", line 1, in
import pandas as pd
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas__init__.py", line 180, in
import pandas.testing
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas\testing.py", line 5, in
from pandas._testing import (
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas_testing.py", line 404, in
RANDS_CHARS = np.array(list(string.ascii_letters + string.digits), dtype=(np.str_, 1))
AttributeError: partially initialized module 'string' has no attribute 'ascii_letters' (most likely due to a circular import)
[I 14:48:41.774 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packagesipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packagesipykernel__init__.py", line 2, in
from .connect import *
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packagesipykernel\connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\IPython__init__.py", line 55, in
from .core.application import Application
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\IPython\core\application.py", line 18, in
import logging
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\logging__init__.py", line 28, in
from string import Template
File "C:\Users\kimish.DESKTOP-PT5P6T3\string.py", line 1, in
import pandas as pd
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas__init__.py", line 180, in
import pandas.testing
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas\testing.py", line 5, in
from pandas._testing import (
File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas_testing.py", line 404, in
RANDS_CHARS = np.array(list(string.ascii_letters + string.digits), dtype=(np.str_, 1))
AttributeError: partially initialized module 'string' has no attribute 'ascii_letters' (most likely due to a circular import)
Hi @kimish96 - your local string.py file: C:\Users\kimish.DESKTOP-PT5P6T3\string.py is introducing a collision with the built-in string class. Try renaming this file (and corresponding import statements).
Thanks Bro, This was a big help...struggling since a week.
I am facing the same issue:- A connection to the notebook server cannot be established.
This is my Notebook Console output:-
[I 20:42:22.292 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 20:42:22.292 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
[I 20:42:22.306 NotebookApp] Serving notebooks from local directory: C:\Users\ASUS
[I 20:42:22.306 NotebookApp] The Jupyter Notebook is running at:
[I 20:42:22.307 NotebookApp] http://localhost:8888/?token=51a370518615cdbdd0214161242d889df6b85a0755cd8de0
[I 20:42:22.307 NotebookApp] or http://127.0.0.1:8888/?token=51a370518615cdbdd0214161242d889df6b85a0755cd8de0
[I 20:42:22.307 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:42:22.359 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/ASUS/AppData/Roaming/jupyter/runtime/nbserver-13988-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=51a370518615cdbdd0214161242d889df6b85a0755cd8de0
or http://127.0.0.1:8888/?token=51a370518615cdbdd0214161242d889df6b85a0755cd8de0
[I 20:42:50.280 NotebookApp] Kernel started: 2bda97f0-0c78-4f38-9748-56d6175ccebc
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\__init__.py", line 56, in <module>
from .terminal.embed import embed
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'
[I 20:42:53.261 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\__init__.py", line 56, in <module>
from .terminal.embed import embed
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'
[I 20:42:56.271 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\__init__.py", line 56, in <module>
from .terminal.embed import embed
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'
[I 20:42:59.276 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\__init__.py", line 56, in <module>
from .terminal.embed import embed
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'
[I 20:43:02.273 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\__init__.py", line 56, in <module>
from .terminal.embed import embed
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'
[W 20:43:05.276 NotebookApp] KernelRestarter: restart failed
[W 20:43:05.277 NotebookApp] Kernel 2bda97f0-0c78-4f38-9748-56d6175ccebc died, removing from map.
[W 20:43:11.376 NotebookApp] Replacing stale connection: 2bda97f0-0c78-4f38-9748-56d6175ccebc:390a1f0e1d724f7a846210537c60ec96
[W 20:43:33.412 NotebookApp] Replacing stale connection: 2bda97f0-0c78-4f38-9748-56d6175ccebc:390a1f0e1d724f7a846210537c60ec96
And this is my Firefox Console Output:-
Loaded moment locale en bidi.js:19
load_extensions
Arguments { 0: "jupyter-js-widgets/extension", … }
utils.js:60
Session: kernel_created (bca3d5a1-6a3b-4215-ad68-58865c0dece0) session.js:54
Starting WebSockets: ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc kernel.js:462
Loading extension: jupyter-js-widgets/extension utils.js:37
Firefox can’t establish a connection to the server at ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc/channels?session_id=390a1f0e1d724f7a846210537c60ec96. kernel.js:464
Kernel: kernel_disconnected (2bda97f0-0c78-4f38-9748-56d6175ccebc) kernel.js:106
WebSocket connection failed: ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc true kernel.js:545
Connection lost, reconnecting in 1 seconds. kernel.js:563
WebSocket closed unexpectedly
close { target: WebSocket, isTrusted: true, wasClean: false, code: 1006, reason: "", srcElement: WebSocket, eventPhase: 0, bubbles: false, cancelable: false, returnValue: true, … }
kernel.js:492
Kernel: kernel_reconnecting (2bda97f0-0c78-4f38-9748-56d6175ccebc) kernel.js:106
Starting WebSockets: ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc kernel.js:462
Firefox can’t establish a connection to the server at ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc/channels?session_id=390a1f0e1d724f7a846210537c60ec96. kernel.js:464
Kernel: kernel_disconnected (2bda97f0-0c78-4f38-9748-56d6175ccebc) kernel.js:106
WebSocket connection failed: ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc true kernel.js:545
Connection lost, reconnecting in 2 seconds. kernel.js:563
WebSocket closed unexpectedly
close { target: WebSocket, isTrusted: true, wasClean: false, code: 1006, reason: "", srcElement: WebSocket, eventPhase: 0, bubbles: false, cancelable: false, returnValue: true, … }
kernel.js:492
Kernel: kernel_reconnecting (2bda97f0-0c78-4f38-9748-56d6175ccebc) kernel.js:106
Starting WebSockets: ws://localhost:8888/api/kernels/2bda97f0-0c78-4f38-9748-56d6175ccebc
Desperately seeking for help.
This appears to be a duplicate of https://github.com/jupyter/notebook/issues/4050, but rather than _downgrade_ ipykernel and IPython, especially given the age of those responses, I would first try ensuring that you're running the latest versions of each and _upgrade_ if not.
Also, since IPython appears to be sensitive to the version of prompt_toolkit, I would recommend checking prompt_toolkit's version as well.
thnx @kevin-bates . It helped. Notebook is working fine now
Glad to hear that @Dipon12. Could you please share the approach you took? If you found the _downgrade_ to work, was that after attempting the _upgrade_ approach? Thank you.
Hello,
I ran into the same problem today. Just like @kevin-bates mentioned. You should always look for the prerequisite packages and upgrade them (or uninstall all of them and install notebook to grab the best version matching.
For current release notebook-6.0.3
ipykernel-5.3.0
ipython-7.15.0
jupyter-client-6.1.3
jupyter-core-4.6.3
tornado-6.0.4
Hope it helps
Hello!
I am struggling with the same problem, checked many different solutions on the internet, tried them all, even uninstalling Anaconda and reinstalling, and it does not seem to work with any of these solutions.
This is what I get from the console.
`
(base) C:\Users\PC02>jupyter-notebook
[I 17:49:22.201 NotebookApp] Serving notebooks from local directory: C:\Users\PC02
[I 17:49:22.201 NotebookApp] 0 active kernels
[I 17:49:22.201 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=4d3c5cdfbe05ead068f3b18bc6a4248effd952f5fe74050d
[I 17:49:22.201 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:49:22.278 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=4d3c5cdfbe05ead068f3b18bc6a4248effd952f5fe74050d
[I 17:49:22.528 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 17:49:27.165 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200702174921 (::1) 16.95ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[I 17:49:27.426 NotebookApp] Kernel started: 64e1f1ca-8f10-4995-8170-a8a3f56d0847
C:\Users\PC02\AppData\Roaming\Python\Python37\site-packages\notebookbase\zmqhandlers.py:292: RuntimeWarning: coroutine 'WebSocketHandler.get' was never awaited
super(AuthenticatedZMQStreamHandler, self).get(args, *kwargs)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
[W 17:49:29.466 NotebookApp] Replacing stale connection: 64e1f1ca-8f10-4995-8170-a8a3f56d0847:D9F2455DAFA4402381AC2B5512679652
`
It was working yesterday, and apparently stopped after installing PyCharm, what seems wired.
This is mi office workstation so I am stucked and would appreciate the help.
Hi @fedeturi - this issue is different from the others and I think it might require a change. What I'm confused about is why this hasn't popped up until now. Could you please provide the output of pip freeze from within the Python environment that is producing this exception? Thank you.
If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error.
What happened
the original issue was caused by using pip in a conda environment to install some unrelated package (google.colab), which then messed up the jupyter installation (with some different versions of six, tornado, ipython, notebook, ipykernel).
This caused errors similar to the others in the thread above.
Installing and uninstalling jupyter got me to the same issue as @fedeturi.
Eventually what fixed it for me was to:
and then re-installing jupyter and jupyter_contrib_nbextensions with conda.
had some problem on ubuntu pip install tornado==5.1.1 (after this you need restart jupyter notebook with jupyter notebook helped me / 15th July 2020
I had the same issue and above suggestion resolve the issue. thanks for sharing.
@germanjke thank you, it also helped me
Hello
I am struggling with same issue-connecting to kernel
(base) C:\Users\ADMIN>jupyter notebook
[I 16:59:05.797 NotebookApp] The port 8888 is already in use, trying another port.
[I 16:59:06.031 NotebookApp] Serving notebooks from local directory: C:\Users\ADMIN
[I 16:59:06.045 NotebookApp] 0 active kernels
[I 16:59:06.045 NotebookApp] The Jupyter Notebook is running at:
[I 16:59:06.045 NotebookApp] http://localhost:8889/?token=60bd0369d377af0a314e59ce9b3e53a2a7b3198740ed1d77
[I 16:59:06.045 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:59:06.047 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8889/?token=60bd0369d377af0a314e59ce9b3e53a2a7b3198740ed1d77
[I 16:59:06.222 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 16:59:20.630 NotebookApp] Notebook Desktop/project/leaf_disease-binary_classification.ipynb is not trusted
[I 16:59:21.221 NotebookApp] Kernel started: 9aba1f5b-0e99-47f2-b8c6-6d16905b7f01
[W 16:59:21.250 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200817165904 (::1) 19.44ms referer=http://localhost:8889/notebooks/Desktop/project/leaf_disease-binary_classification.ipynb
ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 438, in _run_callback
callback(args, *kwargs)
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\stack_context.py", line 300, in null_wrapper
return fn(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 233, in dispatch_shell
self.pre_handler_hook()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 248, in pre_handler_hook
self.saved_sigint_handler = signal(SIGINT, default_int_handler)
File "C:\Users\ADMIN\anaconda3\lib\signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
ERROR:tornado.general:Uncaught exception in zmqstream callback
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 456, in _handle_events
self._handle_recv()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 486, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 438, in _run_callback
callback(args, *kwargs)
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\stack_context.py", line 300, in null_wrapper
return fn(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 233, in dispatch_shell
self.pre_handler_hook()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 248, in pre_handler_hook
self.saved_sigint_handler = signal(SIGINT, default_int_handler)
File "C:\Users\ADMIN\anaconda3\lib\signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "C:\Users\ADMIN\anaconda3\lib\asynciobase_events.py", line 429, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
ERROR:tornado.application:Exception in callback functools.partial(
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\ioloop.py", line 758, in _run_callback
ret = callback()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\stack_context.py", line 300, in null_wrapper
return fn(args, *kwargs)
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 542, in
self.io_loop.add_callback(lambda : self._handle_events(self.socket, 0))
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 456, in _handle_events
self._handle_recv()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 486, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\ADMIN\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 438, in _run_callback
callback(args, *kwargs)
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\stack_context.py", line 300, in null_wrapper
return fn(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 233, in dispatch_shell
self.pre_handler_hook()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelbase.py", line 248, in pre_handler_hook
self.saved_sigint_handler = signal(SIGINT, default_int_handler)
File "C:\Users\ADMIN\anaconda3\lib\signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
[I 16:59:24.220 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "C:\Users\ADMIN\anaconda3\lib\asynciobase_events.py", line 429, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
[I 16:59:27.230 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "C:\Users\ADMIN\anaconda3\lib\asynciobase_events.py", line 429, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
[I 16:59:30.275 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
[W 16:59:31.288 NotebookApp] Timeout waiting for kernel_info reply from 9aba1f5b-0e99-47f2-b8c6-6d16905b7f01
[E 16:59:31.289 NotebookApp] Uncaught exception GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\websocket.py", line 546, in _run_callback
result = callback(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\kernels\handlers.py", line 258, in open
super(ZMQChannelsHandler, self).open()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebookbase\zmqhandlers.py", line 168, in open
self.send_ping, self.ping_interval, io_loop=loop,
TypeError: __init__() got an unexpected keyword argument 'io_loop'
[E 16:59:32.332 NotebookApp] Uncaught exception GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\websocket.py", line 546, in _run_callback
result = callback(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\kernels\handlers.py", line 258, in open
super(ZMQChannelsHandler, self).open()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebookbase\zmqhandlers.py", line 168, in open
self.send_ping, self.ping_interval, io_loop=loop,
TypeError: __init__() got an unexpected keyword argument 'io_loop'
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "C:\Users\ADMIN\anaconda3\lib\asynciobase_events.py", line 429, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
[I 16:59:33.291 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
[E 16:59:33.367 NotebookApp] Uncaught exception GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\websocket.py", line 546, in _run_callback
result = callback(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\kernels\handlers.py", line 258, in open
super(ZMQChannelsHandler, self).open()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebookbase\zmqhandlers.py", line 168, in open
self.send_ping, self.ping_interval, io_loop=loop,
TypeError: __init__() got an unexpected keyword argument 'io_loop'
[E 16:59:34.406 NotebookApp] Uncaught exception GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\websocket.py", line 546, in _run_callback
result = callback(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\kernels\handlers.py", line 258, in open
super(ZMQChannelsHandler, self).open()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebookbase\zmqhandlers.py", line 168, in open
self.send_ping, self.ping_interval, io_loop=loop,
TypeError: __init__() got an unexpected keyword argument 'io_loop'
[E 16:59:35.447 NotebookApp] Uncaught exception GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\websocket.py", line 546, in _run_callback
result = callback(args, *kwargs)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\kernels\handlers.py", line 258, in open
super(ZMQChannelsHandler, self).open()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebookbase\zmqhandlers.py", line 168, in open
self.send_ping, self.ping_interval, io_loop=loop,
TypeError: __init__() got an unexpected keyword argument 'io_loop'
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\ADMIN\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packagesipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "C:\Users\ADMIN\anaconda3\lib\asynciobase_events.py", line 429, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
[W 16:59:36.305 NotebookApp] KernelRestarter: restart failed
[W 16:59:36.305 NotebookApp] Kernel 9aba1f5b-0e99-47f2-b8c6-6d16905b7f01 died, removing from map.
[W 16:59:36.482 NotebookApp] 404 GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1): Kernel does not exist: 9aba1f5b-0e99-47f2-b8c6-6d16905b7f01
[W 16:59:36.487 NotebookApp] 404 GET /api/kernels/9aba1f5b-0e99-47f2-b8c6-6d16905b7f01/channels?session_id=872FB991A25C40D9A0457885402B3542 (::1) 4.80ms referer=None
[W 16:59:38.510 NotebookApp] Replacing stale connection: 9aba1f5b-0e99-47f2-b8c6-6d16905b7f01:872FB991A25C40D9A0457885402B3542
Can you please look into this!!
If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error.
What happened
the original issue was caused by using pip in a conda environment to install some unrelated package (google.colab), which then messed up the jupyter installation (with some different versions of six, tornado, ipython, notebook, ipykernel).This caused errors similar to the others in the thread above.
Installing and uninstalling jupyter got me to the same issue as @fedeturi.
Eventually what fixed it for me was to:
- remove manually all the above packages with pip uninstall
- remove also jupyter_contrib_nbextensions
- running a conda uninstall jupyter notebook
and then re-installing jupyter and jupyter_contrib_nbextensions with conda.
what all should be uninstalled?? Can you please help
If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error.
What happened
the original issue was caused by using pip in a conda environment to install some unrelated package (google.colab), which then messed up the jupyter installation (with some different versions of six, tornado, ipython, notebook, ipykernel).
This caused errors similar to the others in the thread above.
Installing and uninstalling jupyter got me to the same issue as @fedeturi.
Eventually what fixed it for me was to:
- remove manually all the above packages with pip uninstall
- remove also jupyter_contrib_nbextensions
- running a conda uninstall jupyter notebook
and then re-installing jupyter and jupyter_contrib_nbextensions with conda.
what all should be uninstalled?? Can you please help
For me it was the following with pip uninstall:
six, tornado, ipython, notebook, ipykernel, jupyter_contrib_nbextensions
and then conda uninstall jupyter notebook
If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error.
What happened
the original issue was caused by using pip in a conda environment to install some unrelated package (google.colab), which then messed up the jupyter installation (with some different versions of six, tornado, ipython, notebook, ipykernel).
This caused errors similar to the others in the thread above.
Installing and uninstalling jupyter got me to the same issue as @fedeturi.
Eventually what fixed it for me was to:
- remove manually all the above packages with pip uninstall
- remove also jupyter_contrib_nbextensions
- running a conda uninstall jupyter notebook
and then re-installing jupyter and jupyter_contrib_nbextensions with conda.
what all should be uninstalled?? Can you please help
For me it was the following with pip uninstall:
six, tornado, ipython, notebook, ipykernel, jupyter_contrib_nbextensionsand then conda uninstall jupyter notebook
Did you install those packages again?
If yes then what did you use pip or conda??
Hi, I am trying to use Jupyter Notebook, but I am also having trouble connecting to the kernel, I get this error message -
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.
Jupyter Notebook also states that it is "connecting to kernel" constantly.
When I run jupyter notebook --debug on my command line I get this -
(base) Marcs-Air:python marcholder$ jupyter notebook --debug
[D 15:39:12.314 NotebookApp] Searching ['/Users/marcholder/python', '/Users/marcholder/.jupyter', '/Users/marcholder/opt/anaconda3/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 15:39:12.314 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 15:39:12.314 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 15:39:12.315 NotebookApp] Looking for jupyter_config in /Users/marcholder/opt/anaconda3/etc/jupyter
[D 15:39:12.315 NotebookApp] Looking for jupyter_config in /Users/marcholder/.jupyter
[D 15:39:12.315 NotebookApp] Looking for jupyter_config in /Users/marcholder/python
[D 15:39:12.316 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 15:39:12.317 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 15:39:12.317 NotebookApp] Looking for jupyter_notebook_config in /Users/marcholder/opt/anaconda3/etc/jupyter
[D 15:39:12.320 NotebookApp] Loaded config file: /Users/marcholder/opt/anaconda3/etc/jupyter/jupyter_notebook_config.json
[D 15:39:12.321 NotebookApp] Looking for jupyter_notebook_config in /Users/marcholder/.jupyter
[D 15:39:12.321 NotebookApp] Looking for jupyter_notebook_config in /Users/marcholder/python
[D 15:39:12.323 NotebookApp] Raising open file limit: soft 256->4096; hard 9223372036854775807->9223372036854775807
[D 15:39:12.327 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 15:39:12.328 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 15:39:12.331 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/Users/marcholder/opt/anaconda3/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/Users/marcholder/opt/anaconda3/etc/jupyter/jupyter_notebook_config.json
[D 15:39:12.336 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/Users/marcholder/.jupyter/jupyter_notebook_config.json
[I 15:39:14.788 NotebookApp] JupyterLab extension loaded from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 15:39:14.788 NotebookApp] JupyterLab application directory is /Users/marcholder/opt/anaconda3/share/jupyter/lab
[I 15:39:14.796 NotebookApp] Serving notebooks from local directory: /Users/marcholder/python
[I 15:39:14.796 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 15:39:14.797 NotebookApp] http://localhost:8888/?token=31a9cd8321cb0e5a5b3b909f48ab272e571dc1de4a83ace7
[I 15:39:14.797 NotebookApp] or http://127.0.0.1:8888/?token=31a9cd8321cb0e5a5b3b909f48ab272e571dc1de4a83ace7
[I 15:39:14.797 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:39:14.809 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/marcholder/Library/Jupyter/runtime/nbserver-1161-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=31a9cd8321cb0e5a5b3b909f48ab272e571dc1de4a83ace7
or http://127.0.0.1:8888/?token=31a9cd8321cb0e5a5b3b909f48ab272e571dc1de4a83ace7
[D 15:39:16.407 NotebookApp] Accepting token-authenticated connection from ::1
[D 15:39:16.410 NotebookApp] Using contents: services/contents
[D 15:39:16.484 NotebookApp] Path base/images/favicon.ico served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/base/images/favicon.ico
[D 15:39:16.492 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css
[D 15:39:16.496 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/jquery-typeahead/dist/jquery.typeahead.min.css
[D 15:39:16.500 NotebookApp] Path style/style.min.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/style/style.min.css
[D 15:39:16.515 NotebookApp] Path components/es6-promise/promise.min.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/es6-promise/promise.min.js
[D 15:39:16.520 NotebookApp] Path components/react/react.production.min.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/react/react.production.min.js
[D 15:39:16.524 NotebookApp] Path components/react/react-dom.production.min.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/react/react-dom.production.min.js
[D 15:39:16.529 NotebookApp] Path components/create-react-class/index.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/create-react-class/index.js
[D 15:39:16.533 NotebookApp] Path components/requirejs/require.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/requirejs/require.js
[D 15:39:16.537 NotebookApp] Path base/images/logo.png served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/base/images/logo.png
[D 15:39:16.542 NotebookApp] Path tree/js/main.min.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/tree/js/main.min.js
[D 15:39:16.558 NotebookApp] 200 GET /tree?token=31a9cd8321cb0e5a5b3b909f48ab272e571dc1de4a83ace7 (::1) 151.56ms
[D 15:39:16.606 NotebookApp] Path custom.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/custom/custom.css
[D 15:39:16.607 NotebookApp] 304 GET /custom/custom.css (::1) 2.83ms
[D 15:39:16.729 NotebookApp] Path services/contents.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/services/contents.js
[D 15:39:16.735 NotebookApp] 200 GET /static/services/contents.js?v=20201228153912 (::1) 6.41ms
[D 15:39:16.782 NotebookApp] Paths used for configuration of tree:
/etc/jupyter/nbconfig/tree.json
[D 15:39:16.783 NotebookApp] Paths used for configuration of tree:
/usr/local/etc/jupyter/nbconfig/tree.json
[D 15:39:16.785 NotebookApp] Paths used for configuration of tree:
/Users/marcholder/opt/anaconda3/etc/jupyter/nbconfig/tree.json
[D 15:39:16.788 NotebookApp] Paths used for configuration of tree:
/Users/marcholder/.jupyter/nbconfig/tree.json
[D 15:39:16.790 NotebookApp] 200 GET /api/config/tree?_=1609169956686 (::1) 15.55ms
[D 15:39:16.800 NotebookApp] Paths used for configuration of common:
/etc/jupyter/nbconfig/common.json
[D 15:39:16.801 NotebookApp] Paths used for configuration of common:
/usr/local/etc/jupyter/nbconfig/common.json
[D 15:39:16.801 NotebookApp] Paths used for configuration of common:
/Users/marcholder/opt/anaconda3/etc/jupyter/nbconfig/common.json
[D 15:39:16.802 NotebookApp] Paths used for configuration of common:
/Users/marcholder/.jupyter/nbconfig/common.json
[D 15:39:16.803 NotebookApp] 200 GET /api/config/common?_=1609169956687 (::1) 10.38ms
[D 15:39:16.804 NotebookApp] 200 GET /api/terminals?_=1609169956688 (::1) 8.17ms
[D 15:39:16.830 NotebookApp] 200 GET /api/sessions?_=1609169956689 (::1) 23.74ms
[D 15:39:16.833 NotebookApp] 200 GET /api/terminals?_=1609169956690 (::1) 25.02ms
[D 15:39:16.841 NotebookApp] Found kernel python3 in /Users/marcholder/opt/anaconda3/share/jupyter/kernels
[D 15:39:16.870 NotebookApp] 304 GET /api/kernelspecs (::1) 60.38ms
[D 15:39:16.883 NotebookApp] 200 GET /api/contents?type=directory&_=1609169956691 (::1) 12.54ms
[D 15:39:16.886 NotebookApp] Path custom.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/custom/custom.js
[D 15:39:16.890 NotebookApp] 200 GET /custom/custom.js?v=20201228153912 (::1) 5.42ms
[D 15:39:28.349 NotebookApp] Using contents: services/contents
[D 15:39:28.427 NotebookApp] Path base/images/favicon-notebook.ico served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/base/images/favicon-notebook.ico
[D 15:39:28.433 NotebookApp] Path components/bootstrap-tour/build/css/bootstrap-tour.min.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/bootstrap-tour/build/css/bootstrap-tour.min.css
[D 15:39:28.438 NotebookApp] Path components/codemirror/lib/codemirror.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/codemirror/lib/codemirror.css
[D 15:39:28.442 NotebookApp] Path notebook/css/override.css served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/notebook/css/override.css
[D 15:39:29.897 NotebookApp] Path components/text-encoding/lib/encoding.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/text-encoding/lib/encoding.js
[D 15:39:29.906 NotebookApp] Path notebook/js/main.min.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/notebook/js/main.min.js
[D 15:39:29.938 NotebookApp] 200 GET /notebooks/Data_Analysis_Intro.ipynb (::1) 1590.31ms
[D 15:39:29.955 NotebookApp] 304 GET /custom/custom.css (::1) 1.08ms
[D 15:39:29.959 NotebookApp] Path components/MathJax/MathJax.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/MathJax.js
[D 15:39:29.960 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (::1) 3.67ms
[D 15:39:29.979 NotebookApp] Path components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js
[D 15:39:29.980 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js?V=2.7.9 (::1) 2.50ms
[D 15:39:30.112 NotebookApp] Path components/MathJax/config/Safe.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/config/Safe.js
[D 15:39:30.114 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.9 (::1) 2.85ms
[D 15:39:30.118 NotebookApp] Paths used for configuration of notebook:
/etc/jupyter/nbconfig/notebook.json
[D 15:39:30.120 NotebookApp] Paths used for configuration of notebook:
/usr/local/etc/jupyter/nbconfig/notebook.json
[D 15:39:30.121 NotebookApp] Paths used for configuration of notebook:
/Users/marcholder/opt/anaconda3/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json
/Users/marcholder/opt/anaconda3/etc/jupyter/nbconfig/notebook.json
[D 15:39:30.125 NotebookApp] Paths used for configuration of notebook:
/Users/marcholder/.jupyter/nbconfig/notebook.json
[D 15:39:30.125 NotebookApp] 200 GET /api/config/notebook?_=1609169969996 (::1) 9.40ms
[D 15:39:30.129 NotebookApp] Paths used for configuration of common:
/etc/jupyter/nbconfig/common.json
[D 15:39:30.130 NotebookApp] Paths used for configuration of common:
/usr/local/etc/jupyter/nbconfig/common.json
[D 15:39:30.132 NotebookApp] Paths used for configuration of common:
/Users/marcholder/opt/anaconda3/etc/jupyter/nbconfig/common.json
[D 15:39:30.134 NotebookApp] Paths used for configuration of common:
/Users/marcholder/.jupyter/nbconfig/common.json
[D 15:39:30.134 NotebookApp] 200 GET /api/config/common?_=1609169969997 (::1) 7.62ms
[D 15:39:30.181 NotebookApp] Found kernel python3 in /Users/marcholder/opt/anaconda3/share/jupyter/kernels
[D 15:39:30.185 NotebookApp] 304 GET /api/kernelspecs (::1) 4.50ms
[D 15:39:30.244 NotebookApp] 200 GET /api/contents/Data_Analysis_Intro.ipynb?type=notebook&_=1609169969998 (::1) 52.97ms
[D 15:39:30.250 NotebookApp] 304 GET /custom/custom.js?v=20201228153912 (::1) 3.32ms
[D 15:39:30.253 NotebookApp] Path components/MathJax/extensions/TeX/newcommand.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/extensions/TeX/newcommand.js
[D 15:39:30.255 NotebookApp] 304 GET /static/components/MathJax/extensions/TeX/newcommand.js?V=2.7.9 (::1) 8.11ms
[D 15:39:30.256 NotebookApp] Path components/MathJax/extensions/MathML/content-mathml.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/extensions/MathML/content-mathml.js
[D 15:39:30.257 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.9 (::1) 9.71ms
[D 15:39:30.258 NotebookApp] Path components/MathJax/extensions/TeX/begingroup.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/extensions/TeX/begingroup.js
[D 15:39:30.259 NotebookApp] 304 GET /static/components/MathJax/extensions/TeX/begingroup.js?V=2.7.9 (::1) 10.99ms
[D 15:39:30.552 NotebookApp] Starting kernel: ['/Users/marcholder/opt/anaconda3/bin/python', '-m', 'ipykernel_launcher', '-f', '/Users/marcholder/Library/Jupyter/runtime/kernel-fd3eef17-0f65-451b-8902-b89508444a26.json']
[D 15:39:30.561 NotebookApp] Connecting to: tcp://127.0.0.1:59961
[D 15:39:30.568 NotebookApp] Connecting to: tcp://127.0.0.1:59958
[I 15:39:30.573 NotebookApp] Kernel started: fd3eef17-0f65-451b-8902-b89508444a26, name: python3
[D 15:39:30.574 NotebookApp] Kernel args: {'kernel_name': 'python3', 'cwd': '/Users/marcholder/python'}
[D 15:39:30.581 NotebookApp] 200 GET /api/contents/Data_Analysis_Intro.ipynb/checkpoints?_=1609169969999 (::1) 6.67ms
[D 15:39:30.583 NotebookApp] 201 POST /api/sessions (::1) 126.42ms
[D 15:39:30.592 NotebookApp] Path jupyter-js-widgets/extension.js served from /Users/marcholder/opt/anaconda3/share/jupyter/nbextensions/jupyter-js-widgets/extension.js
[D 15:39:30.613 NotebookApp] 200 GET /nbextensions/jupyter-js-widgets/extension.js?v=20201228153912 (::1) 28.77ms
[D 15:39:30.622 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js
[D 15:39:30.623 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.9 (::1) 35.63ms
[D 15:39:30.623 NotebookApp] Path components/MathJax/extensions/Safe.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/extensions/Safe.js
[D 15:39:30.624 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.9 (::1) 36.04ms
[D 15:39:30.628 NotebookApp] Initializing websocket connection /api/kernels/fd3eef17-0f65-451b-8902-b89508444a26/channels
[D 15:39:30.630 NotebookApp] Requesting kernel info from fd3eef17-0f65-451b-8902-b89508444a26
[D 15:39:30.630 NotebookApp] Connecting to: tcp://127.0.0.1:59957
[D 15:39:30.810 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Italic/Main.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Italic/Main.js
[D 15:39:30.811 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Italic/Main.js?V=2.7.9 (::1) 3.18ms
What is the answer to life, the universe, and everything? 42
Is it true that 5 * 2 > 3 * 4
False
What is 5 * 2? 10
What is 3 * 4 12
[D 15:39:30.864 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/Italic/Main.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/Italic/Main.js
[D 15:39:30.865 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/Italic/Main.js?V=2.7.9 (::1) 3.24ms
[D 15:39:30.913 NotebookApp] Path components/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Normal-Italic.woff served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Normal-Italic.woff
[D 15:39:30.914 NotebookApp] 304 GET /static/components/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Normal-Italic.woff?V=2.7.9 (::1) 4.28ms
[D 15:39:30.947 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Regular/Main.js served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Regular/Main.js
[D 15:39:30.948 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Regular/Main.js?V=2.7.9 (::1) 2.07ms
[D 15:39:31.001 NotebookApp] Path components/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Regular.woff served from /Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/notebook/static/components/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Regular.woff
[D 15:39:31.002 NotebookApp] 304 GET /static/components/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Regular.woff?V=2.7.9 (::1) 2.77ms
Traceback (most recent call last):
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/__init__.py", line 2, in
from .connect import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/__init__.py", line 55, in
from .core.application import Application
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/__init__.py", line 6, in
from .application import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 18, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 11, in
from .loader import Config, LazyConfigValue, DeferredConfig, _is_section_key
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/loader.py", line 16, in
from ipython_genutils.path import filefind
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipython_genutils/path.py", line 13, in
import random
File "/Users/marcholder/opt/anaconda3/lib/python3.8/random.py", line 41, in
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: cannot import name 'log' from 'math' (/Users/marcholder/python/math.py)
[I 15:39:33.566 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
[D 15:39:33.567 NotebookApp] Starting kernel: ['/Users/marcholder/opt/anaconda3/bin/python', '-m', 'ipykernel_launcher', '-f', '/Users/marcholder/Library/Jupyter/runtime/kernel-fd3eef17-0f65-451b-8902-b89508444a26.json']
[D 15:39:33.575 NotebookApp] Connecting to: tcp://127.0.0.1:59961
What is the answer to life, the universe, and everything? 42
Is it true that 5 * 2 > 3 * 4
False
What is 5 * 2? 10
What is 3 * 4 12
Traceback (most recent call last):
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/__init__.py", line 2, in
from .connect import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/__init__.py", line 55, in
from .core.application import Application
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/__init__.py", line 6, in
from .application import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 18, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 11, in
from .loader import Config, LazyConfigValue, DeferredConfig, _is_section_key
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/loader.py", line 16, in
from ipython_genutils.path import filefind
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipython_genutils/path.py", line 13, in
import random
File "/Users/marcholder/opt/anaconda3/lib/python3.8/random.py", line 41, in
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: cannot import name 'log' from 'math' (/Users/marcholder/python/math.py)
[I 15:39:36.580 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
[D 15:39:36.582 NotebookApp] Starting kernel: ['/Users/marcholder/opt/anaconda3/bin/python', '-m', 'ipykernel_launcher', '-f', '/Users/marcholder/Library/Jupyter/runtime/kernel-fd3eef17-0f65-451b-8902-b89508444a26.json']
[D 15:39:36.589 NotebookApp] Connecting to: tcp://127.0.0.1:59961
What is the answer to life, the universe, and everything? 42
Is it true that 5 * 2 > 3 * 4
False
What is 5 * 2? 10
What is 3 * 4 12
Traceback (most recent call last):
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/__init__.py", line 2, in
from .connect import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/__init__.py", line 55, in
from .core.application import Application
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/__init__.py", line 6, in
from .application import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 18, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 11, in
from .loader import Config, LazyConfigValue, DeferredConfig, _is_section_key
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/loader.py", line 16, in
from ipython_genutils.path import filefind
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipython_genutils/path.py", line 13, in
import random
File "/Users/marcholder/opt/anaconda3/lib/python3.8/random.py", line 41, in
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: cannot import name 'log' from 'math' (/Users/marcholder/python/math.py)
[I 15:39:39.595 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
[D 15:39:39.596 NotebookApp] Starting kernel: ['/Users/marcholder/opt/anaconda3/bin/python', '-m', 'ipykernel_launcher', '-f', '/Users/marcholder/Library/Jupyter/runtime/kernel-fd3eef17-0f65-451b-8902-b89508444a26.json']
[D 15:39:39.606 NotebookApp] Connecting to: tcp://127.0.0.1:59961
What is the answer to life, the universe, and everything? 42
Is it true that 5 * 2 > 3 * 4
False
What is 5 * 2? 10
What is 3 * 4 12
Traceback (most recent call last):
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/__init__.py", line 2, in
from .connect import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/__init__.py", line 55, in
from .core.application import Application
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/__init__.py", line 6, in
from .application import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 18, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 11, in
from .loader import Config, LazyConfigValue, DeferredConfig, _is_section_key
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/loader.py", line 16, in
from ipython_genutils.path import filefind
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipython_genutils/path.py", line 13, in
import random
File "/Users/marcholder/opt/anaconda3/lib/python3.8/random.py", line 41, in
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: cannot import name 'log' from 'math' (/Users/marcholder/python/math.py)
[I 15:39:42.611 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
[D 15:39:42.612 NotebookApp] Starting kernel: ['/Users/marcholder/opt/anaconda3/bin/python', '-m', 'ipykernel_launcher', '-f', '/Users/marcholder/Library/Jupyter/runtime/kernel-fd3eef17-0f65-451b-8902-b89508444a26.json']
[D 15:39:42.620 NotebookApp] Connecting to: tcp://127.0.0.1:59961
What is the answer to life, the universe, and everything? 42
Is it true that 5 * 2 > 3 * 4
False
What is 5 * 2? 10
What is 3 * 4 12
Traceback (most recent call last):
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/marcholder/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/__init__.py", line 2, in
from .connect import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/__init__.py", line 55, in
from .core.application import Application
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/__init__.py", line 6, in
from .application import *
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 18, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 11, in
from .loader import Config, LazyConfigValue, DeferredConfig, _is_section_key
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/loader.py", line 16, in
from ipython_genutils.path import filefind
File "/Users/marcholder/opt/anaconda3/lib/python3.8/site-packages/ipython_genutils/path.py", line 13, in
import random
File "/Users/marcholder/opt/anaconda3/lib/python3.8/random.py", line 41, in
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: cannot import name 'log' from 'math' (/Users/marcholder/python/math.py)
[W 15:39:45.622 NotebookApp] KernelRestarter: restart failed
[W 15:39:45.622 NotebookApp] Kernel fd3eef17-0f65-451b-8902-b89508444a26 died, removing from map.
[D 15:39:50.339 NotebookApp] 200 GET /api/contents/Data_Analysis_Intro.ipynb?content=0&_=1609169970000 (::1) 2.76ms
[I 15:39:50.347 NotebookApp] Saving file at /Data_Analysis_Intro.ipynb
[D 15:39:50.347 NotebookApp] Saving /Users/marcholder/python/Data_Analysis_Intro.ipynb
[D 15:39:50.393 NotebookApp] 200 PUT /api/contents/Data_Analysis_Intro.ipynb (::1) 47.15ms
[D 15:39:50.411 NotebookApp] 201 POST /api/contents/Data_Analysis_Intro.ipynb/checkpoints (::1) 2.60ms
[D 15:39:57.209 NotebookApp] 200 GET /api/contents/Data_Analysis_Intro.ipynb?content=0&_=1609169970001 (::1) 3.71ms
[I 15:39:57.216 NotebookApp] Saving file at /Data_Analysis_Intro.ipynb
[D 15:39:57.216 NotebookApp] Saving /Users/marcholder/python/Data_Analysis_Intro.ipynb
[D 15:39:57.233 NotebookApp] 200 PUT /api/contents/Data_Analysis_Intro.ipynb (::1) 18.61ms
[D 15:39:57.240 NotebookApp] 201 POST /api/contents/Data_Analysis_Intro.ipynb/checkpoints (::1) 1.57ms
[W 15:40:30.635 NotebookApp] Timeout waiting for kernel_info reply from fd3eef17-0f65-451b-8902-b89508444a26
[D 15:40:30.637 NotebookApp] 101 GET /api/kernels/fd3eef17-0f65-451b-8902-b89508444a26/channels?session_id=09c07da47d7941af830b480a4fd15927 (::1) 60010.43ms
[D 15:40:30.639 NotebookApp] Opening websocket /api/kernels/fd3eef17-0f65-451b-8902-b89508444a26/channels
[D 15:40:30.639 NotebookApp] Getting buffer for fd3eef17-0f65-451b-8902-b89508444a26
[E 15:40:30.640 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: fd3eef17-0f65-451b-8902-b89508444a26)
[D 15:40:30.642 NotebookApp] Received message on closed websocket '{"header":{"msg_id":"aae4275819524913af9c8658b7e9ce08","username":"username","session":"09c07da47d7941af830b480a4fd15927","msg_type":"kernel_info_request","version":"5.2"},"metadata":{},"content":{},"buffers":[],"parent_header":{},"channel":"shell"}'
[D 15:40:30.644 NotebookApp] Received message on closed websocket '{"header":{"msg_id":"3df5d601d6be4bef87662fc9e0444551","username":"username","session":"09c07da47d7941af830b480a4fd15927","msg_type":"comm_info_request","version":"5.2"},"metadata":{},"content":{"target_name":"jupyter.widget"},"buffers":[],"parent_header":{},"channel":"shell"}'
[D 15:40:30.645 NotebookApp] Websocket closed fd3eef17-0f65-451b-8902-b89508444a26:09c07da47d7941af830b480a4fd15927
Any help would be much appreciated!
Hi @Rafael-H - This appears to be due to a conflict with your /Users/marcholder/python/math.py vs. the built-in math module on which the built-in random module relies. Try renaming/prefixing your file (and _its_ references) to avoid this conflict.
Hi kevin-bates - That has fixed the problem! Thank you so much!
Most helpful comment
If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error.
What happened
the original issue was caused by using pip in a conda environment to install some unrelated package (google.colab), which then messed up the jupyter installation (with some different versions of six, tornado, ipython, notebook, ipykernel).
This caused errors similar to the others in the thread above.
Installing and uninstalling jupyter got me to the same issue as @fedeturi.
Eventually what fixed it for me was to:
and then re-installing jupyter and jupyter_contrib_nbextensions with conda.