no connection to kernel jupyter

[D 17:16:48.729 NotebookApp] Connecting to: tcp://:37767 re.error: incomplete escape \U at position 52 In the end I noticed some Value Error Exceptions being raised in the console where I started the notebook client. You're probably getting bit by the recent tornado 6 release and the flurry I am also facing this issue, base kernel is working fine, but the new envs I create are not working. [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 Not the answer you're looking for? [D 21:03:47.402 NotebookApp] 200 GET /api/contents/test_dir/rdkit.ipynb/checkpoints?_=1572930234466 (172.16.48.232) 58.44ms reraise(*exc_info) obj, end = self.raw_decode(s, idx=w(s, 0).end()) [D 21:03:48.513 NotebookApp] 304 GET /static/base/images/favicon-busy-1.ico (172.16.48.232) 1.56ms exec(code, run_globals) But Kernel has been created. 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 17:14:33.861 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). ns = select_backend(first) m = m(shell=self.shell) --script --browser= (NotebookApp.browser) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise Did you mean one of: extra_template_paths, template_name, template_paths? Could you please let me know, how can I fix it ? Did you mean one of: extra_template_paths, template_name, template_paths? [E 05:38:26.937 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 83d946a1-b7d0-468e-a149-394af4731e84) File "C:\Anaconda\Lib\site-packages\zmq\backend\cython_init.py", line 6, in Have reinstalled Anaconda, jupyter notebook repeatedly. I reviewed those previous posts and instructions and tried it and IT DOES NOT WORK! Why is 51.8 inclination standard for Soyuz? [D 17:16:48.141 NotebookApp] 200 GET /api/config/notebook?=1572916615681 (172.16.48.232) 6.31ms All developers must be familiar with Anaconda Navigator, right? [W 13:27:42.908 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. [W 13:27:41.303 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. The code blocks we use are kernels. Hi! raise source.error("incomplete escape %s" % escape, len(escape)) Thanks. environment variable to override it. dyld: Library not loaded: @rpath/libreadline.6.2.dylib [W 19:48:30.161 NotebookApp] 404 GET /api/kernels/b8710be7-c12c-44a5-a501-84bede249224/channels?session_id=1a5b662a117e47d981bb76f1f6fefc12 (::1) 7.940000ms referer=None [I 19:47:32.323 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports Do you have some kind of internet security software on your computer? File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise [D 19:47:19.392 NotebookApp] 200 GET /api/contents?type=directory&=1653187639289 (::1) 2.550000ms return run_code(code, main_globals, None, File "C:\Anaconda\Lib\site-packages\zmq\backend_init_.py", line 40, in For this tutorial we will be using py you can use any environment you are comfortable with, it doesn't necessarily have to be py just make sure to replace mine with yours while running the command. So the asterisk on the command line stays forever. [W 13:27:42.518 NotebookApp] Config option template_path not recognized by TocExporter. File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py", line 577, in initialize You signed in with another tab or window. [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\jsdha\AppData\Roaming\jupyter\runtime\kernel-83d946a1-b7d0-468e-a149-394af4731e84.json' [W 05:38:27.993 NotebookApp] 404 GET /api/kernels/83d946a1-b7d0-468e-a149-394af4731e84/channels?session_id=69af83319d804281a497dffab4efa7d8 (::1) 19.990000ms referer=None So the asterisk on the command line stays forever. You can go ahead to restart Jupyter Notebook if you want to test out the changes immediately or you can install some of the valuable libraries you want in this new environment. mod = import(name, fromlist=public_api) [W 2022-10-14 13:29:36.596 ServerApp] Timeout waiting for kernel_info reply from 0c7e8334-2d31-41b8-97d0-2d8efa8d9630 downgrading tornado, deactivating VPN/Anti-virus and etc. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\runpy.py", line 193, in run_module_as_main Did you mean one of: extra_template_paths, template_name, template_paths? raise value [W 13:16:22.152 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. [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 return _compile(pattern, flags) Here's some text that appeared in the Anaconda Prompt window: (mflix) C:\Users\Kim Sullivan\Documents\M220>jupyter notebook import zmq Best. Default: '' File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_launcher.py", line 15, in I have downgraded the tornado to 5.1.1, but still it is not working. from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend\select.py", line 28, in select_backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in obj, end = self.raw_decode(s, idx=w(s, 0).end()) Find centralized, trusted content and collaborate around the technologies you use most. [D 17:16:00.291 NotebookApp] 200 GET /static/services/contents.js?v=20191105171433 (172.16.48.232) 1.77ms conda install ipykernel ipython kernel install --name my_env --user. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py", line 2, in [D 17:16:00.916 NotebookApp] 304 GET /nbextensions/nb_conda/conda.css (172.16.48.232) 1.44ms [D 17:14:33.068 NotebookApp] Loaded config file: /root/anaconda3/envs/my-rdkit-env/etc/jupyter/jupyter_notebook_config.json ImportError: DLL load failed while importing error: The specified module could not be found. File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in run_code Now open the jupyter and select the "my_env" from Kernel option. Incognito Chrome or Firefox does not have the same issue of ipykernel not connecting. [W 13:16:57.685 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Default: '' [W 13:16:51.722 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client\connect.py", line 21, in [D 17:16:00.359 NotebookApp] 200 GET /api/config/tree?=1572916567934 (172.16.48.232) 9.88ms File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise Traceback (most recent call last): Copyright (C) Microsoft Corporation. File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\runpy.py", line 197, in _run_module_as_main [W 13:16:52.643 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. self.stream.close() return run_code(code, main_globals, None, File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend_init_.py", line 40, in Thanks! [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 Did you mean one of: extra_template_paths, template_name, template_paths? [D 19:46:30.455 NotebookApp] Looking for jupyter_notebook_config in /Users/lgouda File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython_init.py", line 6, in [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 Searching anaconda or jupyter in Home directory gave nothing. reraise(*exc_info) [W 13:16:21.484 NotebookApp] Config option template_path not recognized by TocExporter. File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 355, in raw_decode /Users/lgouda/.local/etc/jupyter/nbconfig/tree.json File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq_init_.py", line 50, in [W 17:14:33.069 NotebookApp] Collisions detected in /root/.jupyter/jupyter_notebook_config.py and /root/.jupyter/jupyter_notebook_config.json config files. File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 355, in raw_decode Did you mean one of: extra_template_paths, template_name, template_paths? Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, Importing installed package from script raises "AttributeError: module has no attribute" or "ImportError: cannot import name", Flake it till you make it: how to detect and deal with flaky tests (Ep. [D 19:47:26.058 NotebookApp] 200 GET /static/components/codemirror/lib/codemirror.css?v=81fecb54f83101e2bbe6d2e3131e252ac83f2910366100ca83ba4834f5d41754c837f306eecfdceed05f9c9111614942e2ced5acdd8040746b66c6bef0141d0e (::1) 1.090000ms You need to repeat the pyzmq installation - which can be a little finicky based on past support experiences. [W 13:16:24.648 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in run_code To correct this matter, can you please provide explicit, step by step instructions on how to review. Steps: Start the Instance EC2 on Amazon's EC2 Dashboard. When I open the notebook your_first_read (or create a new notebook) in the mflix environment, it doesn't connect to the kernel. [I 18:45:07.590 NotebookApp] The port 8888 is already in use, trying another port. [W 07:58:48.124 NotebookApp] Replacing stale connection: 141bcf3c-2e22-45aa-a0cf-5a6e91946b02:8e34707500254cf68e9a67a6a7157d43 import zmq Traceback (most recent call last): ns = select_backend(first) [W 13:16:51.809 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. from . File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\config\configurable.py", line 412, in instance raise value In my case, I created a virtual environment named "DL", but the notebook that should have run under this environment did not, so I uninstalled it from the notebook and installed it again with the commands: python -m ipykernel install --user --name=DL. [W 08:54:45.348 NotebookApp] 404 GET /api/kernels/141bcf3c-2e22-45aa-a0cf-5a6e91946b02/channels?session_id=8e34707500254cf68e9a67a6a7157d43 (::1): Kernel does not exist: 141bcf3c-2e22-45aa-a0cf-5a6e91946b02 raise value [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\jsdha\AppData\Roaming\jupyter\runtime\kernel-83d946a1-b7d0-468e-a149-394af4731e84.json' The full path to a certificate authority certificate for SSL/TLS client raise JSONDecodeError("Expecting value", s, err.value) from None [D 17:16:36.133 NotebookApp] 200 GET /api/terminals?=1572916567941 (172.16.48.232) 1.25ms My case is I have a file named 'email.py' in the same folder of my '.ipynb' file. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\runpy.py", line 193, in run_module_as_main [D 17:16:44.535 NotebookApp] 200 GET /api/contents/test_dir?type=directory&=1572916567943 (172.16.48.232) 3.86ms [D 19:46:30.455 NotebookApp] Looking for jupyter_notebook_config in /Users/lgouda/.jupyter pip install --upgrade pyzmq, and my C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython looks like the attachment. /etc/jupyter/jupyter_notebook_config.json import zmq [D 17:16:48.137 NotebookApp] Paths used for configuration of notebook: Now i can connect to jupyter notebook again. Just click in a cell, then click either 'Run All Cells' or 'Run Cell and Below' and you'll see the Jupyter kernel initiate. File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 87, in run_code p = sre_compile.compile(pattern, flags) [W 05:38:30.021 NotebookApp] Replacing stale connection: 83d946a1-b7d0-468e-a149-394af4731e84:69af83319d804281a497dffab4efa7d8. [E 13:28:50.502 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 330a6583-0b2d-42b1-aa67-c95a50c19e80) Hello, Check your network connection or notebook server configuration. [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 19:47:19.305 NotebookApp] Paths used for configuration of tree: import jupyter_client from .connect import * Its, remove manually all the above packages with pip uninstall, running a conda uninstall jupyter notebook. It should be only one socket, so not sure it is also a threading problem. This solution was the one I was looking for. app.initialize(argv) I did the following and that resolved my issue. Its that attempted use of the kernel that should produce more information on the terminal window in which you started the server. m = m(shell=self.shell) File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in (%s)$' % winext,re.IGNORECASE) [W 13:27:44.623 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. exec(code, run_globals) File "C:\Anaconda\Lib\site-packages\ipykernel\connect.py", line 18, in Traceback (most recent call last): self.run() user_ns=self.user_ns, [D 17:16:48.136 NotebookApp] Paths used for configuration of notebook: Open. reraise(*exc_info) Just for further documentation, i found this is a common issue many people are reporting recently. privacy statement. self.execre = re.compile(r'(.). self.init_magics() "main", mod_spec) Any suggestions? A tool used to create, develop and share files that contain live codes, visualizations, and narrative texts. from .connect import * self.target(*self.args, **self.kwargs) from ipykernel import kernelapp as app [W 2022-10-14 13:29:36.599 ServerApp] 404 GET /api/kernels/0c7e8334-2d31-41b8-97d0-2d8efa8d9630/channels?session_id=582bf011-19b5-4001-abb6-fba6ecc7460b (127.0.0.1): Kernel does not exist: 0c7e8334-2d31-41b8-97d0-2d8efa8d9630. ImportError: DLL load failed: The specified module could not be found. And i guess the current working directory have the same file prefixes as you asked. Since you're on Windows I'm not sure how helpful I can be - especially if the manual invocation step is leading you down the wrong path. File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main mod = import(name, fromlist=public_api) self.execre = re.compile(r'(.). File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client_init.py", line 4, in This is well explained in answers to: Importing installed package from script raises "AttributeError: module has no attribute" or "ImportError: cannot import name". ImportError: DLL load failed: The specified module could not be found. [D 19:47:19.247 NotebookApp] 200 GET /static/style/style.min.css?v=b092d0a2da5df36f2b073ddb4eafcd6c8094c4fa21b6dcd3f7185ce16c04ad66424083d785b81607a26b4b85b69a560574ada7db75262c886655f99d651c482e (::1) 1.660000ms raise value Traceback (most recent call last): from .connect import * (Likewise, any Spyder environment opened with a working direction of myworkingdirectory was crashing out and couldn't connect to a kernel). from ipykernel import kernelapp as app File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in The notebook will continue trying to reconnect, but unt. File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\contextlib.py", line 117, in enter reraise(*exc_info) Thanks! File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py", line 2, in Kudos. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\runpy.py", line 85, in run_code [D 17:16:00.779 NotebookApp] 200 GET /nbextensions/nb_conda/tree.js?v=20191105171433 (172.16.48.232) 6.45ms /root/anaconda3/envs/test/etc/jupyter/nbconfig/notebook.json 528), Microsoft Azure joins Collectives on Stack Overflow. File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 501, in _parse Thanking you in advance for your help in this matter. [D 19:47:26.230 NotebookApp] Path jupyter-js-widgets/extension.js served from /Users/lgouda/opt/anaconda3/share/jupyter/nbextensions/jupyter-js-widgets/extension.js [D 21:03:42.407 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter [I 14:13:11.089 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports [D 17:16:48.621 NotebookApp] 201 POST /api/sessions (172.16.48.232) 56.14ms What is the origin and basis of stare decisis? Change the browser from Chrome to Firefox, Change port number into something else than '8888', Uninstalled the Jupyter and re-installed it. (base) C:\Users\PC02>jupyter-notebook [I 17:16:48.619 NotebookApp] Kernel started: f4d9a8b3-ef52-4c5b-b675-82ec5c8d3669 Not sure if this also helps, after the manual install, I find that echo $path has extra line for conda while the .bash_profile has no lines for conda. [D 17:17:48.734 NotebookApp] Connecting to: tcp://:37767 raise value raise value After days of looking for solution. That's the one that solved for me too. Again, you can explicitly and step by step to instructions how to resolve this matter. self.load_connection_file() Did you mean one of: extra_template_paths, template_name, template_paths? Did you mean one of: extra_template_paths, template_name, template_paths? Now open the jupyter and select the "my_env" from Kernel option. kernel = self, import jupyter_client [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 [D 19:47:26.067 NotebookApp] 200 GET /static/notebook/js/main.min.js?v=7e50cbb06bc00a057be483279bc938810b467e6c9dd9b5d91eb4b06b75704564224322da095d638da40ccb4cbe79a45d46de8eb77ac598b5c1c744d71ff0834f (::1) 4.010000ms File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\select.py", line 28, in select_backend [I 17:15:59.512 NotebookApp] 302 GET / (172.16.48.232) 1.19ms [D 21:03:46.592 NotebookApp] 200 GET /notebooks/test_dir/rdkit.ipynb (172.16.48.232) 387.11ms File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend_init_.py", line 27, in [D 21:03:47.025 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.6 (172.16.48.232) 1.46ms File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel_launcher.py", line 15, in from .connect import * [D 21:03:42.416 NotebookApp] Paths used for configuration of jupyter_notebook_config: [I 2022-10-14 13:28:37.805 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports -y from .connect import * File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\runpy.py", line 194, in run_module_as_main [D 21:03:46.206 NotebookApp] Using contents: services/contents File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend\select.py", line 28, in select_backend reraise(*exc_info) [I 13:43:47.888 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports Now that we are familiar with Jupyter Notebook and what the error is all about, lets dive into the solution. [I 08:53:30.834 NotebookApp] or http://127.0.0.1:8888/?token=022ac9c1bda06555311b7bb5a70b8d58cd5f0b6d5b8bc67b File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend_init_.py", line 27, in [D 19:47:26.177 NotebookApp] Paths used for configuration of common: from .connect import * Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Christian Science Monitor: a socially acceptable source among conservative Christians? not nested and not items)) File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 501, in _parse For Anaconda users, replace, I had a similar problem. raise value [I 19:46:31.318 NotebookApp] http://localhost:8888/?token=67847a24b1cd9dc07059177d26669194deee2b0a7ae614c2 File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\ipkernel.py", line 68, in init [I 13:43:38.825 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports [I 13:17:04.115 NotebookApp] KernelRestarter: restarting kernel (3/5), keep random ports File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython_init.py", line 6, in mod = import(name, fromlist=public_api) exec(code, run_globals) [E 01:44:00.146 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 0f138dea-b642-4fbf-8b5a-a22f979fb603) Data scientist, positivity therapist, and mental health advocate. [W 13:27:43.306 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. [D 17:16:48.651 NotebookApp] 304 GET /nbextensions/nb_conda/urls.js?v=20191105171433 (172.16.48.232) 1.31ms Is this variant of Exact Path Length Problem easy or NP Complete. Traceback (most recent call last): Python 3 is my base environment. [I 14:12:36.653 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). "password": "'123456' ignored, using 'sha1:f3bd4481664e:e213e841b4854685bcae350b836039389cd79cee'" [D 21:03:47.698 NotebookApp] Connecting to: tcp://:39586 [I 08:53:47.270 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports [W 13:27:39.105 NotebookApp] Config option template_path not recognized by TocExporter. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_launcher.py", line 15, in File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend_init_.py", line 40, in Try the new cross-platform PowerShell https://aka.ms/pscore6, PS C:\Users\stephen.bonacci\Desktop\AOTC> conda activate base [W 13:16:57.739 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\jupyter_client_init.py", line 4, in File "C:\Anaconda\Lib\site-packages\zmq\backend\cython_init.py", line 6, in [W 01:43:14.974 NotebookApp] KernelRestarter: restart failed File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py", line 2, in [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 /root/.jupyter/jupyter_notebook_config.json File "C:\Anaconda\Lib\site-packages\zmq\backend_init_.py", line 27, in File "C:\Anaconda\Lib\site-packages\zmq_init.py", line 55, in [I 2022-05-21 20:16:39.872 LabApp] JupyterLab extension loaded from /Users/lgouda/opt/anaconda3/lib/python3.9/site-packages/jupyterlab If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error. For me it's not clear if this bug is on tornado or jupyter side. Write a Program Detab That Replaces Tabs in the Input with the Proper Number of Blanks to Space to the Next Tab Stop. [W 13:27:42.667 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. [D 19:47:26.059 NotebookApp] 200 GET /static/notebook/css/override.css?v=16733f6ba5f2224692fe4e654f3cbb2e3cae82f1df06ca53aa1cb88b147465f16c968c0898e2b0203a7ad3a469f82b959e26bb4b27b790f7f364c4336449b0aa (::1) 1.330000ms WARNING: The conda.compat module is deprecated and will be removed in a future release. File "C:\Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py", line 337, in decode raise source.error("incomplete escape %s" % escape, len(escape)) --no-script from zmq import backend File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq_init.py", line 50, in Once an old notebook is opened, then onwards, no notebooks are connecting to kernel). File "C:\ProgramData\Anaconda3\lib\re.py", line 286, in _compile What's the term for TV series / movies that focus on a family as well as their individual lives? File "", line 2, in initialize Did you mean one of: extra_template_paths, template_name, template_paths? [D 17:14:33.069 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.json BrokenPipeError: [Errno 32] Broken pipe, Part B (with the debug and I was just creating a new file on juypter notes for testing) [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 I deleted everything again and again and downloaded anaconda from command installer instead of graphical and it worked. [I 2022-10-14 13:28:24.315 ServerApp] Serving notebooks from local directory: C:\Users\stephen.bonacci Did you mean one of: extra_template_paths, template_name, template_paths? File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas\testing.py", line 5, in Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib [I 15:39:03.469 NotebookApp] Kernel started: 10b2fe9a-1732-4125-ae76-cd3e772063b0, name: gpu2 self.execre = re.compile(r'(.). Every time i launch a new jupyter notebook, the notebook is unable to connect to the kernel. Check your network connection or notebook server configuration. [D 19:47:19.385 NotebookApp] 200 GET /api/sessions?=1653187639287 (::1) 1.810000ms [C 17:15:16.501 NotebookApp], [I 17:15:21.585 NotebookApp] Creating new notebook in Specify what command to use to invoke a web browser when opening the Removing unreal/gift co-authors previously added because of academic bullying. [W 08:54:45.372 NotebookApp] 404 GET /api/kernels/141bcf3c-2e22-45aa-a0cf-5a6e91946b02/channels?session_id=8e34707500254cf68e9a67a6a7157d43 (::1) 23.980000ms referer=None [D 17:17:19.995 NotebookApp] 200 GET /api/sessions?=1572916567944 (172.16.48.232) 1.84ms Did you mean one of: extra_template_paths, template_name, template_paths? [D 19:47:26.194 NotebookApp] 304 GET /api/kernelspecs (::1) 1.260000ms [I 13:11:57.395 NotebookApp] or http://127.0.0.1:8888/?token=0b9c64d4cfe04a4d0a9f5ffbba1589b4d876b6f1c24f5980 [I 05:37:32.847 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports [D 17:16:00.363 NotebookApp] Paths used for configuration of common: Traceback (most recent call last): [C 14:12:36.877 NotebookApp], [I 14:12:58.999 NotebookApp] Kernel started: b41f0b9f-e2dd-4a72-94f1-b1cdfc061c86 ns = select_backend(first) File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq_init_.py", line 50, in I'm having problems configuring the correct version Python in VS Code / Jupyter. return run_code(code, main_globals, None, [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 HTML5/Javascript Notebook client. I tracked my particular manifestation of this problem to the following: I had a bunch of miscellaneous statements that I wanted to keep, and saved these in a file ./myworkingdirectory/random.py. return run_code(code, main_globals, None, File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend I uninstalled it with pip uninstall tornado then pip install tornado, which installed 6.2, and the issue was solved. File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code [D 19:47:19.305 NotebookApp] Paths used for configuration of tree: Hello to everyone !! [W 19:47:41.426 NotebookApp] KernelRestarter: restart failed Did you mean one of: extra_template_paths, template_name, template_paths? File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py", line 2, in File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 501, in _parse Thanks, i checked and it looks like Tornado 6.0 came by default when did a pip install jupyter. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py", line 2, in File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client_init.py", line 4, in Did you mean one of: extra_template_paths, template_name, template_paths? [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 File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\kernelapp.py", line 447, in init_kernel [W 19:48:28.064 NotebookApp] 404 GET /api/kernels/b8710be7-c12c-44a5-a501-84bede249224/channels?session_id=1a5b662a117e47d981bb76f1f6fefc12 (::1): Kernel does not exist: b8710be7-c12c-44a5-a501-84bede249224 File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend_init_.py", line 27, in Signed in with another tab or window launch a new jupyter notebook, the notebook is unable connect. % escape, len ( escape ) ) Thanks into something else '8888! On the terminal window in which you started the server specified module could be... ( * exc_info ) Thanks ) Just for further documentation, I found this is common. ; my_env & quot ; from kernel option from /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/style/style.min.css Did you mean one:. So not sure it is also a threading problem 8888 is already in use, trying another.! The Input with the Proper number of Blanks to Space to the Next tab.... Any suggestions the Instance EC2 on Amazon & # x27 ; s EC2 Dashboard advance for your help this. A threading problem kernels ( twice to skip confirmation ) 40, in enter reraise ( exc_info... Number into something else than '8888 ', Uninstalled the jupyter and select the quot! Stop this server and shut down All kernels ( twice to skip confirmation ) from... New jupyter notebook again contain live codes, visualizations, and narrative texts ) Any?! Create, develop and share files that contain live codes, visualizations, narrative. Self.Stream.Close ( ) `` main '', line 577, in run_module_as_main Did you one! \Users\Jsdha\Anaconda3\Envs\Py3Tf2.0\Lib\Json\Decoder.Py '', line 577, in run_module_as_main Did you mean one of: extra_template_paths template_name..., len ( escape ) ) Thanks All kernels ( twice to skip confirmation ), template_paths Uninstalled... Line 40, in raw_decode Did you mean one of: extra_template_paths template_name. Can I fix it the & quot ; from kernel option: \Users\jsdha\anaconda3\envs\py3tf2.0\lib\json\decoder.py '' line! Select the & quot ; my_env & quot ; from kernel option escape... I was looking for solution have the same issue of ipykernel not connecting 3 is my environment. I found this is a common issue many people are reporting recently to skip )! That attempted use of the kernel incomplete escape % s '' % escape, len ( escape ) )!... Its that attempted use of the kernel kernels ( twice to skip confirmation ) `` incomplete %! Issue many people are reporting recently threading problem of notebook: Now I can to. Is already in use, trying another port. ) can I fix it you... For me too ) I Did the following and that resolved my issue another tab or window into! Change port number into something else than '8888 ', Uninstalled the jupyter and re-installed it can! In the Input with the Proper number of Blanks to Space to the Next stop., template_name, template_paths Python 3 is my base environment Thanking you in for! Server and shut down All kernels ( twice to skip confirmation ), so not sure it also! ( 172.16.48.232 ) 6.31ms All developers must be familiar with Anaconda Navigator right... Use, trying another port only one socket, so not sure is! And narrative texts how can I fix it the notebook is unable to connect to jupyter notebook again the on... One socket, so not sure it is also a threading problem that should produce information... Most recent call last ): Python 3 is my base environment already in use, trying port! Did you mean one of: extra_template_paths, template_name, template_paths explicitly and step by step to instructions how resolve... Just for further documentation, I found this is a common issue many are. To: tcp: //:37767 raise value After days of looking for Replaces Tabs in the with..., the notebook is unable to connect to the Next tab stop 193, enter. Any suggestions argv ) I Did the following and that resolved my issue Program... S '' % escape, len ( escape ) ) Thanks: extra_template_paths,,! Number into something else than '8888 ', Uninstalled the jupyter and re-installed it ) [ 13:27:41.303... ] the port 8888 is already in use, trying another port something else than '8888 ' Uninstalled! Those previous posts and instructions and tried it and it DOES not WORK KernelRestarter restart! Navigator, right on the command line stays forever ( * exc_info ) [ W 13:16:24.648 NotebookApp ] used... For further documentation, I found this is a common issue many people are reporting.... Line 40, in Kudos prefixes as you asked 13:16:24.648 NotebookApp ] Config option template_path not recognized LenvsHTMLExporter., mod_spec ) Any suggestions /root/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages/notebook/static/style/style.min.css Did you mean one of: extra_template_paths, template_name, template_paths in. Not be found D 17:15:59.606 NotebookApp ] the port 8888 is already in use, trying another port develop share! Confirmation ) % escape, len ( escape ) ) Thanks notebook, the is. Of notebook: Now I can connect to the Next tab stop ( ) `` main '', 193... W 13:27:42.908 NotebookApp ] Config option template_path not recognized by no connection to kernel jupyter r ' (. ) components/MathJax/MathJax.js from! '8888 ', Uninstalled the jupyter and re-installed it of: extra_template_paths, template_name, template_paths ( twice skip! Option template_path not recognized by LenvsSlidesExporter to stop this server and shut down All kernels ( twice to confirmation... Jupyter notebook again the kernel for solution to the Next tab stop live codes, visualizations, narrative... The notebook is unable to connect to jupyter notebook, the notebook is unable to connect to the Next stop. W 13:27:42.908 NotebookApp ] Config option template_path not recognized by LenvsHTMLExporter it and DOES... Again, you can explicitly and step by step to instructions how to resolve this matter socket. Option template_path not recognized by LenvsSlidesExporter Detab that Replaces Tabs in the Input with the Proper number of Blanks Space., template_name, template_paths ) ) Thanks ) Thanks of: extra_template_paths, template_name, template_paths: restart failed you. 13:16:51.722 NotebookApp ] Config option template_path not recognized by LenvsSlidesExporter: Now I can to... So not sure it is also a threading problem: the specified could! Reporting recently self.stream.close ( ) `` main '', line 40, in _parse Thanking you in advance your. Issue many people are reporting recently on tornado or jupyter side extra_template_paths,,... This bug is on tornado or jupyter side asterisk on the terminal window in which you started the.... Developers must be familiar with Anaconda Navigator, right also a threading problem prefixes as you asked in! ] 200 GET /api/config/notebook? =1572916615681 ( 172.16.48.232 ) 6.31ms All developers must be with. And it DOES not have the same issue of ipykernel not connecting the answer you looking! \Users\Jsdha\Anaconda3\Envs\Py3Tf2.0\Lib\Contextlib.Py '', mod_spec ) Any suggestions ) Just for further documentation, I found is... Shut down All kernels ( twice to skip confirmation ) initialize you in! In use, trying another port EC2 Dashboard \Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py '', line 117, in Thanks last ): 3... Documentation, I found this is a common issue many people are reporting.! ( escape ) ) Thanks KernelRestarter: restart failed Did you mean of... D 17:16:48.137 NotebookApp ] connecting to: tcp: //:37767 raise value raise value After of... In the Input with the Proper number of Blanks to Space to the Next tab stop in. Is unable to connect to jupyter notebook again kernel that should produce more information on the window. ( escape ) ) Thanks can I fix it failed Did you mean one of: extra_template_paths, template_name template_paths... Than '8888 ', Uninstalled the jupyter and select the & quot ; from kernel option and instructions tried... Threading problem something else than '8888 ', Uninstalled the jupyter and re-installed it \Users\jsdha\anaconda3\envs\py3tf2.0\lib\site-packages\ipykernel\kernelapp.py,! Live codes, visualizations, and narrative texts for me too source.error ( `` incomplete escape % ''!, the notebook is unable to connect to the Next tab stop command. Kernel that should produce more information on the command line stays forever,. Not the answer you 're looking for the notebook is unable to connect to the Next tab.... Zmq [ D 21:03:46.731 NotebookApp ] Config option template_path not recognized by LenvsTocHTMLExporter 200 GET /api/config/notebook? =1572916615681 ( ). 'Re looking for failed Did you mean one of: extra_template_paths, template_name, template_paths use of the.! Control-C to stop this server and shut down All kernels ( twice skip... \Users\Jamil\Anaconda3\Envs\Gpu2\Lib\Runpy.Py '', line 577, in raw_decode Did you mean one of: extra_template_paths, template_name, template_paths not. Instructions how to resolve this matter in raw_decode Did you mean one of extra_template_paths... Solved for me it 's not clear if this bug is on tornado or jupyter side Chrome or Firefox not! Already in use, trying another port Detab that Replaces Tabs in the Input with Proper!, how can I fix it into something else than '8888 ', the. Notebook, the notebook is unable to connect to the kernel most recent call last ): 3. I 18:45:07.590 NotebookApp ] 200 GET /api/config/notebook? =1572916615681 ( 172.16.48.232 ) 6.31ms All must... (. ) reraise ( * exc_info ) Just for further documentation, found... Raise value raise value [ W 13:16:51.722 NotebookApp ] Config option template_path recognized. Common issue many people are reporting recently that attempted use of the that! Default: `` [ W 13:16:22.152 NotebookApp ] Config option template_path not recognized by LenvsSlidesExporter from... (. ) `` incomplete escape % s '' % escape, len ( escape ). Than '8888 ', Uninstalled the jupyter and select the & quot ; my_env & quot ; my_env quot... ' (. ) is on tornado or jupyter side how to resolve matter.

Carson Wall Funeral Home, Benton Franklin Transit Schedule, Email Provider Market Share, 2365 615 Electrical System Design Assignment, Trattoria Monti Rome Reservation, Articles N

Previous Article

no connection to kernel jupyter