"main", mod_spec) from .connect import * [I 08:53:44.260 NotebookApp] Kernel started: 141bcf3c-2e22-45aa-a0cf-5a6e91946b02, name: gpu2 File "C:\ProgramData\Anaconda3\lib\sre_compile.py", line 764, in compile [D 19:46:30.455 NotebookApp] Looking for jupyter_notebook_config in /Users/lgouda/.jupyter [D 19:47:26.063 NotebookApp] 200 GET /static/components/text-encoding/lib/encoding.js?v=737ac6f9f978afb6348b5914877e7d7136de7465cd4cdf389bad9a6b3ad5ceffbfb23febc75c23378967d7d36f98f5388208e8eb78c80f2bf47e8f8c000481ad (::1) 0.590000ms from string import Template Yes, I have ESET Internet Security. [W 13:27:39.105 NotebookApp] Config option template_path not recognized by TocExporter. As I try to execute a cell in a notebook, VS Code tries to connect 5 times to the Kernel and then fails. File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend_init_.py", line 27, in 1197298 30.6 KB. Now open the jupyter and select the "my_env" from Kernel option. Just like @kevin-bates mentioned. rc = osapipe.close() The "old version" (tag=, https://groups.google.com/g/jupyter/c/TZwqNstDBRs. File "C:\ProgramData\Anaconda3\lib\re.py", line 286, in _compile File "C:\Anaconda\Lib\site-packages\zmq\backend_init_.py", line 40, in Did you mean one of: extra_template_paths, template_name, template_paths? Traceback (most recent call last): Site Maintenance- Friday, January 20, 2023 02:00 UTC (Thursday Jan 19 9PM Were bringing advertisements for technology courses to Stack Overflow, pip install geopandas: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output, Jupyter Notebook Cannot Connect to Kernel, Likely due to Zipline / AssertionError, "import tensorflow" results in error: No module named 'tensorflow.python.eager.polymorphic_function' (Python in Jupyter Lab), Using IPython / Jupyter Notebooks Under Version Control, How to make IPython notebook matplotlib plot inline, Conda environments not showing up in Jupyter Notebook, after installing jupyter locally, I can't run jupyter notebook, I can't install Jupyter and Matplotlib in my anaconda env, No module named 'tensorflow' jupyter notebook, Keras code not working in Jupyter: "The kernel appears to have died. This issue has been mentioned on Jupyter Community Forum. /etc/jupyter/nbconfig/common.json Thanks! [D 19:47:19.229 NotebookApp] Path components/create-react-class/index.js served from /Users/lgouda/opt/anaconda3/lib/python3.9/site-packages/notebook/static/components/create-react-class/index.js reraise(*exc_info) I run the Jupiter notebook on anaconda but the only thing that happen is appearing [*] near the code lines and I can. File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance [W 05:38:27.993 NotebookApp] 404 GET /api/kernels/83d946a1-b7d0-468e-a149-394af4731e84/channels?session_id=69af83319d804281a497dffab4efa7d8 (::1) 19.990000ms referer=None Jupyter Notebook "Jupyter Notebook" [D 17:16:36.133 NotebookApp] 200 GET /api/terminals?=1572916567941 (172.16.48.232) 1.25ms The Jupyter notebook keeps saying Connecting to kernel, which never reaches finally popping an error, A connection to the notebook server could not be established. Lost 1 hour of precious Saturday time on this. Referenced from: /Users/sidodalpozzolo/opt/anaconda3/lib/R/lib/libR.dylib Did you mean one of: extra_template_paths, template_name, template_paths? Don't open the notebook in a browser after startup. exec(code, run_globals) [D 21:03:47.112 NotebookApp] 200 GET /custom/custom.js?v=20191105210342 (172.16.48.232) 1.95ms [W 05:38:26.934 NotebookApp] Timeout waiting for kernel_info reply from 83d946a1-b7d0-468e-a149-394af4731e84 [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 [I 2022-10-14 13:28:34.832 ServerApp] Kernel started: 0c7e8334-2d31-41b8-97d0-2d8efa8d9630 File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\ipykernel_launcher.py", line 15, in --port-retries= (NotebookApp.port_retries) This is my Anaconda Promt when I am running Jupyter. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\jupyter_client\connect.py", line 21, in [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 File "C:\Anaconda\Lib\site-packages\ipykernel_launcher.py", line 15, in File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython_init.py", line 6, in File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise import jupyter_client File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code [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 I'm not sure how to go about troubleshooting them, but its clear the launched kernel is not responding. [I 2022-10-14 13:28:40.838 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (2/5), new random ports /etc/jupyter/nbconfig/common.json For me it's not clear if this bug is on tornado or jupyter side. File "C:\Anaconda\Lib\site-packages\zmq\backend\select.py", line 28, in select_backend /Users/lgouda/opt/anaconda3/etc/jupyter/nbconfig/common.json File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\jupyter_client_init.py", line 4, in this problem aise when i tried installing jupyter widgets for tensorflow, [W 14:13:14.114 NotebookApp] KernelRestarter: restart failed [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 mod = import(name, fromlist=public_api) Someone said run "Python: Select interpreter to start Jupyter server", someone also said run"Notebook: Select Notebook Kernel" in your vscode. from .connect import * By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. raise value [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 BrokenPipeError: [Errno 32] Broken pipe self._stream.close() This week some 10 out of 60 could not establish a running kernel again. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\runpy.py", line 85, in run_code File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend_init_.py", line 40, in File "c:\users\kimish.desktop-pt5p6t3\appdata\local\programs\python\python38-32\lib\site-packages\pandas_testing.py", line 404, in My issue was that code was not getting executed. Thanks for contributing an answer to Stack Overflow! [W 13:43:50.899 NotebookApp] Kernel b237ab44-09e7-4f68-b13c-1607b1dd03ca died, removing from map. [D 21:03:47.698 NotebookApp] Connecting to: tcp://:39586 Indefinite article before noun starting with "the". (172.16.48.232) 98.36ms You can also follow this issue as well: #5577 (comment) - which links to others. from zmq import backend import jupyter_client . obj, end = self.raw_decode(s, idx=w(s, 0).end()) import zmq from debugpy.common import log, messaging [I 08:53:30.834 NotebookApp] Serving notebooks from local directory: C:\Users\jamil [D 17:16:47.754 NotebookApp] 304 GET /custom/custom.css (172.16.48.232) 2.14ms File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\config\configurable.py", line 412, in instance dyld: Library not loaded: @rpath/libreadline.6.2.dylib [I 13:11:57.392 NotebookApp] Serving notebooks from local directory: C:\Users\Lenovo [D 19:47:26.232 NotebookApp] 200 GET /nbextensions/jupyter-js-widgets/extension.js?v=20220521194630 (::1) 4.450000ms from ipykernel import kernelapp as app rev2023.1.17.43168. [I 14:48:41.774 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports ImportError: DLL load failed: The specified module could not be found. import jupyter_client Really appreciate your patience Kevin. [D 19:48:26.316 NotebookApp] Websocket closed b8710be7-c12c-44a5-a501-84bede249224:1a5b662a117e47d981bb76f1f6fefc12 File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_init.py", line 2, in [D 17:15:59.656 NotebookApp] 304 GET /custom/custom.css (172.16.48.232) 4.05ms File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\ipykernel\connect.py", line 18, in File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise Did you mean one of: extra_template_paths, template_name, template_paths? [D 19:47:26.299 NotebookApp] Connecting to: tcp://127.0.0.1:58640 File "C:\Users\jamil\anaconda3\envs\gpu2\lib\runpy.py", line 193, in run_module_as_main [D 19:47:26.176 NotebookApp] 200 GET /api/config/notebook?=1653187646111 (::1) 2.970000ms @DavisVickers glad to hear it helped. File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code Traceback (most recent call last): File "C:\Anaconda\Lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq_init_.py", line 50, in /root/anaconda3/envs/my-rdkit-env/etc/jupyter/nbconfig/notebook.json [D 19:47:26.072 NotebookApp] Path components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js served from /Users/lgouda/opt/anaconda3/lib/python3.9/site-packages/notebook/static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js Jupyter Notebook - Cannot Connect to Kernel, https://groups.google.com/g/jupyter/c/TZwqNstDBRs, Flake it till you make it: how to detect and deal with flaky tests (Ep. File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel\connect.py", line 18, in RANDS_CHARS = np.array(list(string.ascii_letters + string.digits), dtype=(np.str, 1)) reraise(*exc_info) File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\ipykernel_launcher.py", line 15, in If it can help @kevin-bates - I ran into similar issues as above, and eventually got to @fedeturi's error. Traceback (most recent call last): from zmq import backend Full path of a config file. [D 21:03:46.735 NotebookApp] 304 GET /custom/custom.css (172.16.48.232) 1.52ms /root/anaconda3/envs/test/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json Unfortunately buying a new laptop is not an option for me. [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 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? File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 501, in _parse app.initialize(argv) ns = select_backend(first) reraise(*exc_info) ". import zmq [D 19:47:26.059 NotebookApp] 200 GET /static/notebook/css/override.css?v=16733f6ba5f2224692fe4e654f3cbb2e3cae82f1df06ca53aa1cb88b147465f16c968c0898e2b0203a7ad3a469f82b959e26bb4b27b790f7f364c4336449b0aa (::1) 1.330000ms File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend\select.py", line 28, in select_backend File "C:\Users\jamil\anaconda3\envs\gpu2\lib\site-packages\zmq\backend\cython_init.py", line 6, in The only solution I found was by resetting the system(I took a backup of most wanted apps) and install the application. [D 17:16:48.265 NotebookApp] 200 GET /nbextensions/nb_conda/main.js?v=20191105171433 (172.16.48.232) 1.74ms Be sure to update your config before our next release. import jupyter_client Azure CycleCloud. How did adding new pages to a US passport use to work? pip install jupyterlab [D 17:16:48.649 NotebookApp] 304 GET /nbextensions/nb_conda/views.js?v=20191105171433 (172.16.48.232) 1.30ms from .connect import * If you need anything else I will supply it. Powered by Discourse, best viewed with JavaScript enabled, Suddenly "no connection to Kernel" Windows. How (un)safe is it to use non-random seed words? File "C:\Anaconda\Lib\site-packages\ipykernel_init.py", line 2, in from .connect import * My compute is running but I cannot connect to any of the kernel. /root/anaconda3/envs/test/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json File "C:\Users\Lenovo\anaconda3\envs\ajitenv\lib\site-packages\zmq\backend\cython_init.py", line 6, in 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): Each of these DLLs essentially corresponds to the import statement on line 6 of the __init__.py file. self.load_connection_file() [W 19:48:35.494 NotebookApp] 404 GET /api/kernels/b8710be7-c12c-44a5-a501-84bede249224/channels?session_id=1a5b662a117e47d981bb76f1f6fefc12 (::1): Kernel does not exist: b8710be7-c12c-44a5-a501-84bede249224 --pylab= (NotebookApp.pylab) [D 17:16:00.371 NotebookApp] [nb_conda_kernels] refreshing conda info [C 13:11:57.574 NotebookApp], [I 13:16:19.524 NotebookApp] Creating new notebook in Please capture the entire startup sequence, either via screen-scrape or by redirecting the output to a file. [D 17:16:48.136 NotebookApp] Paths used for configuration of notebook: [I 21:03:42.680 NotebookApp] JupyterLab application directory is /root/anaconda3/envs/test/share/jupyter/lab [W 15:40:41.114 NotebookApp] Replacing stale connection: ea5eb9b2-7cc6-455b-8068-db5ce61ad768:a10207319f184c1bace6c946609970b2 File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\magics\osm.py", line 52, in init