jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.75k stars 4.99k forks source link

Jupyter Notebook Kernel Not Connecting: Connection Failed #5024

Closed toanasahmed closed 1 year ago

toanasahmed commented 5 years ago

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: Error

Not connecting

xh22 commented 5 years ago

i have the same problem!!

kevin-bates commented 5 years ago

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.

toanasahmed commented 5 years ago

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: Error Not connecting

kevin-bates commented 5 years ago

@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.

toanasahmed commented 5 years ago

Thanks for your quick reply.

Here is the output for jupyter notebook : Command Prompt

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

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.

Options

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= (Application.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= (JupyterApp.config_file) Default: '' Full path of a config file. --ip= (NotebookApp.ip) Default: 'localhost' The IP address the notebook server will listen on. --port= (NotebookApp.port) Default: 8888 The port the notebook server will listen on. --port-retries= (NotebookApp.port_retries) Default: 50 The number of additional ports to try if the specified port is not available. --transport= (KernelManager.transport) Default: 'tcp' Choices: ['tcp', 'ipc'] --keyfile= (NotebookApp.keyfile) Default: '' The full path to a private key file for usage with SSL/TLS. --certfile= (NotebookApp.certfile) Default: '' The full path to an SSL/TLS certificate file. --client-ca= (NotebookApp.client_ca) Default: '' The full path to a certificate authority certificate for SSL/TLS client authentication. --notebook-dir= (NotebookApp.notebook_dir) Default: '' The directory to use for notebooks and kernels. --browser= (NotebookApp.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= (NotebookApp.pylab) Default: 'disabled' DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib. --gateway-url= (GatewayClient.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

Examples

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: '-' `

kevin-bates commented 5 years ago

@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.

  1. The debug flag uses two dashes and no space between the second dash and the string 'debug'. It is literally --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.
  2. From the screen shot of your server console, I see you probably have two previous instances of jupyter server running. The first is using port 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.
  3. Once you start a jupyter server with debug enabled, you'll need to attempt to use a kernel. Its that attempted use of the kernel that should produce more information on the terminal window in which you started the server. Its that information that is desired. From your output above, I just see an instance (likely the third instance) of notebook server started successfully, but because you didn't attempt to start a kernel, I can't help with the original issue.

Once the these three points are addressed I think we should be able to move forward on troubleshooting your original issue. Thanks.

xh22 commented 5 years ago

image

xh22 commented 5 years ago

can u take a look for me? thanks.

kevin-bates commented 5 years ago

: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.

xh22 commented 5 years ago

(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] [nbconda] 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_condakernels] 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/nbconda/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/nbconda/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/testdir?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-MMLHTMLorMML-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/testdir/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/testdir/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/nbconda/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/testdir?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

kevin-bates commented 5 years ago

@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.

xh22 commented 5 years ago

(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/testdir/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

kapilg1997 commented 4 years ago

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.

seewishnew commented 4 years ago

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 createstream 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.

ankitAMD commented 4 years ago

@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

kimish96 commented 4 years ago

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-packages\ipykernel_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-packages\ipykernel__init.py", line 2, in from .connect import * File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\ipykernel\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.asciiletters + 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-packages\ipykernel_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-packages\ipykernel\init.py", line 2, in from .connect import * File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\ipykernel\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.asciiletters + string.digits), dtype=(np.str, 1)) AttributeError: partially initialized module 'string' has no attribute 'ascii_letters' (most likely due to a circular import)

kevin-bates commented 4 years ago

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).

kimish96 commented 4 years ago

Thanks Bro, This was a big help...struggling since a week.

Dipon12 commented 4 years ago

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.

kevin-bates commented 4 years ago

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.

Dipon12 commented 4 years ago

thnx @kevin-bates . It helped. Notebook is working fine now

kevin-bates commented 4 years ago

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.

wbadry commented 4 years ago

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

fedeturi commented 4 years ago

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\notebook\base\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.

kevin-bates commented 4 years ago

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.

drewlr commented 4 years ago

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.

germanjke commented 4 years ago

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

arindambarman commented 4 years ago

I had the same issue and above suggestion resolve the issue. thanks for sharing.

luantorrex commented 4 years ago

@germanjke thank you, it also helped me

smithashenoy commented 4 years ago

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-packages\ipykernel\kernelbase.py", line 283, in dispatcher return self.dispatch_shell(stream, msg) File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell self.pre_handler_hook() File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\ipykernel\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-packages\ipykernel\kernelbase.py", line 283, in dispatcher return self.dispatch_shell(stream, msg) File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell self.pre_handler_hook() File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\ipykernel\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-packages\ipykernel_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-packages\ipykernel\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\asyncio\base_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(<function wrap..null_wrapper at 0x0000022F782A0048>) 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-packages\ipykernel\kernelbase.py", line 283, in dispatcher return self.dispatch_shell(stream, msg) File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell self.pre_handler_hook() File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\ipykernel\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-packages\ipykernel_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-packages\ipykernel\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\asyncio\base_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-packages\ipykernel_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-packages\ipykernel\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\asyncio\base_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\notebook\base\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\notebook\base\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-packages\ipykernel_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-packages\ipykernel\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\asyncio\base_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\notebook\base\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\notebook\base\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\notebook\base\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-packages\ipykernel_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-packages\ipykernel\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\asyncio\base_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!!

smithashenoy commented 4 years ago

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

drewlr commented 4 years ago

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

smithashenoy commented 4 years ago

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

Did you install those packages again? If yes then what did you use pip or conda??

Rafael-H commented 3 years ago

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-MMLHTMLorMML-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_AnalysisIntro.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_AnalysisIntro.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_AnalysisIntro.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_AnalysisIntro.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!

kevin-bates commented 3 years ago

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.

Rafael-H commented 3 years ago

Hi kevin-bates - That has fixed the problem! Thank you so much!

ghost commented 3 years ago

We solved this issue by adding an SSL certificate on the server hosting Jupyter Lab, so that the connections were being made over HTTPS. That might help a few people solve this problem.

mikekwabs commented 3 years ago

hi @kevin-bates can you please help me out?

[I 13:43:20.812 NotebookApp] Serving notebooks from local directory: C:\Users\user [I 13:43:20.813 NotebookApp] Jupyter Notebook 6.2.0 is running at: [I 13:43:20.815 NotebookApp] http://localhost:8888/?token=e680df78a5153f6708f7ad4756ce5a506a78a617b05fc71f [I 13:43:20.815 NotebookApp] or http://127.0.0.1:8888/?token=e680df78a5153f6708f7ad4756ce5a506a78a617b05fc71f [I 13:43:20.815 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 13:43:21.030 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/user/AppData/Roaming/jupyter/runtime/nbserver-7572-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=e680df78a5153f6708f7ad4756ce5a506a78a617b05fc71f
 or http://127.0.0.1:8888/?token=e680df78a5153f6708f7ad4756ce5a506a78a617b05fc71f

[W 13:43:35.534 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20210224134319 (::1) 22.980000ms referer=http://localhost:8888/notebooks/Untitled.ipynb [I 13:43:35.840 NotebookApp] Kernel started: b237ab44-09e7-4f68-b13c-1607b1dd03ca, name: python3 Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Anaconda\Lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Anaconda\Lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Anaconda\Lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Anaconda\Lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Anaconda\Lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Anaconda\Lib\site-packages\zmq__init.py", line 55, in from zmq import backend File "C:\Anaconda\Lib\site-packages\zmq\backend__init__.py", line 40, in reraise(*exc_info) File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py) [I 13:43:38.825 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Anaconda\Lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Anaconda\Lib\site-packages\ipykernel__init.py", line 2, in from .connect import * File "C:\Anaconda\Lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Anaconda\Lib\site-packages\jupyter_client\init__.py", line 4, in from .connect import * File "C:\Anaconda\Lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Anaconda\Lib\site-packages\zmq\init.py", line 55, in from zmq import backend File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py) [I 13:43:41.835 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Anaconda\Lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Anaconda\Lib\site-packages\ipykernel__init.py", line 2, in from .connect import * File "C:\Anaconda\Lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Anaconda\Lib\site-packages\jupyter_client\init__.py", line 4, in from .connect import * File "C:\Anaconda\Lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Anaconda\Lib\site-packages\zmq\init.py", line 55, in from zmq import backend File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py) [I 13:43:44.866 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Anaconda\Lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Anaconda\Lib\site-packages\ipykernel__init.py", line 2, in from .connect import * File "C:\Anaconda\Lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Anaconda\Lib\site-packages\jupyter_client\init__.py", line 4, in from .connect import * File "C:\Anaconda\Lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Anaconda\Lib\site-packages\zmq\init.py", line 55, in from zmq import backend File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py) [I 13:43:47.888 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Anaconda\Lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Anaconda\Lib\site-packages\ipykernel__init.py", line 2, in from .connect import * File "C:\Anaconda\Lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Anaconda\Lib\site-packages\jupyter_client\init__.py", line 4, in from .connect import * File "C:\Anaconda\Lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Anaconda\Lib\site-packages\zmq\init.py", line 55, in from zmq import backend File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Anaconda\Lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import__(name, fromlist=public_api) File "C:\Anaconda\Lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Anaconda\Lib\site-packages\zmq\backend\cython\init__.py) [W 13:43:50.898 NotebookApp] KernelRestarter: restart failed [W 13:43:50.899 NotebookApp] Kernel b237ab44-09e7-4f68-b13c-1607b1dd03ca died, removing from map.

kevin-bates commented 3 years ago

Hi @mikekwabs - please see this comment relative to the other issue you commented.

SimoneSido commented 3 years ago

Hello, please can someone help me put here. I am new to Jupyter and I'm trying to make it work, but it will not connect to Kernel, no idea why.

here's the error message I get on the Kernel: jupyter notebook [I 17:15:16.414 NotebookApp] The port 8888 is already in use, trying another port. [I 17:15:16.492 NotebookApp] JupyterLab extension loaded from /Users/sidodalpozzolo/opt/anaconda3/lib/python3.8/site-packages/jupyterlab [I 17:15:16.492 NotebookApp] JupyterLab application directory is /Users/sidodalpozzolo/opt/anaconda3/share/jupyter/lab [I 17:15:16.494 NotebookApp] Serving notebooks from local directory: /Users/sidodalpozzolo [I 17:15:16.494 NotebookApp] Jupyter Notebook 6.1.4 is running at: [I 17:15:16.494 NotebookApp] http://localhost:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352 [I 17:15:16.494 NotebookApp] or http://127.0.0.1:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352 [I 17:15:16.494 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 17:15:16.501 NotebookApp]

To access the notebook, open this file in a browser:
    file:///Users/sidodalpozzolo/Library/Jupyter/runtime/nbserver-32456-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352
 or http://127.0.0.1:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352

[I 17:15:21.585 NotebookApp] Creating new notebook in [I 17:15:22.631 NotebookApp] Kernel started: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e, name: ir dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 17:15:25.633 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 17:15:28.643 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [W 17:15:30.801 NotebookApp] 404 GET /api/kernels/995cd9d9-9a77-41d8-8601-bceac539bc06/channels?session_id=4d4313321c464fd7a15a4a9ea8ef0cef (::1): Kernel does not exist: 995cd9d9-9a77-41d8-8601-bceac539bc06 [W 17:15:30.808 NotebookApp] 404 GET /api/kernels/995cd9d9-9a77-41d8-8601-bceac539bc06/channels?session_id=4d4313321c464fd7a15a4a9ea8ef0cef (::1) 10.09ms referer=None [I 17:15:31.650 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 17:15:34.659 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [W 17:15:37.666 NotebookApp] KernelRestarter: restart failed [W 17:15:37.666 NotebookApp] Kernel b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e died, removing from map. [W 17:16:02.816 NotebookApp] Replacing stale connection: 995cd9d9-9a77-41d8-8601-bceac539bc06:4d4313321c464fd7a15a4a9ea8ef0cef [W 17:16:22.669 NotebookApp] Timeout waiting for kernel_info reply from b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e [E 17:16:22.671 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e) [W 17:16:24.800 NotebookApp] 404 GET /api/kernels/b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e/channels?session_id=acb5ce3822b84d109b498f83dfa3d7ce (::1): Kernel does not exist: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e [W 17:16:24.801 NotebookApp] 404 GET /api/kernels/b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e/channels?session_id=acb5ce3822b84d109b498f83dfa3d7ce (::1) 2.71ms referer=None [W 17:16:27.974 NotebookApp] Replacing stale connection: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e:acb5ce3822b84d109b498f83dfa3d7ce

Schermata 2021-02-26 alle 17 21 17
SimoneSido commented 3 years ago

Hello, please can someone help me put here. I am new to Jupyter and I'm trying to make it work, but it will not connect to Kernel, no idea why.

here's the error message I get on the Kernel: jupyter notebook [I 17:15:16.414 NotebookApp] The port 8888 is already in use, trying another port. [I 17:15:16.492 NotebookApp] JupyterLab extension loaded from /Users/sidodalpozzolo/opt/anaconda3/lib/python3.8/site-packages/jupyterlab [I 17:15:16.492 NotebookApp] JupyterLab application directory is /Users/sidodalpozzolo/opt/anaconda3/share/jupyter/lab [I 17:15:16.494 NotebookApp] Serving notebooks from local directory: /Users/sidodalpozzolo [I 17:15:16.494 NotebookApp] Jupyter Notebook 6.1.4 is running at: [I 17:15:16.494 NotebookApp] http://localhost:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352 [I 17:15:16.494 NotebookApp] or http://127.0.0.1:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352 [I 17:15:16.494 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 17:15:16.501 NotebookApp]

To access the notebook, open this file in a browser:
    file:///Users/sidodalpozzolo/Library/Jupyter/runtime/nbserver-32456-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352
 or http://127.0.0.1:8889/?token=b6d801352daf95e483d98ff5ec2bfd77f3a071b2fdd12352

[I 17:15:21.585 NotebookApp] Creating new notebook in [I 17:15:22.631 NotebookApp] Kernel started: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e, name: ir dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 17:15:25.633 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 17:15:28.643 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [W 17:15:30.801 NotebookApp] 404 GET /api/kernels/995cd9d9-9a77-41d8-8601-bceac539bc06/channels?session_id=4d4313321c464fd7a15a4a9ea8ef0cef (::1): Kernel does not exist: 995cd9d9-9a77-41d8-8601-bceac539bc06 [W 17:15:30.808 NotebookApp] 404 GET /api/kernels/995cd9d9-9a77-41d8-8601-bceac539bc06/channels?session_id=4d4313321c464fd7a15a4a9ea8ef0cef (::1) 10.09ms referer=None [I 17:15:31.650 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 17:15:34.659 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [W 17:15:37.666 NotebookApp] KernelRestarter: restart failed [W 17:15:37.666 NotebookApp] Kernel b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e died, removing from map. [W 17:16:02.816 NotebookApp] Replacing stale connection: 995cd9d9-9a77-41d8-8601-bceac539bc06:4d4313321c464fd7a15a4a9ea8ef0cef [W 17:16:22.669 NotebookApp] Timeout waiting for kernel_info reply from b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e [E 17:16:22.671 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e) [W 17:16:24.800 NotebookApp] 404 GET /api/kernels/b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e/channels?session_id=acb5ce3822b84d109b498f83dfa3d7ce (::1): Kernel does not exist: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e [W 17:16:24.801 NotebookApp] 404 GET /api/kernels/b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e/channels?session_id=acb5ce3822b84d109b498f83dfa3d7ce (::1) 2.71ms referer=None [W 17:16:27.974 NotebookApp] Replacing stale connection: b9f0c1b0-1514-45d7-b85b-cd4c6debbd4e:acb5ce3822b84d109b498f83dfa3d7ce

Schermata 2021-02-26 alle 17 21 17

maybe @kevin-bates could help?

kevin-bates commented 3 years ago

Looks like your IRKernel isn't installed completely. I would start here: https://www.google.com/search?q=irkernel+dyld%3A+Library+not+loaded%3A+%40rpath%2Flibreadline.6.2.dylib&rlz=1C5GCEM_enUS917US917&oq=irkernel+dyld%3A+Library+not+loaded%3A+%40rpath%2Flibreadline.6.2.dylib&ie=UTF-8

SimoneSido commented 3 years ago

Looks like your IRKernel isn't installed completely. I would start here: https://www.google.com/search?q=irkernel+dyld%3A+Library+not+loaded%3A+%40rpath%2Flibreadline.6.2.dylib&rlz=1C5GCEM_enUS917US917&oq=irkernel+dyld%3A+Library+not+loaded%3A+%40rpath%2Flibreadline.6.2.dylib&ie=UTF-8

I tried both conda update -c rdonnellyr -c main --all and conda install -c r r-irkernel but none of them did the trick for me sadly. (base) sidodalpozzolo@MBP-di-Sido ~ % jupyter notebook [I 18:45:07.590 NotebookApp] The port 8888 is already in use, trying another port. [I 18:45:07.690 NotebookApp] JupyterLab extension loaded from /Users/sidodalpozzolo/opt/anaconda3/lib/python3.8/site-packages/jupyterlab [I 18:45:07.690 NotebookApp] JupyterLab application directory is /Users/sidodalpozzolo/opt/anaconda3/share/jupyter/lab [I 18:45:07.693 NotebookApp] Serving notebooks from local directory: /Users/sidodalpozzolo [I 18:45:07.693 NotebookApp] Jupyter Notebook 6.1.4 is running at: [I 18:45:07.693 NotebookApp] http://localhost:8889/?token=be6849f2b18ec614cbc092dcdcb169a03f2d0d3998a4b8b1 [I 18:45:07.693 NotebookApp] or http://127.0.0.1:8889/?token=be6849f2b18ec614cbc092dcdcb169a03f2d0d3998a4b8b1 [I 18:45:07.693 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 18:45:07.698 NotebookApp]

To access the notebook, open this file in a browser:
    file:///Users/sidodalpozzolo/Library/Jupyter/runtime/nbserver-39141-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/?token=be6849f2b18ec614cbc092dcdcb169a03f2d0d3998a4b8b1
 or http://127.0.0.1:8889/?token=be6849f2b18ec614cbc092dcdcb169a03f2d0d3998a4b8b1

[I 18:45:11.695 NotebookApp] Creating new notebook in [I 18:45:12.863 NotebookApp] Kernel started: 769e9e62-8674-4b61-b21d-8b66574f023f, name: ir dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 18:45:15.864 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 18:45:18.869 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 18:45:21.880 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [I 18:45:24.890 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports dyld: Library not loaded: @rpath/libreadline.6.2.dylib Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Reason: image not found [W 18:45:27.897 NotebookApp] KernelRestarter: restart failed [W 18:45:27.898 NotebookApp] Kernel 769e9e62-8674-4b61-b21d-8b66574f023f died, removing from map. [W 18:45:46.378 NotebookApp] 404 GET /api/kernels/7096c5db-c9da-466a-8db9-a9faf91a6a07/channels?session_id=9cd069ef84f34a349e950ea328934ea9 (::1): Kernel does not exist: 7096c5db-c9da-466a-8db9-a9faf91a6a07 [W 18:45:46.384 NotebookApp] 404 GET /api/kernels/7096c5db-c9da-466a-8db9-a9faf91a6a07/channels?session_id=9cd069ef84f34a349e950ea328934ea9 (::1) 8.59ms referer=None [W 18:46:12.905 NotebookApp] Timeout waiting for kernel_info reply from 769e9e62-8674-4b61-b21d-8b66574f023f [E 18:46:12.907 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 769e9e62-8674-4b61-b21d-8b66574f023f) [W 18:46:15.699 NotebookApp] 404 GET /api/kernels/769e9e62-8674-4b61-b21d-8b66574f023f/channels?session_id=04c75536d4594d4583014567d3332bae (::1): Kernel does not exist: 769e9e62-8674-4b61-b21d-8b66574f023f [W 18:46:15.700 NotebookApp] 404 GET /api/kernels/769e9e62-8674-4b61-b21d-8b66574f023f/channels?session_id=04c75536d4594d4583014567d3332bae (::1) 3.68ms referer=None [W 18:46:25.369 NotebookApp] Replacing stale connection: 769e9e62-8674-4b61-b21d-8b66574f023f:04c75536d4594d4583014567d3332bae [W 18:46:50.393 NotebookApp] Replacing stale connection: 7096c5db-c9da-466a-8db9-a9faf91a6a07:9cd069ef84f34a349e950ea328934ea9 [I 18:47:12.859 NotebookApp] Saving file at /Untitled19.ipynb

kevin-bates commented 3 years ago

This isn't an issue for this repository. Your IRKernel environment is not setup correctly. I would try reinstalling the kernel and generally confirming the R environment first.

kirat89 commented 3 years ago

I am also facing this issue, base kernel is working fine, but the new envs I create are not working. i tries creating different envs, none of them worked, uninstalled and reinstalled anaconda, that didn't work, used this python -m pip install ipykernel python -m ipykernel install --user, this also didn't work. this problem aise when i tried installing jupyter widgets for tensorflow, pip install ipywidgets used this to install, and then this jupyter nbextension enable --py widgetsnbextension, in the jupyter notebook itself.since my new kernels don't work.

I 05:37:26.825 NotebookApp] Kernel started: 83d946a1-b7d0-468e-a149-394af4731e84, name: py3tf2.0 Traceback (most recent call last): File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel_launcher.py", line 16, in app.launch_new_instance() File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\traitlets\config\application.py", line 844, in launch_instance app.initialize(argv) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\traitlets\config\application.py", line 87, in inner return method(app, *args, **kwargs) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 577, in initialize self.write_connection_file() File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 230, in write_connection_file write_connection_file(cf, ip=self.ip, key=self.session.key, transport=self.transport, File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_client\connect.py", line 136, in write_connection_file with secure_write(fname) as f: File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\contextlib.py", line 117, in enter return next(self.gen) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_core\paths.py", line 461, in secure_write win32_restrict_file_to_user(fname) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_core\paths.py", line 387, in win32_restrict_file_to_user import win32api ImportError: DLL load failed while importing win32api: The specified module could not be found. [I 05:37:29.827 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\jsdha\AppData\Roaming\jupyter\runtime\kernel-83d946a1-b7d0-468e-a149-394af4731e84.json' Traceback (most recent call last): File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 257, in init_connection_file self.load_connection_file() File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_client\connect.py", line 494, in load_connection_file info = json.load(f) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json__init.py", line 293, in load return loads(fp.read(), File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [I 05:37:32.847 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\jsdha\AppData\Roaming\jupyter\runtime\kernel-83d946a1-b7d0-468e-a149-394af4731e84.json' Traceback (most recent call last): File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 257, in init_connection_file self.load_connection_file() File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_client\connect.py", line 494, in load_connection_file info = json.load(f) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init.py", line 293, in load return loads(fp.read(), File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [I 05:37:35.849 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\jsdha\AppData\Roaming\jupyter\runtime\kernel-83d946a1-b7d0-468e-a149-394af4731e84.json' Traceback (most recent call last): File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 257, in init_connection_file self.load_connection_file() File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_client\connect.py", line 494, in load_connection_file info = json.load(f) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init.py", line 293, in load return loads(fp.read(), File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [I 05:37:38.855 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\jsdha\AppData\Roaming\jupyter\runtime\kernel-83d946a1-b7d0-468e-a149-394af4731e84.json' Traceback (most recent call last): File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 257, in init_connection_file self.load_connection_file() File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\jupyter_client\connect.py", line 494, in load_connection_file info = json.load(f) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init.py", line 293, in load return loads(fp.read(), File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [W 05:37:41.870 NotebookApp] KernelRestarter: restart failed [W 05:37:41.870 NotebookApp] Kernel 83d946a1-b7d0-468e-a149-394af4731e84 died, removing from map. [W 05:38:26.934 NotebookApp] Timeout waiting for kernel_info reply from 83d946a1-b7d0-468e-a149-394af4731e84 [E 05:38:26.937 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 83d946a1-b7d0-468e-a149-394af4731e84) [W 05:38:27.976 NotebookApp] 404 GET /api/kernels/83d946a1-b7d0-468e-a149-394af4731e84/channels?session_id=69af83319d804281a497dffab4efa7d8 (::1): Kernel does not exist: 83d946a1-b7d0-468e-a149-394af4731e84 [W 05:38:27.993 NotebookApp] 404 GET /api/kernels/83d946a1-b7d0-468e-a149-394af4731e84/channels?session_id=69af83319d804281a497dffab4efa7d8 (::1) 19.990000ms referer=None [W 05:38:30.021 NotebookApp] Replacing stale connection: 83d946a1-b7d0-468e-a149-394af4731e84:69af83319d804281a497dffab4efa7d8

kevin-bates commented 3 years ago

Hi @kirat89 - I recommend starting with these instructions (https://github.com/jupyter/notebook/issues/4980#issuecomment-600992296) from within your py3tf2.0 environment.

Please update us on the results. Thanks.

meeseeksmachine commented 3 years ago

This issue has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/4

ajitminj commented 3 years ago

Pls help me out here. Unable to connect to virtual env.

[I 13:11:53.927 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1 [W 2021-08-31 13:11:57.339 LabApp] 'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. [W 2021-08-31 13:11:57.339 LabApp] 'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. [I 2021-08-31 13:11:57.374 LabApp] JupyterLab extension loaded from C:\Users\Lenovo\anaconda3\lib\site-packages\jupyterlab [I 2021-08-31 13:11:57.374 LabApp] JupyterLab application directory is C:\Users\Lenovo\anaconda3\share\jupyter\lab [I 13:11:57.392 NotebookApp] Serving notebooks from local directory: C:\Users\Lenovo [I 13:11:57.393 NotebookApp] Jupyter Notebook 6.3.0 is running at: [I 13:11:57.394 NotebookApp] http://localhost:8888/?token=0b9c64d4cfe04a4d0a9f5ffbba1589b4d876b6f1c24f5980 [I 13:11:57.395 NotebookApp] or http://127.0.0.1:8888/?token=0b9c64d4cfe04a4d0a9f5ffbba1589b4d876b6f1c24f5980 [I 13:11:57.395 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 13:11:57.574 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/Lenovo/AppData/Roaming/jupyter/runtime/nbserver-23364-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=0b9c64d4cfe04a4d0a9f5ffbba1589b4d876b6f1c24f5980
 or http://127.0.0.1:8888/?token=0b9c64d4cfe04a4d0a9f5ffbba1589b4d876b6f1c24f5980

[I 13:16:19.524 NotebookApp] Creating new notebook in [W 13:16:21.154 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.197 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.484 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.514 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.629 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.674 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.803 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:21.854 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:22.118 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:22.152 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:23.405 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:23.442 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.120 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.164 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.449 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.487 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.600 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.648 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.781 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:24.828 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:25.087 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:25.123 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:26.338 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:26.382 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [I 13:16:44.443 NotebookApp] Kernel started: b165f980-2053-418e-ae80-4c5d9403e306, name: ajitenv [W 13:16:50.929 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:51.012 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:51.419 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:51.461 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:51.722 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:51.809 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:52.079 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:52.154 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:52.609 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:52.643 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:54.152 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:54.195 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:54.953 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:55.006 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:55.325 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:55.363 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq__init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend__init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [W 13:16:55.530 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:55.594 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:55.733 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:55.787 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:56.070 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:56.102 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:57.685 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:16:57.739 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [I 13:16:57.977 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:17:01.041 NotebookApp] KernelRestarter: restarting kernel (2/5), keep random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:17:04.115 NotebookApp] KernelRestarter: restarting kernel (3/5), keep random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:17:07.197 NotebookApp] KernelRestarter: restarting kernel (4/5), keep random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [W 13:17:10.265 NotebookApp] KernelRestarter: restart failed [W 13:17:10.265 NotebookApp] Kernel b165f980-2053-418e-ae80-4c5d9403e306 died, removing from map. [W 13:17:44.582 NotebookApp] Timeout waiting for kernel_info reply from b165f980-2053-418e-ae80-4c5d9403e306 [E 13:17:44.593 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: b165f980-2053-418e-ae80-4c5d9403e306) [W 13:17:45.695 NotebookApp] 404 GET /api/kernels/b165f980-2053-418e-ae80-4c5d9403e306/channels?session_id=1e16083640f3443dab046a9fdb78f070 (::1): Kernel does not exist: b165f980-2053-418e-ae80-4c5d9403e306 [W 13:17:45.732 NotebookApp] 404 GET /api/kernels/b165f980-2053-418e-ae80-4c5d9403e306/channels?session_id=1e16083640f3443dab046a9fdb78f070 (::1) 49.000000ms referer=None [W 13:17:47.781 NotebookApp] Replacing stale connection: b165f980-2053-418e-ae80-4c5d9403e306:1e16083640f3443dab046a9fdb78f070 [I 13:18:29.272 NotebookApp] Saving file at /Untitled.ipynb [W 13:27:38.666 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:38.717 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.105 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.162 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.330 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.390 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.584 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.634 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.894 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:39.926 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:41.303 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:41.351 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.208 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.257 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.518 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.553 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.667 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.727 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.853 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:42.908 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:43.269 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:43.306 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:44.571 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:44.623 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths? [W 13:27:46.758 NotebookApp] Notebook Untitled.ipynb is not trusted [I 13:27:50.427 NotebookApp] Kernel started: 330a6583-0b2d-42b1-aa67-c95a50c19e80, name: ajitenv Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:27:53.437 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:27:56.504 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:27:59.588 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [I 13:28:02.689 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel__init.py", line 2, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in import jupyter_client File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client__init__.py", line 4, in from .connect import File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in import zmq File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\init.py", line 50, in from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 40, in reraise(*exc_info) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\init__.py", line 27, in _ns = select_backend(first) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = import__(name, fromlist=public_api) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython__init__.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found. [W 13:28:05.772 NotebookApp] KernelRestarter: restart failed [W 13:28:05.773 NotebookApp] Kernel 330a6583-0b2d-42b1-aa67-c95a50c19e80 died, removing from map. [W 13:28:50.498 NotebookApp] Timeout waiting for kernel_info reply from 330a6583-0b2d-42b1-aa67-c95a50c19e80 [E 13:28:50.502 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 330a6583-0b2d-42b1-aa67-c95a50c19e80) [W 13:28:52.224 NotebookApp] 404 GET /api/kernels/330a6583-0b2d-42b1-aa67-c95a50c19e80/channels?session_id=823f17268f1240248298d6b4d835495f (::1): Kernel does not exist: 330a6583-0b2d-42b1-aa67-c95a50c19e80 [W 13:28:52.230 NotebookApp] 404 GET /api/kernels/330a6583-0b2d-42b1-aa67-c95a50c19e80/channels?session_id=823f17268f1240248298d6b4d835495f (::1) 13.020000ms referer=None [W 13:28:55.218 NotebookApp] Replacing stale connection: 330a6583-0b2d-42b1-aa67-c95a50c19e80:823f17268f1240248298d6b4d835495f Kernel Error

kevin-bates commented 3 years ago

Hi @ajitminj - This is the crux of your issue:

File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython_init.py", line 6, in
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.

I suspect you have a situation with your pyzmq installation and an uninstall/reinstall might help.

Your C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython directory should resemble the following (although the darwin DLLs you see should be more Windows-specific as this listing was captured from a Mac):

__init__.pxd                          _proxy_steerable.cpython-38-darwin.so constants.pxi                         message.cpython-38-darwin.so
__init__.py                           _version.cpython-38-darwin.so         context.cpython-38-darwin.so          message.pxd
__pycache__                           checkrc.pxd                           context.pxd                           socket.cpython-38-darwin.so
_device.cpython-38-darwin.so          constant_enums.pxi                    error.cpython-38-darwin.so            socket.pxd
_poll.cpython-38-darwin.so            constants.cpython-38-darwin.so        libzmq.pxd                            utils.cpython-38-darwin.so

Each of these DLLs essentially corresponds to the import statement on line 6 of the __init__.py file.

You can also follow this issue as well: https://github.com/jupyter/notebook/issues/5577#issuecomment-785161094 - which links to others.

ajitminj commented 3 years ago

Thanks Kevin,

So you are suggesting pyzmq uninstall/reinstall.

Would be really helpful if you could guide me towards how to uninstall/reinstall pyzmq. Will the below command help? pip install --upgrade pyzmq

Thanks a ton!

and my C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython looks like the attachment initpy