Error starting kernel jupiter lab

Description Upon starting jupyter lab from the command line and clicking on a new (or existing) notebook, I get the following error message: Any attempt to restart the kernel, select a new kernel e...

Description

Upon starting jupyter lab from the command line and clicking on a new (or existing) notebook, I get the following error message:

image

Any attempt to restart the kernel, select a new kernel etc. results in the same issue.

Reproduce

Run jupyter lab from the command line, open a new new (or existing) notebook, when prompted select «Python 3» for the kernel.

Context

  • Operating System and version: Windows 10 Pro, Version 10.0.18363 Build 18363
  • Browser and version: Firefox 84.0.1
  • Python version: 3.7.1
  • JupyterLab version: 2.2.9 (also tried upgrading to 3.0.6, but encountered the same issue)

Troubleshoot Output

$PATH:
        C:UsersYannis.KatsarosMiniconda3envsmssql
        C:UsersYannis.KatsarosMiniconda3envsmssqlLibrarymingw-w64bin
        C:UsersYannis.KatsarosMiniconda3envsmssqlLibraryusrbin
        C:UsersYannis.KatsarosMiniconda3envsmssqlLibrarybin
        C:UsersYannis.KatsarosMiniconda3envsmssqlScripts
        C:UsersYannis.KatsarosMiniconda3envsmssqlbin
        C:UsersYannis.KatsarosMiniconda3condabin
        C:Program Files (x86)Common FilesOracleJavajavapath
        C:Program FilesGitmingw64bin
        C:Program FilesGitusrbin
        C:Program FilesGitcmd
        C:Python39Scripts
        C:Python39
        C:ProgramDatachocolateybin
        C:Program Filesnodejs
        C:WINDOWSsystem32
        C:WINDOWS
        C:WINDOWSSystem32Wbem
        C:WINDOWSSystem32WindowsPowerShellv1.0
        _C:WINDOWSSystem32OpenSSH
        C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL
        C:Program FilesIntelIntel(R) Management Engine ComponentsDAL
        C:Program Files (x86)Microsoft SQL Server150DTSBinn
        C:Program FilesAzure Data Studiobin
        C:Program FilesMicrosoft SQL Server110ToolsBinn
        C:Program Filesdotnet
        C:Program FilesMicrosoft SQL Server130ToolsBinn
        C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn
        C:UsersYannis.KatsarosMiniconda3
        C:UsersYannis.KatsarosMiniconda3Librarymingw-w64bin
        C:UsersYannis.KatsarosMiniconda3Libraryusrbin
        C:UsersYannis.KatsarosMiniconda3Librarybin
        C:UsersYannis.KatsarosMiniconda3Scripts
        C:UsersYannis.KatsarosAppDataLocalMicrosoftWindowsApps
        C:UsersYannis.KatsarosAppDataLocalProgramsMicrosoft VS Codebin
        C:UsersYannis.KatsarosAppDataRoamingnpm
        C:UsersYannis.Katsaros.dotnettools

sys.path:
C:UsersYannis.KatsarosMiniconda3envsmssqlScripts
C:UsersYannis.KatsarosMiniconda3envsmssqlpython37.zip
C:UsersYannis.KatsarosMiniconda3envsmssqlDLLs
C:UsersYannis.KatsarosMiniconda3envsmssqllib
C:UsersYannis.KatsarosMiniconda3envsmssql
C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packages
C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packageswin32
C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packageswin32lib
C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesPythonwin

sys.executable:
C:UsersYannis.KatsarosMiniconda3envsmssqlpython.exe

sys.version:
3.7.1 | packaged by conda-forge | (default, Mar 13 2019, 13:32:59) [MSC v.1900 64 bit (AMD64)]

platform.platform():
Windows-10-10.0.18362-SP0

where jupyter:
C:UsersYannis.KatsarosMiniconda3envsmssqlScriptsjupyter.exe

pip list:
Package Version
----------------------------- -------------------
argon2-cffi 20.1.0
async-generator 1.10
attrs 20.3.0
backcall 0.2.0
backports.functools-lru-cache 1.6.1
bleach 3.3.0
brotlipy 0.7.0
certifi 2020.12.5
cffi 1.14.4
chardet 4.0.0
colorama 0.4.4
cryptography 3.3.1
decorator 4.4.2
defusedxml 0.6.0
entrypoints 0.3
idna 2.10
importlib-metadata 3.4.0
ipykernel 5.1.0
ipython 7.20.0
ipython-genutils 0.2.0
jedi 0.18.0
Jinja2 2.11.3
json5 0.9.5
jsonschema 3.2.0
jupyter-client 6.1.11
jupyter-core 4.7.1
jupyterlab 2.2.9
jupyterlab-pygments 0.1.2
jupyterlab-server 1.2.0
MarkupSafe 1.1.1
mistune 0.8.4
nbclient 0.5.1
nbconvert 6.0.7
nbformat 5.1.2
nest-asyncio 1.4.3
notebook 6.2.0
numpy 1.15.4
packaging 20.8
pandas 0.23.4
pandocfilters 1.4.2
parso 0.8.1
pickleshare 0.7.5
pip 20.3.3
prometheus-client 0.9.0
prompt-toolkit 3.0.14
pycparser 2.20
Pygments 2.7.4
pyOpenSSL 20.0.1
pyparsing 2.4.7
pyrsistent 0.17.3
PySocks 1.7.1
python-dateutil 2.8.1
pytz 2021.1
pywin32 300
pywinpty 0.5.7
pyzmq 22.0.1
requests 2.25.1
scikit-learn 0.20.2
scipy 1.1.0
Send2Trash 1.5.0
setuptools 52.0.0.post20210125
six 1.15.0
terminado 0.9.2
testpath 0.4.4
tornado 6.1
traitlets 5.0.5
typing-extensions 3.7.4.3
urllib3 1.26.3
wcwidth 0.2.5
webencodings 0.5.1
wheel 0.36.2
win-inet-pton 1.1.0
wincertstore 0.2
zipp 3.4.0

conda list:
# packages in environment at C:UsersYannis.KatsarosMiniconda3envsmssql:
#
# Name Version Build Channel
argon2-cffi 20.1.0 py37hcc03f2d_2 conda-forge
async_generator 1.10 py_0 conda-forge
attrs 20.3.0 pyhd3deb0d_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.1 py_0 conda-forge
blas 1.0 mkl
bleach 3.3.0 pyh44b312d_0 conda-forge
brotlipy 0.7.0 py37hcc03f2d_1001 conda-forge
ca-certificates 2020.12.5 h5b45459_0 conda-forge
certifi 2020.12.5 py37h03978a9_1 conda-forge
cffi 1.14.4 py37hd8e9650_1 conda-forge
chardet 4.0.0 py37h03978a9_1 conda-forge
colorama 0.4.4 pyh9f0ad1d_0 conda-forge
cryptography 3.3.1 py37hd8e9650_1 conda-forge
decorator 4.4.2 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
entrypoints 0.3 pyhd8ed1ab_1003 conda-forge
icc_rt 2019.0.0 h0cc432a_1
idna 2.10 pyh9f0ad1d_0 conda-forge
importlib-metadata 3.4.0 py37h03978a9_0 conda-forge
importlib_metadata 3.4.0 hd8ed1ab_0 conda-forge
intel-openmp 2020.2 254
ipykernel 5.1.0 pyh24bf2e0_0 conda-forge
ipython 7.20.0 py37heaed05f_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
jedi 0.18.0 py37h03978a9_2 conda-forge
jinja2 2.11.3 pyh44b312d_0 conda-forge
json5 0.9.5 pyh9f0ad1d_0 conda-forge
jsonschema 3.2.0 py_2 conda-forge
jupyter_client 6.1.11 pyhd8ed1ab_1 conda-forge
jupyter_core 4.7.1 py37h03978a9_0 conda-forge
jupyterlab 2.2.9 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge
jupyterlab_server 1.2.0 py_0
libblas 3.9.0 7_mkl conda-forge
libcblas 3.9.0 7_mkl conda-forge
liblapack 3.9.0 7_mkl conda-forge
libsodium 1.0.18 h8d14728_1 conda-forge
m2w64-gcc-libgfortran 5.3.0 6 conda-forge
m2w64-gcc-libs 5.3.0 7 conda-forge
m2w64-gcc-libs-core 5.3.0 7 conda-forge
m2w64-gmp 6.1.0 2 conda-forge
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge
markupsafe 1.1.1 py37hcc03f2d_3 conda-forge
mistune 0.8.4 py37hcc03f2d_1003 conda-forge
mkl 2020.4 hb70f87d_311 conda-forge
msys2-conda-epoch 20160418 1 conda-forge
nbclient 0.5.1 py_0 conda-forge
nbconvert 6.0.7 py37h03978a9_3 conda-forge
nbformat 5.1.2 pyhd8ed1ab_1 conda-forge
nest-asyncio 1.4.3 pyhd8ed1ab_0 conda-forge
notebook 6.2.0 py37h03978a9_0 conda-forge
numpy 1.15.4 py37h8078771_1002 conda-forge
openssl 1.1.1i h8ffe710_0 conda-forge
packaging 20.8 pyhd3deb0d_0 conda-forge
pandas 0.23.4 py37h830ac7b_1000 conda-forge
pandoc 2.11.4 h8ffe710_0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
parso 0.8.1 pyhd8ed1ab_0 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pip 20.3.3 py37haa95532_0
prometheus_client 0.9.0 pyhd3deb0d_0 conda-forge
prompt-toolkit 3.0.14 pyha770c72_0 conda-forge
pycparser 2.20 pyh9f0ad1d_2 conda-forge
pygments 2.7.4 pyhd8ed1ab_0 conda-forge
pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge
pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge
pyrsistent 0.17.3 py37hcc03f2d_2 conda-forge
pysocks 1.7.1 py37h03978a9_3 conda-forge
python 3.7.1 h9460c21_1003 conda-forge
python-dateutil 2.8.1 pyhd3eb1b0_0
python_abi 3.7 1_cp37m conda-forge
pytz 2021.1 pyhd3eb1b0_0
pywin32 300 py37hcc03f2d_0 conda-forge
pywinpty 0.5.7 py37hc8dfbb8_1 conda-forge
pyzmq 22.0.1 py37h0d95fc2_0 conda-forge
requests 2.25.1 pyhd3deb0d_0 conda-forge
scikit-learn 0.20.2 py37h343c172_0
scipy 1.1.0 py37h29ff71c_2
send2trash 1.5.0 py_0 conda-forge
setuptools 52.0.0 py37haa95532_0
six 1.15.0 py37haa95532_0
terminado 0.9.2 py37h03978a9_0 conda-forge
testpath 0.4.4 py_0 conda-forge
tornado 6.1 py37hcc03f2d_1 conda-forge
traitlets 5.0.5 py_0 conda-forge
typing_extensions 3.7.4.3 py_0 conda-forge
urllib3 1.26.3 pyhd8ed1ab_0 conda-forge
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.36.2 pyhd3eb1b0_0
win_inet_pton 1.1.0 py37h03978a9_2 conda-forge
wincertstore 0.2 py37_0
winpty 0.4.3 4 conda-forge
zeromq 4.3.3 h0e60522_3 conda-forge
zipp 3.4.0 py_0 conda-forge

conda env:
name: mssql
channels:
- conda-forge
- defaults
dependencies:
- argon2-cffi=20.1.0=py37hcc03f2d_2
- async_generator=1.10=py_0
- attrs=20.3.0=pyhd3deb0d_0
- backcall=0.2.0=pyh9f0ad1d_0
- backports=1.0=py_2
- backports.functools_lru_cache=1.6.1=py_0
- blas=1.0=mkl
- bleach=3.3.0=pyh44b312d_0
- brotlipy=0.7.0=py37hcc03f2d_1001
- ca-certificates=2020.12.5=h5b45459_0
- certifi=2020.12.5=py37h03978a9_1
- cffi=1.14.4=py37hd8e9650_1
- chardet=4.0.0=py37h03978a9_1
- colorama=0.4.4=pyh9f0ad1d_0
- cryptography=3.3.1=py37hd8e9650_1
- decorator=4.4.2=py_0
- defusedxml=0.6.0=py_0
- entrypoints=0.3=pyhd8ed1ab_1003
- icc_rt=2019.0.0=h0cc432a_1
- idna=2.10=pyh9f0ad1d_0
- importlib-metadata=3.4.0=py37h03978a9_0
- importlib_metadata=3.4.0=hd8ed1ab_0
- intel-openmp=2020.2=254
- ipykernel=5.1.0=pyh24bf2e0_0
- ipython=7.20.0=py37heaed05f_0
- ipython_genutils=0.2.0=py_1
- jedi=0.18.0=py37h03978a9_2
- jinja2=2.11.3=pyh44b312d_0
- json5=0.9.5=pyh9f0ad1d_0
- jsonschema=3.2.0=py_2
- jupyter_client=6.1.11=pyhd8ed1ab_1
- jupyter_core=4.7.1=py37h03978a9_0
- jupyterlab=2.2.9=pyhd8ed1ab_0
- jupyterlab_pygments=0.1.2=pyh9f0ad1d_0
- jupyterlab_server=1.2.0=py_0
- libblas=3.9.0=7_mkl
- libcblas=3.9.0=7_mkl
- liblapack=3.9.0=7_mkl
- libsodium=1.0.18=h8d14728_1
- m2w64-gcc-libgfortran=5.3.0=6
- m2w64-gcc-libs=5.3.0=7
- m2w64-gcc-libs-core=5.3.0=7
- m2w64-gmp=6.1.0=2
- m2w64-libwinpthread-git=5.0.0.4634.697f757=2
- markupsafe=1.1.1=py37hcc03f2d_3
- mistune=0.8.4=py37hcc03f2d_1003
- mkl=2020.4=hb70f87d_311
- msys2-conda-epoch=20160418=1
- nbclient=0.5.1=py_0
- nbconvert=6.0.7=py37h03978a9_3
- nbformat=5.1.2=pyhd8ed1ab_1
- nest-asyncio=1.4.3=pyhd8ed1ab_0
- notebook=6.2.0=py37h03978a9_0
- numpy=1.15.4=py37h8078771_1002
- openssl=1.1.1i=h8ffe710_0
- packaging=20.8=pyhd3deb0d_0
- pandas=0.23.4=py37h830ac7b_1000
- pandoc=2.11.4=h8ffe710_0
- pandocfilters=1.4.2=py_1
- parso=0.8.1=pyhd8ed1ab_0
- pickleshare=0.7.5=py_1003
- pip=20.3.3=py37haa95532_0
- prometheus_client=0.9.0=pyhd3deb0d_0
- prompt-toolkit=3.0.14=pyha770c72_0
- pycparser=2.20=pyh9f0ad1d_2
- pygments=2.7.4=pyhd8ed1ab_0
- pyopenssl=20.0.1=pyhd8ed1ab_0
- pyparsing=2.4.7=pyh9f0ad1d_0
- pyrsistent=0.17.3=py37hcc03f2d_2
- pysocks=1.7.1=py37h03978a9_3
- python=3.7.1=h9460c21_1003
- python-dateutil=2.8.1=pyhd3eb1b0_0
- python_abi=3.7=1_cp37m
- pytz=2021.1=pyhd3eb1b0_0
- pywin32=300=py37hcc03f2d_0
- pywinpty=0.5.7=py37hc8dfbb8_1
- pyzmq=22.0.1=py37h0d95fc2_0
- requests=2.25.1=pyhd3deb0d_0
- scikit-learn=0.20.2=py37h343c172_0
- scipy=1.1.0=py37h29ff71c_2
- send2trash=1.5.0=py_0
- setuptools=52.0.0=py37haa95532_0
- six=1.15.0=py37haa95532_0
- terminado=0.9.2=py37h03978a9_0
- testpath=0.4.4=py_0
- tornado=6.1=py37hcc03f2d_1
- traitlets=5.0.5=py_0
- typing_extensions=3.7.4.3=py_0
- urllib3=1.26.3=pyhd8ed1ab_0
- vc=14.2=h21ff451_1
- vs2015_runtime=14.27.29016=h5e58377_2
- wcwidth=0.2.5=pyh9f0ad1d_2
- webencodings=0.5.1=py_1
- wheel=0.36.2=pyhd3eb1b0_0
- win_inet_pton=1.1.0=py37h03978a9_2
- wincertstore=0.2=py37_0
- winpty=0.4.3=4
- zeromq=4.3.3=h0e60522_3
- zipp=3.4.0=py_0
prefix: C:UsersYannis.KatsarosMiniconda3envsmssql

Command Line Output

[I 14:52:38.567 LabApp] JupyterLab extension loaded from C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyterlab
[I 14:52:38.567 LabApp] JupyterLab application directory is C:UsersYannis.KatsarosMiniconda3envsmssqlsharejupyterlab
[I 14:52:38.567 LabApp] Serving notebooks from local directory: C:UsersYannis.Katsarosdevtemp
[I 14:52:38.567 LabApp] Jupyter Notebook 6.2.0 is running at:
[I 14:52:38.567 LabApp] http://localhost:8888/?token=1ac02920f8e4a37596650bb931e7484c99ab6f84d86ea65d
[I 14:52:38.567 LabApp]  or http://127.0.0.1:8888/?token=1ac02920f8e4a37596650bb931e7484c99ab6f84d86ea65d
[I 14:52:38.567 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:52:38.884 LabApp]
To access the notebook, open this file in a browser:
    file:///C:/Users/Yannis.Katsaros/AppData/Roaming/jupyter/runtime/nbserver-11344-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=1ac02920f8e4a37596650bb931e7484c99ab6f84d86ea65d
 or http://127.0.0.1:8888/?token=1ac02920f8e4a37596650bb931e7484c99ab6f84d86ea65d

[I 14:52:44.580 LabApp] Build is up to date
[W 14:52:50.746 LabApp] Notebook Untitled.ipynb is not trusted
[E 14:52:52.554 LabApp] Failed to run command:
['C:/Users/Yannis.Katsaros/Miniconda3/envs/mssql/bin/python', '-m', 'ipykernel_launcher', '-f', 'C:UsersYannis.KatsarosAppDataRoamingjupyterruntimekernel-fa61c885-e6e1-45a9-99e9-3af2a26a1dbf.json']
PATH='...'
with kwargs:
{'stdin': -1, 'stdout': None, 'stderr': None, 'cwd': 'C:UsersYannis.Katsarosdevtemp', 'close_fds': False}

[E 14:52:52.554 LabApp] Uncaught exception POST /api/sessions?1612299172442 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='POST', uri='/api/sessions?1612299172442', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadoweb.py", line 1704, in _execute
result = await result
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 769, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookservicessessionshandlers.py", line 72, in post
type=mtype))
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 762, in run
value = future.result()
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 769, in run
yielded = self.gen.throw(exc_info) # type: ignore
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookservicessessionssessionmanager.py", line 88, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 762, in run
value = future.result()
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 769, in run
yielded = self.gen.throw(exc_info) # type: ignore
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookservicessessionssessionmanager.py", line 101, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 762, in run
value = future.result()
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookserviceskernelskernelmanager.py", line 176, in start_kernel
kernel_id = await maybe_future(self.pinned_superclass.start_kernel(self, **kwargs))
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientmultikernelmanager.py", line 185, in start_kernel
km.start_kernel(**kwargs)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientmanager.py", line 313, in start_kernel
self.kernel = self._launch_kernel(kernel_cmd, **kw)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientmanager.py", line 222, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientlauncher.py", line 134, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsubprocess.py", line 769, in init
restore_signals, start_new_session)
File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsubprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
[W 14:52:52.601 LabApp] Unhandled error
[E 14:52:52.601 LabApp] {
"Host": "localhost:8888",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0",
"Accept": "
/
",
"Accept-Language": "en-US,en;q=0.5",
"Referer": "http://localhost:8888/lab",
"Content-Type": "text/plain;charset=UTF-8",
"Authorization": "token 1ac02920f8e4a37596650bb931e7484c99ab6f84d86ea65d",
"X-Xsrftoken": "2|6c1732e8|d4ccba33fe83df711be0a84e48a21041|1610118405",
"Origin": "http://localhost:8888",
"Connection": "keep-alive",
"Cookie": "username-localhost-8888="2|1:0|10:1612299171|23:username-localhost-8888|44:ZmM3N2QxMzU4MjZmNGE2MmI3NjNlZjFmMjVkMDQ0YTM=|a282cefd80134a1f5ea07be9f5ff50e8a8edab4e3609df9dbeedc4e1a66a9a9c"; _xsrf=2|6c1732e8|d4ccba33fe83df711be0a84e48a21041|1610118405",
"Sec-Gpc": "1",
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Accept-Encoding": "gzip, deflate",
"Content-Length": "117"
}

Browser Output

Traceback (most recent call last):
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadoweb.py", line 1704, in _execute
    result = await result
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookservicessessionshandlers.py", line 72, in post
    type=mtype))
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 762, in run
    value = future.result()
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookservicessessionssessionmanager.py", line 88, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 762, in run
    value = future.result()
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookservicessessionssessionmanager.py", line 101, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagestornadogen.py", line 762, in run
    value = future.result()
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesnotebookserviceskernelskernelmanager.py", line 176, in start_kernel
    kernel_id = await maybe_future(self.pinned_superclass.start_kernel(self, **kwargs))
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientmultikernelmanager.py", line 185, in start_kernel
    km.start_kernel(**kwargs)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientmanager.py", line 313, in start_kernel
    self.kernel = self._launch_kernel(kernel_cmd, **kw)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientmanager.py", line 222, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsite-packagesjupyter_clientlauncher.py", line 134, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsubprocess.py", line 769, in __init__
    restore_signals, start_new_session)
  File "C:UsersYannis.KatsarosMiniconda3envsmssqllibsubprocess.py", line 1172, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
vendors~main.e39d4a65a871fe1cc8fa.js:2:2395922
    create http://localhost:8888/static/lab/vendors~main.e39d4a65a871fe1cc8fa.js:2

Uncaught (in promise) Error: Unhandled error
r http://localhost:8888/static/lab/vendors~main.e39d4a65a871fe1cc8fa.js:2
create http://localhost:8888/static/lab/vendors~main.e39d4a65a871fe1cc8fa.js:2

Uncaught (in promise) Error: No kernel to restart
restart http://localhost:8888/static/lab/vendors~main.e39d4a65a871fe1cc8fa.js:2

I just did a fresh miniconda install with py3.7 on win64, then created a virtual env with conda, then installed jupyter lab. Upon launching jupyter lab, I try to open a new notebook and get the following «Starting Kernel Error» window with message text:

Traceback (most recent call last):
  File "C:Anacondaenvsppua7237libsite-packagestornadoweb.py", line 1592, in _execute
    result = yield result
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookservicessessionshandlers.py", line 73, in post
    type=mtype))
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookservicessessionssessionmanager.py", line 79, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookservicessessionssessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 326, in wrapper
    yielded = next(result)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookserviceskernelskernelmanager.py", line 160, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientmultikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientmanager.py", line 259, in start_kernel
    **kw)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientmanager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientlauncher.py", line 128, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:Anacondaenvsppua7237libsubprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:Anacondaenvsppua7237libsubprocess.py", line 997, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

If I run jupyter notebook instead and launch a notebook file, I see the same thing… the error window says «failed to start kernel» with message:

Traceback (most recent call last):
  File "C:Anacondaenvsppua7237libsite-packagestornadoweb.py", line 1592, in _execute
    result = yield result
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookservicessessionshandlers.py", line 73, in post
    type=mtype))
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookservicessessionssessionmanager.py", line 79, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookservicessessionssessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 1133, in run
    value = future.result()
  File "C:Anacondaenvsppua7237libsite-packagestornadogen.py", line 326, in wrapper
    yielded = next(result)
  File "C:Anacondaenvsppua7237libsite-packagesnotebookserviceskernelskernelmanager.py", line 160, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientmultikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientmanager.py", line 259, in start_kernel
    **kw)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientmanager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:Anacondaenvsppua7237libsite-packagesjupyter_clientlauncher.py", line 128, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:Anacondaenvsppua7237libsubprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:Anacondaenvsppua7237libsubprocess.py", line 997, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

The same behavior happens with opening new notebooks or old existing ones. I have tried uninstalling miniconda and reinstalling, but the same behavior repeats.

Here’s my conda info:

     active environment : ppua7237
    active env location : C:Anacondaenvsppua7237
            shell level : 1
       user config file : C:UsersGeoff.condarc
 populated config files : C:UsersGeoff.condarc
          conda version : 4.5.11
    conda-build version : not installed
         python version : 3.7.0.final.0
       base environment : C:Anaconda  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:Anacondapkgs
                          C:UsersGeoffAppDataLocalcondacondapkgs
       envs directories : C:Anacondaenvs
                          C:UsersGeoffAppDataLocalcondacondaenvs
                          C:UsersGeoff.condaenvs
               platform : win-64
             user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

And conda list:

# packages in environment at C:Anacondaenvsppua7237:
#
# Name                    Version                   Build  Channel
altair                    2.2.2                    py36_1    conda-forge
asn1crypto                0.24.0                   py36_3    conda-forge
backcall                  0.1.0                      py_0    conda-forge
basemap                   1.1.0            py36h5987640_7    conda-forge
blas                      1.0                         mkl  
bleach                    2.1.4                      py_1    conda-forge
boost                     1.66.0              py36_vc14_1  [vc14]  conda-forge
boost-cpp                 1.66.0                   vc14_1  [vc14]  conda-forge
branca                    0.3.0                      py_0    conda-forge
ca-certificates           2018.8.24            ha4d7672_0    conda-forge
certifi                   2018.8.24             py36_1001    conda-forge
cffi                      1.11.5           py36hfa6e2cd_1    conda-forge
chardet                   3.0.4                    py36_3    conda-forge
click                     7.0                        py_0    conda-forge
click-plugins             1.0.4                      py_0    conda-forge
cligj                     0.5.0                      py_0    conda-forge
colorama                  0.3.9                      py_1    conda-forge
cryptography              2.3.1            py36h74b6da3_0    conda-forge
cryptography-vectors      2.3.1                    py36_0    conda-forge
curl                      7.60.0                   vc14_0  [vc14]  conda-forge
cycler                    0.10.0                     py_1    conda-forge
decorator                 4.3.0                      py_0    conda-forge
descartes                 1.1.0                      py_2    conda-forge
entrypoints               0.2.3                    py36_2    conda-forge
expat                     2.2.5                    vc14_0  [vc14]  conda-forge
fiona                     1.7.13           py36h01e27f7_3    conda-forge
folium                    0.6.0                      py_0    conda-forge
freetype                  2.9.1             he8b6a0d_1004    conda-forge
freexl                    1.0.2                    vc14_2  [vc14]  conda-forge
gdal                      2.2.4            py36h2fc6367_1    conda-forge
geographiclib             1.49                       py_0    conda-forge
geopandas                 0.4.0                      py_1    conda-forge
geopy                     1.17.0                     py_0    conda-forge
geos                      3.6.2                he025d50_3    conda-forge
geotiff                   1.4.2                    vc14_1  [vc14]  conda-forge
hdf4                      4.2.13                   vc14_0  [vc14]  conda-forge
hdf5                      1.10.1                   vc14_2  [vc14]  conda-forge
html5lib                  1.0.1                      py_0    conda-forge
icc_rt                    2017.0.4             h97af966_0  
icu                       58.2                     vc14_0  [vc14]  conda-forge
idna                      2.7                      py36_2    conda-forge
intel-openmp              2019.0                      118  
ipykernel                 5.0.0              pyh24bf2e0_1    conda-forge
ipython                   7.0.1            py36h39e3cac_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
jedi                      0.12.1                   py36_0    conda-forge
jinja2                    2.10                       py_1    conda-forge
jpeg                      9c                hfa6e2cd_1001    conda-forge
jsonschema                2.6.0                    py36_2    conda-forge
jupyter_client            5.2.3                      py_1    conda-forge
jupyter_core              4.4.0                      py_0    conda-forge
jupyterlab                0.34.12                  py36_0    conda-forge
jupyterlab_launcher       0.13.1                     py_2    conda-forge
kealib                    1.4.7                    vc14_4  [vc14]  conda-forge
kiwisolver                1.0.1            py36he980bc4_2    conda-forge
krb5                      1.14.6                   vc14_0  [vc14]  conda-forge
libgdal                   2.2.4                    vc14_5  [vc14]  conda-forge
libiconv                  1.14                     vc14_4  [vc14]  conda-forge
libnetcdf                 4.6.1                    vc14_2  [vc14]  conda-forge
libpng                    1.6.34                   vc14_0  [vc14]  conda-forge
libpq                     9.6.3                    vc14_0  [vc14]  conda-forge
libsodium                 1.0.16                   vc14_0  [vc14]  conda-forge
libspatialindex           1.8.5                    vc14_1  [vc14]  conda-forge
libspatialite             4.3.0a                  vc14_19  [vc14]  conda-forge
libssh2                   1.8.0                hc4dcbb0_2    conda-forge
libtiff                   4.0.9                    vc14_0  [vc14]  conda-forge
libxml2                   2.9.5                    vc14_1  [vc14]  conda-forge
m2w64-gcc-libgfortran     5.3.0                         6  
m2w64-gcc-libs            5.3.0                         7  
m2w64-gcc-libs-core       5.3.0                         7  
m2w64-gmp                 6.1.0                         2  
m2w64-libwinpthread-git   5.0.0.4634.697f757               2  
markupsafe                1.0              py36hfa6e2cd_1    conda-forge
matplotlib                3.0.0            py36h7b168c4_1    conda-forge
mistune                   0.8.3            py36hfa6e2cd_2    conda-forge
mkl                       2019.0                      118  
mkl_fft                   1.0.6                    py36_0    conda-forge
mkl_random                1.0.1                    py36_0    conda-forge
msys2-conda-epoch         20160418                      1  
munch                     2.3.2                      py_0    conda-forge
nbconvert                 5.3.1                      py_1    conda-forge
nbformat                  4.4.0                      py_1    conda-forge
networkx                  2.2                        py_1    conda-forge
notebook                  5.7.0                    py36_0    conda-forge
numpy                     1.15.2           py36ha559c80_0  
numpy-base                1.15.2           py36h8128ebf_0  
olefile                   0.46                       py_0    conda-forge
openjpeg                  2.3.0                    vc14_2  [vc14]  conda-forge
openssl                   1.0.2o                   vc14_0  [vc14]  conda-forge
osmnx                     0.8.2                      py_0    conda-forge
pandas                    0.23.4           py36h830ac7b_0    conda-forge
pandoc                    2.3.1                         0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
parso                     0.3.1                      py_0    conda-forge
pickleshare               0.7.5                    py36_0    conda-forge
pillow                    5.3.0            py36h9a613e6_0    conda-forge
pip                       18.0                     py36_1    conda-forge
proj4                     4.9.3                    vc14_5  [vc14]  conda-forge
prometheus_client         0.3.1                      py_1    conda-forge
prompt_toolkit            2.0.5                      py_0    conda-forge
psycopg2                  2.7.5            py36h74b6da3_1    conda-forge
pycparser                 2.19                       py_0    conda-forge
pygments                  2.2.0                      py_1    conda-forge
pyopenssl                 18.0.0                   py36_0    conda-forge
pyparsing                 2.2.2                      py_0    conda-forge
pyproj                    1.9.5.1          py36haf3c679_5    conda-forge
pyqt                      5.6.0            py36h764d66f_7    conda-forge
pysal                     1.14.4.post2             py36_0    conda-forge
pyshp                     1.2.12                     py_0    conda-forge
pysocks                   1.6.8                    py36_2    conda-forge
python                    3.6.6                he025d50_0    conda-forge
python-dateutil           2.7.3                      py_0    conda-forge
pytz                      2018.5                     py_0    conda-forge
pywinpty                  0.5.4                    py36_2    conda-forge
pyzmq                     17.1.2           py36hf576995_0    conda-forge
qt                        5.6.2                    vc14_1  [vc14]  conda-forge
requests                  2.19.1                   py36_1    conda-forge
rtree                     0.8.3                    py36_0    conda-forge
scikit-learn              0.20.0           py36heebcf9a_1  
scipy                     1.1.0            py36h4f6bf74_1  
send2trash                1.5.0                      py_0    conda-forge
setuptools                40.4.0                py36_1000    conda-forge
shapely                   1.6.4            py36hc90234e_1    conda-forge
simplegeneric             0.8.1                      py_1    conda-forge
sip                       4.18.1           py36h6538335_0    conda-forge
six                       1.11.0                   py36_1    conda-forge
sqlalchemy                1.2.12           py36hfa6e2cd_0    conda-forge
sqlite                    3.20.1                   vc14_2  [vc14]  conda-forge
terminado                 0.8.1                    py36_1    conda-forge
testpath                  0.3.1                    py36_1    conda-forge
tk                        8.6.8                    vc14_0  [vc14]  conda-forge
toolz                     0.9.0                      py_1    conda-forge
tornado                   5.1.1            py36hfa6e2cd_0    conda-forge
traitlets                 4.3.2                    py36_0    conda-forge
urllib3                   1.23                     py36_1    conda-forge
vc                        14                            0    conda-forge
vincent                   0.4.4                      py_1    conda-forge
vs2015_runtime            14.0.25420                    0    conda-forge
wcwidth                   0.1.7                      py_1    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.32.0                py36_1000    conda-forge
win_inet_pton             1.0.1                    py36_2    conda-forge
wincertstore              0.2                   py36_1002    conda-forge
winpty                    0.4.3                         4    conda-forge
xerces-c                  3.2.0                    vc14_0  [vc14]  conda-forge
xz                        5.2.4             h2fa13f4_1001    conda-forge
zeromq                    4.2.5                    vc14_2  [vc14]  conda-forge
zlib                      1.2.11                   vc14_0  [vc14]  conda-forge

Answer by Ivy Chan

This article solved in my case.
Jupyter-notebook reports an error KernelRestarter: restart failed or «kernel starting, please wait»,I can open jupyter by remote browser, but because kernel restart failed, I can’t run python demo by jupyter.,

Stack Overflow for Teams
Where developers & technologists share private knowledge with coworkers

,Please be sure to answer the question. Provide details and share your research!

Basically, uninstall all packages listed in article and reinstall jupyter and notebook

pip uninstall -y ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils jupyter notebook tornado
pip install jupyter notebook

Answer by Phoebe Larsen

When opening any jupyter notebook, even one with no code in, I get the ‘Dead kernal’ message:,I am trying to work with jupyter notebook, but when I open a file I receive the following error:,Is the Notebook server/kernel running in a container environment?,Is the kernel running local to the Notebook server?

  • ipykernel
  • ipython
  • jupyter_client
  • jupyter_core
  • traitlets
  • ipython_genutils

And then install again. If you’re doing this inside a conda env, it might be easiest to create a new environment and start from scratch. Also, if you’re going to install with conda, run conda clean -tipsy to clean up conda caches before you start.

conda clean -tipsy

Answer by Tyson Farley

When I attempt to run:
The kernel appears to have died. It will restart automatically.,Restarted, reconnected, shut down the kernel,Shut down & Restarted the computer,The following notice appears when I try to restart the kernel:
The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.

I also raun the following:

conda remove ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils

conda clean -tipsy

conda install ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils

jupyter notebook 

My terminal displays the following:

        The default interactive shell is now zsh.
        To update your account to use zsh, please run `chsh -s /bin/zsh`.
        For more details, please visit https://support.apple.com/kb/HT208050.
        /Users/martaramos/Applications/anaconda3/bin/jupyter_mac.command ; exit;
        (base) Martaaaa:~ martaramos$ /Users/martaramos/Applications/anaconda3/bin/jupyter_mac.command ; exit;
        [I 11:25:26.214 NotebookApp] JupyterLab extension loaded from /Users/martaramos/Applications/anaconda3/lib/python3.8/site-packages/jupyterlab
        [I 11:25:26.215 NotebookApp] JupyterLab application directory is /Users/martaramos/Applications/anaconda3/share/jupyter/lab
        [I 11:25:26.219 NotebookApp] Serving notebooks from local directory: /Users/martaramos
        [I 11:25:26.219 NotebookApp] Jupyter Notebook 6.1.4 is running at:
        [I 11:25:26.219 NotebookApp] http://localhost:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
        [I 11:25:26.219 NotebookApp]  or http://127.0.0.1:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
        [I 11:25:26.219 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
        [C 11:25:26.227 NotebookApp] 
            
            To access the notebook, open this file in a browser:
                file:///Users/martaramos/Library/Jupyter/runtime/nbserver-4059-open.html
            Or copy and paste one of these URLs:
                http://localhost:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
             or http://127.0.0.1:8888/?token=7b0415ea1961f656dd70d66b802bb0bc60eb0db701b7adbb
        [I 11:25:36.295 NotebookApp] Kernel started: a95fd5dc-468f-4a47-8b16-cb41f585cde1, name: python3
        [I 11:25:42.294 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
        kernel a95fd5dc-468f-4a47-8b16-cb41f585cde1 restarted
        [I 11:26:00.302 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
        kernel a95fd5dc-468f-4a47-8b16-cb41f585cde1 restarted
        [I 11:27:37.852 NotebookApp] Saving file at /Desktop/Python/Section 6.ipynb

Answer by Emerson Reed

What I think it should do, is that jupyter notebook should stay connected to the Slicer kernel and allow me use it. Instead it looses connection and restarts.,The Jupyter server launches Slicer with a command like this:,What I found to be strange is that Slicer app repeatedly starts and closes. After I close it, and shutdown jupyter I still have like 4 Slicer processes.,Hi @RafaelPalomar could you please help me with Slicer and Jupyter bug?

The Jupyter server launches Slicer with a command like this:

"C:UsersandraAppDataLocalNA-MICSlicer 4.13.0-2020-11-25binSlicerApp-real.exe"  --no-splash --python-code "connection_file=r'C:UsersandraAppDataRoamingjupyterruntimekernel-b1663e74-4f82-455e-9fa4-7abd9db6c811.json'; print('Jupyter connection file: ['+connection_file+']'); slicer.modules.jupyterkernel.startKernel(connection_file);slicer.util.mainWindow().showMinimized()"

Therefore, in the logs of the Slicer instance that Jupyter server started you should see something like this:

[DEBUG][Qt] 09.12.2020 14:52:12 [] (unknown:0) - Switch to module:  "Welcome"
[INFO][Stream] 09.12.2020 14:52:13 [] (unknown:0) - Loading Slicer RC file [C:/Users/andra/.slicerrc.py]
[INFO][Stream] 09.12.2020 14:52:13 [] (unknown:0) - Jupyter connection file: [C:UsersandraAppDataRoamingjupyterruntimekernel-b1663e74-4f82-455e-9fa4-7abd9db6c811.json]
[DEBUG][Qt] 09.12.2020 14:52:14 [] (unknown:0) - Starting Jupyter kernel server

Answer by Ella Fuentes

I found this stack overflow post for the error: python — How to fix “ImportError: DLL load failed” while importing win32api — Stack Overflow,I’m new to Python and am trying to install Tensorflow. However, I’m running into a ‘connection failed’ error in the Jupyter Notebook.

Is this for Windows? I have windows installed on my laptop so these steps worked for me (with python version 3):

1. to check the environments currently existing: 
conda info --envs

2. to create a environment for tensorflow:
conda create --name <environment-name> <language> = <language-version>
conda create --name py3-tf2.0 python = 3

3. to activate the environment created:
conda activate <environment-name>
conda activate py3-tf2.0

4. to install tensforflow:
conda install tensorflow

5. to upgrade tensorflow to latest version:
conda install --upgrade tensorflow

6. to install ipython kernels:
pip install ipykernel

7. to be able to use the new environment in Jupyter Notebook:
conda install -n base nb_conda_kernels
- this has to be run in base directory
- full permission are required for windows user, using which command is executed on the folder C:ProgramDataAnaconda3

Понравилась статья? Поделить с друзьями:
  • Error starting experience roblox
  • Error starting experience an error occurred trying to launch the experience please try again later
  • Error starting download tor
  • Error starting call of duty black ops adna exe
  • Error starting audio feed droidcam