My notebook doesn't connect to the kernel

Hello everyone,

I have been stuck on this issue for a while now. I have been trying to use jupyter on my virtual desktop, but my notebook is not capable to connect to the kernel. I have been looking around, and I believe that it probably has to do with server configurations, etc. which are out of my control and under the administrators of the virtual desktop control.

Anyway, here’s the information I can share with you.

What happens when I launch jupyter notebook --debug :

(temperature) C:\Users\jewell>jupyter notebook --no-browser --debug
[D 18:43:53.237 NotebookApp] Searching ['C:\\Users\\jewell', 'C:\\Users\\jewell\\.jupyter', 'C:\\Users\\jewell\\Miniconda3\\envs\\temperature\\etc\\jupyter', 'C:\\ProgramData\\jupyter'] for config files
[D 18:43:53.237 NotebookApp] Looking for jupyter_config in C:\ProgramData\jupyter
[D 18:43:53.237 NotebookApp] Looking for jupyter_config in C:\Users\jewell\Miniconda3\envs\temperature\etc\jupyter
[D 18:43:53.237 NotebookApp] Looking for jupyter_config in C:\Users\jewell\.jupyter
[D 18:43:53.237 NotebookApp] Looking for jupyter_config in C:\Users\jewell
[D 18:43:53.237 NotebookApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter
[D 18:43:53.237 NotebookApp] Looking for jupyter_notebook_config in C:\Users\jewell\Miniconda3\envs\temperature\etc\jupyter
[D 18:43:53.237 NotebookApp] Looking for jupyter_notebook_config in C:\Users\jewell\.jupyter
[D 18:43:53.237 NotebookApp] Looking for jupyter_notebook_config in C:\Users\jewell
[D 18:43:54.031 NotebookApp] Terminals not available (error was No module named 'terminado')
[I 18:43:54.797 NotebookApp] Serving notebooks from local directory: C:\Users\jewell
[I 18:43:54.797 NotebookApp] 0 active kernels
[I 18:43:54.797 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=58baa740ca86bee971704e8f8dc03d869ae5e9cea27811bb
[I 18:43:54.797 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:43:54.797 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=58baa740ca86bee971704e8f8dc03d869ae5e9cea27811bb

I have created a new environment via conda (Miniconda) with the following packages :

# packages in environment at C:\Users\jewell\Miniconda3\envs\temperature:
#
# Name                    Version                   Build  Channel
attrs                     19.3.0                     py_0
backcall                  0.1.0                      py_0
bleach                    3.1.4              pyh9f0ad1d_0
ca-certificates           2020.4.5.1           hecc5488_0
certifi                   2020.4.5.1       py36h9f0ad1d_0
cffi                      1.14.0           py36ha419a9e_0
chardet                   3.0.4           py36h9f0ad1d_1006
colorama                  0.4.3                      py_0
cryptography              2.8              py36hb32ad35_1
decorator                 4.4.2                      py_0
defusedxml                0.6.0                      py_0
entrypoints               0.3             py36h9f0ad1d_1001
idna                      2.9                        py_1
importlib-metadata        1.6.0            py36h9f0ad1d_0
importlib_metadata        1.6.0                         0
ipykernel                 5.2.0            py36h5ca1d4c_1
ipython                   7.13.0           py36h9f0ad1d_2
ipython_genutils          0.2.0                      py_1
ipywidgets                7.5.1                      py_0
jedi                      0.17.0           py36h9f0ad1d_0
jinja2                    2.11.2             pyh9f0ad1d_0
json5                     0.9.0                      py_0
jsonschema                3.2.0            py36h9f0ad1d_1
jupyter_client            6.1.3                      py_0
jupyter_core              4.6.3            py36h9f0ad1d_1
jupyterlab                2.1.0                      py_0
jupyterlab_server         1.1.1                      py_0
libsodium                 1.0.17               h2fa13f4_0
markupsafe                1.1.1            py36h68a101e_1
mistune                   0.8.4           py36h68a101e_1001
nbconvert                 5.6.1            py36h9f0ad1d_1
nbformat                  5.0.4                      py_0
notebook                  4.4.1                    py36_0
openssl                   1.1.1f               hfa6e2cd_0
pandoc                    2.9.2.1                       0
pandocfilters             1.4.2                      py_1
parso                     0.7.0              pyh9f0ad1d_0
pickleshare               0.7.5           py36h9f0ad1d_1001
pip                       20.0.2                     py_2
prompt-toolkit            3.0.5                      py_0
pycparser                 2.20                       py_0
pygments                  2.6.1                      py_0
pyopenssl                 19.1.0                     py_1
pyrsistent                0.16.0           py36h68a101e_0
pysocks                   1.7.1            py36h9f0ad1d_1
python                    3.6.10          he025d50_1009_cpython
python-dateutil           2.8.1                      py_0
python_abi                3.6                     1_cp36m
pywin32                   227              py36hfa6e2cd_0
pyzmq                     19.0.0           py36ha89082f_1
requests                  2.23.0             pyh8c360ce_2
setuptools                46.1.3           py36h9f0ad1d_0
six                       1.14.0                     py_1
testpath                  0.4.4                      py_0
tornado                   6.0.4            py36hfa6e2cd_0
traitlets                 4.3.3            py36h9f0ad1d_1
urllib3                   1.25.8           py36h9f0ad1d_1
vc                        14.1                 h869be7e_1
vs2015_runtime            14.16.27012          h30e32a0_2
wcwidth                   0.1.9              pyh9f0ad1d_0
webencodings              0.5.1                      py_1
wheel                     0.34.2                     py_1
widgetsnbextension        3.5.1                    py36_0
win_inet_pton             1.1.0                    py36_0
wincertstore              0.2                   py36_1003
zeromq                    4.3.2                h6538335_2
zipp                      3.1.0                      py_0

I have the following kernel specifications. I have removed my python path to use instead the ipykernel package, as a thought this might help :

(temperature) C:\Users\jewell>jupyter kernelspec list
Available kernels:
  python3    C:\Users\jewell\Miniconda3\envs\temperature\lib\site-packages\ipykernel\resources

EDIT

I have a functioning environment when I clone the base environment from Anaconda. Jupyter then works. However, when I try to create a new environment and load only jupyter (and its dependencies), the same problem arises.

  • Problematic environment Web console

  • Functioning environment terminal output when launching jupyter (funnily calls jupyter lab --> important?)
(temperature) C:\Users\jewell>jupyter notebook
[I 12:42:24.682 NotebookApp] JupyterLab extension loaded from C:\Users\jewell\Anaconda3\envs\temperature\lib\site-packages\jupyterlab
[I 12:42:24.682 NotebookApp] JupyterLab application directory is C:\Users\jewell\Anaconda3\envs\temperature\share\jupyter\lab
[I 12:42:24.757 NotebookApp] Serving notebooks from local directory: C:\Users\jewell
[I 12:42:24.757 NotebookApp] The Jupyter Notebook is running at:
[I 12:42:24.773 NotebookApp] http://localhost:8888/?token=37941e3942674c5d27c61f15cf2a796f173cc8d1e06a3643
[I 12:42:24.773 NotebookApp]  or http://127.0.0.1:8888/?token=37941e3942674c5d27c61f15cf2a796f173cc8d1e06a3643
[I 12:42:24.773 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:42:25.007 NotebookApp]

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

Can you bring up your browser’s developer console and see if there are any warnings/errors when you try and run a notebook?

@manics I have added what you asked. Just in case, here is the list of packages I have in the cloned environment.

  • Functioning environment package list (clone from Anaconda base environment). Because it is a clone, there are many packages that I don’t need ^^
(temperature) C:\Users\jewell>conda list
# packages in environment at C:\Users\jewell\Anaconda3\envs\temperature:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
aenum                     2.2.0                      py_0
alabaster                 0.7.12                   py37_0    https://repo.anaconda.com/pkgs/main
anaconda                  2020.02                  py37_0    https://repo.anaconda.com/pkgs/main
anaconda-client           1.7.2                    py37_0    https://repo.anaconda.com/pkgs/main
anaconda-navigator        1.9.12                   py37_0    https://repo.anaconda.com/pkgs/main
anaconda-project          0.8.4                      py_0    https://repo.anaconda.com/pkgs/main
argh                      0.26.2                   py37_0    https://repo.anaconda.com/pkgs/main
asn1crypto                1.3.0                    py37_0    https://repo.anaconda.com/pkgs/main
astroid                   2.3.3                    py37_0    https://repo.anaconda.com/pkgs/main
astropy                   4.0              py37he774522_0    https://repo.anaconda.com/pkgs/main
atomicwrites              1.3.0                    py37_1    https://repo.anaconda.com/pkgs/main
attrs                     19.3.0                     py_0    https://repo.anaconda.com/pkgs/main
autopep8                  1.4.4                      py_0    https://repo.anaconda.com/pkgs/main
babel                     2.8.0                      py_0    https://repo.anaconda.com/pkgs/main
backcall                  0.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
backports                 1.0                        py_2    https://repo.anaconda.com/pkgs/main
backports.functools_lru_cache 1.6.1                      py_0    https://repo.anaconda.com/pkgs/main
backports.shutil_get_terminal_size 1.0.0                    py37_2    https://repo.anaconda.com/pkgs/main
backports.tempfile        1.0                        py_1    https://repo.anaconda.com/pkgs/main
backports.weakref         1.0.post1                  py_1    https://repo.anaconda.com/pkgs/main
bcrypt                    3.1.7            py37he774522_0    https://repo.anaconda.com/pkgs/main
beautifulsoup4            4.8.2                    py37_0    https://repo.anaconda.com/pkgs/main
bitarray                  1.2.1            py37he774522_0    https://repo.anaconda.com/pkgs/main
bkcharts                  0.2                      py37_0    https://repo.anaconda.com/pkgs/main
blas                      1.0                         mkl    https://repo.anaconda.com/pkgs/main
bleach                    3.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
blosc                     1.16.3               h7bd577a_0    https://repo.anaconda.com/pkgs/main
bokeh                     1.4.0                    py37_0    https://repo.anaconda.com/pkgs/main
boto                      2.49.0                   py37_0    https://repo.anaconda.com/pkgs/main
bottleneck                1.3.2            py37h2a96729_0    https://repo.anaconda.com/pkgs/main
bzip2                     1.0.8                he774522_0    https://repo.anaconda.com/pkgs/main
ca-certificates           2020.1.1                      0    https://repo.anaconda.com/pkgs/main
certifi                   2019.11.28               py37_0    https://repo.anaconda.com/pkgs/main
cffi                      1.14.0           py37h7a1dbc1_0    https://repo.anaconda.com/pkgs/main
chardet                   3.0.4                 py37_1003    https://repo.anaconda.com/pkgs/main
click                     7.0                      py37_0    https://repo.anaconda.com/pkgs/main
cloudpickle               1.3.0                      py_0    https://repo.anaconda.com/pkgs/main
clyent                    1.2.2                    py37_1    https://repo.anaconda.com/pkgs/main
colorama                  0.4.3                      py_0    https://repo.anaconda.com/pkgs/main
comtypes                  1.1.7                    py37_0    https://repo.anaconda.com/pkgs/main
conda-package-handling    1.6.0            py37h62dcd97_0    https://repo.anaconda.com/pkgs/main
conda-verify              3.4.2                      py_1    https://repo.anaconda.com/pkgs/main
console_shortcut          0.1.1                         4    https://repo.anaconda.com/pkgs/main
contextlib2               0.6.0.post1                py_0    https://repo.anaconda.com/pkgs/main
cryptography              2.8              py37h7a1dbc1_0    https://repo.anaconda.com/pkgs/main
curl                      7.68.0               h2a8f88b_0    https://repo.anaconda.com/pkgs/main
cycler                    0.10.0                   py37_0    https://repo.anaconda.com/pkgs/main
cython                    0.29.15          py37ha925a31_0    https://repo.anaconda.com/pkgs/main
cytoolz                   0.10.1           py37he774522_0    https://repo.anaconda.com/pkgs/main
dask                      2.11.0                     py_0    https://repo.anaconda.com/pkgs/main
dask-core                 2.11.0                     py_0    https://repo.anaconda.com/pkgs/main
dbf                       0.98.3                     py_0
decorator                 4.4.1                      py_0    https://repo.anaconda.com/pkgs/main
defusedxml                0.6.0                      py_0    https://repo.anaconda.com/pkgs/main
diff-match-patch          20181111                   py_0    https://repo.anaconda.com/pkgs/main
distributed               2.11.0                   py37_0    https://repo.anaconda.com/pkgs/main
docutils                  0.16                     py37_0    https://repo.anaconda.com/pkgs/main
entrypoints               0.3                      py37_0    https://repo.anaconda.com/pkgs/main
et_xmlfile                1.0.1                    py37_0    https://repo.anaconda.com/pkgs/main
fastcache                 1.1.0            py37he774522_0    https://repo.anaconda.com/pkgs/main
filelock                  3.0.12                     py_0    https://repo.anaconda.com/pkgs/main
flake8                    3.7.9                    py37_0    https://repo.anaconda.com/pkgs/main
flask                     1.1.1                      py_0    https://repo.anaconda.com/pkgs/main
freetype                  2.9.1                ha9979f8_1    https://repo.anaconda.com/pkgs/main
fsspec                    0.6.2                      py_0    https://repo.anaconda.com/pkgs/main
future                    0.18.2                   py37_0    https://repo.anaconda.com/pkgs/main
get_terminal_size         1.0.0                h38e98db_0    https://repo.anaconda.com/pkgs/main
gevent                    1.4.0            py37he774522_0    https://repo.anaconda.com/pkgs/main
glob2                     0.7                        py_0    https://repo.anaconda.com/pkgs/main
greenlet                  0.4.15           py37hfa6e2cd_0    https://repo.anaconda.com/pkgs/main
h5py                      2.10.0           py37h5e291fa_0    https://repo.anaconda.com/pkgs/main
hdf5                      1.10.4               h7ebc959_0    https://repo.anaconda.com/pkgs/main
heapdict                  1.0.1                      py_0    https://repo.anaconda.com/pkgs/main
html5lib                  1.0.1                    py37_0    https://repo.anaconda.com/pkgs/main
hypothesis                5.5.4                      py_0    https://repo.anaconda.com/pkgs/main
icc_rt                    2019.0.0             h0cc432a_1    https://repo.anaconda.com/pkgs/main
icu                       58.2                 ha66f8fd_1    https://repo.anaconda.com/pkgs/main
idna                      2.8                      py37_0    https://repo.anaconda.com/pkgs/main
imageio                   2.6.1                    py37_0    https://repo.anaconda.com/pkgs/main
imagesize                 1.2.0                      py_0    https://repo.anaconda.com/pkgs/main
importlib_metadata        1.5.0                    py37_0    https://repo.anaconda.com/pkgs/main
intel-openmp              2020.0                      166    https://repo.anaconda.com/pkgs/main
intervaltree              3.0.2                      py_0    https://repo.anaconda.com/pkgs/main
ipykernel                 5.1.4            py37h39e3cac_0    https://repo.anaconda.com/pkgs/main
ipython                   7.12.0           py37h5ca1d4c_0    https://repo.anaconda.com/pkgs/main
ipython_genutils          0.2.0                    py37_0    https://repo.anaconda.com/pkgs/main
ipywidgets                7.5.1                      py_0    https://repo.anaconda.com/pkgs/main
isort                     4.3.21                   py37_0    https://repo.anaconda.com/pkgs/main
itsdangerous              1.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
jdcal                     1.4.1                      py_0    https://repo.anaconda.com/pkgs/main
jedi                      0.14.1                   py37_0    https://repo.anaconda.com/pkgs/main
jinja2                    2.11.1                     py_0    https://repo.anaconda.com/pkgs/main
joblib                    0.14.1                     py_0    https://repo.anaconda.com/pkgs/main
jpeg                      9b                   hb83a4c4_2    https://repo.anaconda.com/pkgs/main
json5                     0.9.1                      py_0    https://repo.anaconda.com/pkgs/main
jsonschema                3.2.0                    py37_0    https://repo.anaconda.com/pkgs/main
jupyter                   1.0.0                    py37_7    https://repo.anaconda.com/pkgs/main
jupyter_client            5.3.4                    py37_0    https://repo.anaconda.com/pkgs/main
jupyter_console           6.1.0                      py_0    https://repo.anaconda.com/pkgs/main
jupyter_core              4.6.1                    py37_0    https://repo.anaconda.com/pkgs/main
jupyterlab                1.2.6              pyhf63ae98_0    https://repo.anaconda.com/pkgs/main
jupyterlab_server         1.0.6                      py_0    https://repo.anaconda.com/pkgs/main
keyring                   21.1.0                   py37_0    https://repo.anaconda.com/pkgs/main
kiwisolver                1.1.0            py37ha925a31_0    https://repo.anaconda.com/pkgs/main
krb5                      1.17.1               hc04afaa_0    https://repo.anaconda.com/pkgs/main
lazy-object-proxy         1.4.3            py37he774522_0    https://repo.anaconda.com/pkgs/main
libarchive                3.3.3                h0643e63_5    https://repo.anaconda.com/pkgs/main
libcurl                   7.68.0               h2a8f88b_0    https://repo.anaconda.com/pkgs/main
libiconv                  1.15                 h1df5818_7    https://repo.anaconda.com/pkgs/main
liblief                   0.9.0                ha925a31_2    https://repo.anaconda.com/pkgs/main
libpng                    1.6.37               h2a8f88b_0    https://repo.anaconda.com/pkgs/main
libsodium                 1.0.16               h9d3ae62_0    https://repo.anaconda.com/pkgs/main
libspatialindex           1.9.3                h33f27b4_0    https://repo.anaconda.com/pkgs/main
libssh2                   1.8.2                h7a1dbc1_0    https://repo.anaconda.com/pkgs/main
libtiff                   4.1.0                h56a325e_0    https://repo.anaconda.com/pkgs/main
libxml2                   2.9.9                h464c3ec_0    https://repo.anaconda.com/pkgs/main
libxslt                   1.1.33               h579f668_0    https://repo.anaconda.com/pkgs/main
llvmlite                  0.31.0           py37ha925a31_0    https://repo.anaconda.com/pkgs/main
locket                    0.2.0                    py37_1    https://repo.anaconda.com/pkgs/main
lxml                      4.5.0            py37h1350720_0    https://repo.anaconda.com/pkgs/main
lz4-c                     1.8.1.2              h2fa13f4_0    https://repo.anaconda.com/pkgs/main
lzo                       2.10                 h6df0209_2    https://repo.anaconda.com/pkgs/main
m2w64-gcc-libgfortran     5.3.0                         6    https://repo.anaconda.com/pkgs/msys2
m2w64-gcc-libs            5.3.0                         7    https://repo.anaconda.com/pkgs/msys2
m2w64-gcc-libs-core       5.3.0                         7    https://repo.anaconda.com/pkgs/msys2
m2w64-gmp                 6.1.0                         2    https://repo.anaconda.com/pkgs/msys2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    https://repo.anaconda.com/pkgs/msys2
markupsafe                1.1.1            py37he774522_0    https://repo.anaconda.com/pkgs/main
matplotlib                3.1.3                    py37_0    https://repo.anaconda.com/pkgs/main
matplotlib-base           3.1.3            py37h64f37c6_0    https://repo.anaconda.com/pkgs/main
mccabe                    0.6.1                    py37_1    https://repo.anaconda.com/pkgs/main
menuinst                  1.4.16           py37he774522_0    https://repo.anaconda.com/pkgs/main
mistune                   0.8.4            py37he774522_0    https://repo.anaconda.com/pkgs/main
mkl                       2020.0                      166    https://repo.anaconda.com/pkgs/main
mkl-service               2.3.0            py37hb782905_0    https://repo.anaconda.com/pkgs/main
mkl_fft                   1.0.15           py37h14836fe_0    https://repo.anaconda.com/pkgs/main
mkl_random                1.1.0            py37h675688f_0    https://repo.anaconda.com/pkgs/main
mock                      4.0.1                      py_0    https://repo.anaconda.com/pkgs/main
more-itertools            8.2.0                      py_0    https://repo.anaconda.com/pkgs/main
mpmath                    1.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
msgpack-python            0.6.1            py37h74a9793_1    https://repo.anaconda.com/pkgs/main
msys2-conda-epoch         20160418                      1    https://repo.anaconda.com/pkgs/msys2
multipledispatch          0.6.0                    py37_0    https://repo.anaconda.com/pkgs/main
navigator-updater         0.2.1                    py37_0    https://repo.anaconda.com/pkgs/main
nbconvert                 5.6.1                    py37_0    https://repo.anaconda.com/pkgs/main
nbformat                  5.0.4                      py_0    https://repo.anaconda.com/pkgs/main
networkx                  2.4                        py_0    https://repo.anaconda.com/pkgs/main
nltk                      3.4.5                    py37_0    https://repo.anaconda.com/pkgs/main
nose                      1.3.7                    py37_2    https://repo.anaconda.com/pkgs/main
notebook                  6.0.3                    py37_0    https://repo.anaconda.com/pkgs/main
numba                     0.48.0           py37h47e9c7a_0    https://repo.anaconda.com/pkgs/main
numexpr                   2.7.1            py37h25d0782_0    https://repo.anaconda.com/pkgs/main
numpy                     1.18.1           py37h93ca92e_0    https://repo.anaconda.com/pkgs/main
numpy-base                1.18.1           py37hc3f5095_1    https://repo.anaconda.com/pkgs/main
numpydoc                  0.9.2                      py_0    https://repo.anaconda.com/pkgs/main
olefile                   0.46                     py37_0    https://repo.anaconda.com/pkgs/main
openpyxl                  3.0.3                      py_0    https://repo.anaconda.com/pkgs/main
openssl                   1.1.1d               he774522_4    https://repo.anaconda.com/pkgs/main
packaging                 20.1                       py_0    https://repo.anaconda.com/pkgs/main
pandas                    1.0.1            py37h47e9c7a_0    https://repo.anaconda.com/pkgs/main
pandoc                    2.2.3.2                       0    https://repo.anaconda.com/pkgs/main
pandocfilters             1.4.2                    py37_1    https://repo.anaconda.com/pkgs/main
paramiko                  2.7.1                      py_0    https://repo.anaconda.com/pkgs/main
parso                     0.5.2                      py_0    https://repo.anaconda.com/pkgs/main
partd                     1.1.0                      py_0    https://repo.anaconda.com/pkgs/main
path                      13.1.0                   py37_0    https://repo.anaconda.com/pkgs/main
path.py                   12.4.0                        0    https://repo.anaconda.com/pkgs/main
pathlib2                  2.3.5                    py37_0    https://repo.anaconda.com/pkgs/main
pathtools                 0.1.2                      py_1    https://repo.anaconda.com/pkgs/main
patsy                     0.5.1                    py37_0    https://repo.anaconda.com/pkgs/main
pep8                      1.7.1                    py37_0    https://repo.anaconda.com/pkgs/main
pexpect                   4.8.0                    py37_0    https://repo.anaconda.com/pkgs/main
pickleshare               0.7.5                    py37_0    https://repo.anaconda.com/pkgs/main
pillow                    7.0.0            py37hcc1f983_0    https://repo.anaconda.com/pkgs/main
pip                       20.0.2                   py37_1    https://repo.anaconda.com/pkgs/main
pkginfo                   1.5.0.1                  py37_0    https://repo.anaconda.com/pkgs/main
pluggy                    0.13.1                   py37_0    https://repo.anaconda.com/pkgs/main
ply                       3.11                     py37_0    https://repo.anaconda.com/pkgs/main
powershell_shortcut       0.0.1                         3    https://repo.anaconda.com/pkgs/main
prometheus_client         0.7.1                      py_0    https://repo.anaconda.com/pkgs/main
prompt_toolkit            3.0.3                      py_0    https://repo.anaconda.com/pkgs/main
psutil                    5.6.7            py37he774522_0    https://repo.anaconda.com/pkgs/main
py                        1.8.1                      py_0    https://repo.anaconda.com/pkgs/main
py-lief                   0.9.0            py37ha925a31_2    https://repo.anaconda.com/pkgs/main
pycodestyle               2.5.0                    py37_0    https://repo.anaconda.com/pkgs/main
pycosat                   0.6.3            py37he774522_0    https://repo.anaconda.com/pkgs/main
pycparser                 2.19                     py37_0    https://repo.anaconda.com/pkgs/main
pycrypto                  2.6.1            py37hfa6e2cd_9    https://repo.anaconda.com/pkgs/main
pycurl                    7.43.0.5         py37h7a1dbc1_0    https://repo.anaconda.com/pkgs/main
pydocstyle                4.0.1                      py_0    https://repo.anaconda.com/pkgs/main
pyflakes                  2.1.1                    py37_0    https://repo.anaconda.com/pkgs/main
pygments                  2.5.2                      py_0    https://repo.anaconda.com/pkgs/main
pylint                    2.4.4                    py37_0    https://repo.anaconda.com/pkgs/main
pynacl                    1.3.0            py37h62dcd97_0    https://repo.anaconda.com/pkgs/main
pyodbc                    4.0.30           py37ha925a31_0    https://repo.anaconda.com/pkgs/main
pyopenssl                 19.1.0                   py37_0    https://repo.anaconda.com/pkgs/main
pyparsing                 2.4.6                      py_0    https://repo.anaconda.com/pkgs/main
pyqt                      5.9.2            py37h6538335_2    https://repo.anaconda.com/pkgs/main
pyreadline                2.1                      py37_1    https://repo.anaconda.com/pkgs/main
pyrsistent                0.15.7           py37he774522_0    https://repo.anaconda.com/pkgs/main
pysocks                   1.7.1                    py37_0    https://repo.anaconda.com/pkgs/main
pytables                  3.6.1            py37h1da0976_0    https://repo.anaconda.com/pkgs/main
pytest                    5.3.5                    py37_0    https://repo.anaconda.com/pkgs/main
pytest-arraydiff          0.3              py37h39e3cac_0    https://repo.anaconda.com/pkgs/main
pytest-astropy            0.8.0                      py_0    https://repo.anaconda.com/pkgs/main
pytest-astropy-header     0.1.2                      py_0    https://repo.anaconda.com/pkgs/main
pytest-doctestplus        0.5.0                      py_0    https://repo.anaconda.com/pkgs/main
pytest-openfiles          0.4.0                      py_0    https://repo.anaconda.com/pkgs/main
pytest-remotedata         0.3.2                    py37_0    https://repo.anaconda.com/pkgs/main
python                    3.7.6                h60c2a47_2    https://repo.anaconda.com/pkgs/main
python-dateutil           2.8.1                      py_0    https://repo.anaconda.com/pkgs/main
python-jsonrpc-server     0.3.4                      py_0    https://repo.anaconda.com/pkgs/main
python-language-server    0.31.7                   py37_0    https://repo.anaconda.com/pkgs/main
python-libarchive-c       2.8                     py37_13    https://repo.anaconda.com/pkgs/main
python_abi                3.7                     1_cp37m
pytz                      2019.3                     py_0    https://repo.anaconda.com/pkgs/main
pywavelets                1.1.1            py37he774522_0    https://repo.anaconda.com/pkgs/main
pywin32                   227              py37he774522_1    https://repo.anaconda.com/pkgs/main
pywin32-ctypes            0.2.0                 py37_1000    https://repo.anaconda.com/pkgs/main
pywinpty                  0.5.7                    py37_0    https://repo.anaconda.com/pkgs/main
pyyaml                    5.3              py37he774522_0    https://repo.anaconda.com/pkgs/main
pyzmq                     18.1.1           py37ha925a31_0    https://repo.anaconda.com/pkgs/main
qdarkstyle                2.8                        py_0    https://repo.anaconda.com/pkgs/main
qt                        5.9.7            vc14h73c81de_0    https://repo.anaconda.com/pkgs/main
qtawesome                 0.6.1                      py_0    https://repo.anaconda.com/pkgs/main
qtconsole                 4.6.0                      py_1    https://repo.anaconda.com/pkgs/main
qtpy                      1.9.0                      py_0    https://repo.anaconda.com/pkgs/main
requests                  2.22.0                   py37_1    https://repo.anaconda.com/pkgs/main
rope                      0.16.0                     py_0    https://repo.anaconda.com/pkgs/main
rtree                     0.9.3            py37h21ff451_0    https://repo.anaconda.com/pkgs/main
ruamel_yaml               0.15.87          py37he774522_0    https://repo.anaconda.com/pkgs/main
scikit-image              0.16.2           py37h47e9c7a_0    https://repo.anaconda.com/pkgs/main
scikit-learn              0.22.1           py37h6288b17_0    https://repo.anaconda.com/pkgs/main
scipy                     1.4.1            py37h9439919_0    https://repo.anaconda.com/pkgs/main
seaborn                   0.10.0                     py_0    https://repo.anaconda.com/pkgs/main
send2trash                1.5.0                    py37_0    https://repo.anaconda.com/pkgs/main
setuptools                45.2.0                   py37_0    https://repo.anaconda.com/pkgs/main
simplegeneric             0.8.1                    py37_2    https://repo.anaconda.com/pkgs/main
singledispatch            3.4.0.3                  py37_0    https://repo.anaconda.com/pkgs/main
sip                       4.19.8           py37h6538335_0    https://repo.anaconda.com/pkgs/main
six                       1.14.0                   py37_0    https://repo.anaconda.com/pkgs/main
snappy                    1.1.7                h777316e_3    https://repo.anaconda.com/pkgs/main
snowballstemmer           2.0.0                      py_0    https://repo.anaconda.com/pkgs/main
sortedcollections         1.1.2                    py37_0    https://repo.anaconda.com/pkgs/main
sortedcontainers          2.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
soupsieve                 1.9.5                    py37_0    https://repo.anaconda.com/pkgs/main
sphinx                    2.4.0                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib             1.0                      py37_1    https://repo.anaconda.com/pkgs/main
sphinxcontrib-applehelp   1.0.1                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib-devhelp     1.0.1                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib-htmlhelp    1.0.2                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib-jsmath      1.0.1                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib-qthelp      1.0.2                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib-serializinghtml 1.1.3                      py_0    https://repo.anaconda.com/pkgs/main
sphinxcontrib-websupport  1.2.0                      py_0    https://repo.anaconda.com/pkgs/main
spyder                    4.0.1                    py37_0    https://repo.anaconda.com/pkgs/main
spyder-kernels            1.8.1                    py37_0    https://repo.anaconda.com/pkgs/main
sqlalchemy                1.3.13           py37he774522_0    https://repo.anaconda.com/pkgs/main
sqlite                    3.31.1               he774522_0    https://repo.anaconda.com/pkgs/main
statsmodels               0.11.0           py37he774522_0    https://repo.anaconda.com/pkgs/main
sympy                     1.5.1                    py37_0    https://repo.anaconda.com/pkgs/main
tbb                       2020.0               h74a9793_0    https://repo.anaconda.com/pkgs/main
tblib                     1.6.0                      py_0    https://repo.anaconda.com/pkgs/main
terminado                 0.8.3                    py37_0    https://repo.anaconda.com/pkgs/main
testpath                  0.4.4                      py_0    https://repo.anaconda.com/pkgs/main
tk                        8.6.8                hfa6e2cd_0    https://repo.anaconda.com/pkgs/main
toolz                     0.10.0                     py_0    https://repo.anaconda.com/pkgs/main
tornado                   6.0.3            py37he774522_3    https://repo.anaconda.com/pkgs/main
tqdm                      4.42.1                     py_0    https://repo.anaconda.com/pkgs/main
traitlets                 4.3.3                    py37_0    https://repo.anaconda.com/pkgs/main
ujson                     1.35             py37hfa6e2cd_0    https://repo.anaconda.com/pkgs/main
unicodecsv                0.14.1                   py37_0    https://repo.anaconda.com/pkgs/main
urllib3                   1.25.8                   py37_0    https://repo.anaconda.com/pkgs/main
vc                        14.1                 h0510ff6_4    https://repo.anaconda.com/pkgs/main
vs2015_runtime            14.16.27012          hf0eaf9b_1    https://repo.anaconda.com/pkgs/main
watchdog                  0.10.2                   py37_0    https://repo.anaconda.com/pkgs/main
wcwidth                   0.1.8                      py_0    https://repo.anaconda.com/pkgs/main
webencodings              0.5.1                    py37_1    https://repo.anaconda.com/pkgs/main
werkzeug                  1.0.0                      py_0    https://repo.anaconda.com/pkgs/main
wheel                     0.34.2                   py37_0    https://repo.anaconda.com/pkgs/main
widgetsnbextension        3.5.1                    py37_0    https://repo.anaconda.com/pkgs/main
win_inet_pton             1.1.0                    py37_0    https://repo.anaconda.com/pkgs/main
win_unicode_console       0.5                      py37_0    https://repo.anaconda.com/pkgs/main
wincertstore              0.2                      py37_0    https://repo.anaconda.com/pkgs/main
winpty                    0.4.3                         4    https://repo.anaconda.com/pkgs/main
wrapt                     1.11.2           py37he774522_0    https://repo.anaconda.com/pkgs/main
xlrd                      1.2.0                    py37_0    https://repo.anaconda.com/pkgs/main
xlsxwriter                1.2.7                      py_0    https://repo.anaconda.com/pkgs/main
xlwings                   0.17.1                   py37_0    https://repo.anaconda.com/pkgs/main
xlwt                      1.3.0                    py37_0    https://repo.anaconda.com/pkgs/main
xmltodict                 0.12.0                     py_0    https://repo.anaconda.com/pkgs/main
xz                        5.2.4                h2fa13f4_4    https://repo.anaconda.com/pkgs/main
yaml                      0.1.7                hc54c509_2    https://repo.anaconda.com/pkgs/main
yapf                      0.28.0                     py_0    https://repo.anaconda.com/pkgs/main
zeromq                    4.3.1                h33f27b4_3    https://repo.anaconda.com/pkgs/main
zict                      1.0.0                      py_0    https://repo.anaconda.com/pkgs/main
zipp                      2.2.0                      py_0    https://repo.anaconda.com/pkgs/main
zlib                      1.2.11               h62dcd97_3    https://repo.anaconda.com/pkgs/main
zstd                      1.3.7                h508b16e_0    https://repo.anaconda.com/pkgs/main

One thing that stands out is you’ve got a very old version of notebook, 4.4.1, in your temperature conda environment. Could you try upgrading it?

1 Like

@manics Thank you very much! This was the solution indeed :slight_smile: I tried unsuccessfully conda update notebook, but then I tried conda install notebook=6 which worked out. Again, thank you very much :slight_smile:

Here’s my list of packages :

(test) C:\Users\jewell>conda list
# packages in environment at C:\Users\jewell\Anaconda3\envs\test:
#
# Name                    Version                   Build  Channel
attrs                     19.3.0                     py_0
backcall                  0.1.0                      py_0
blas                      1.1                    openblas
bleach                    3.1.4              pyh9f0ad1d_0
ca-certificates           2020.4.5.1           hecc5488_0
certifi                   2020.4.5.1       py36h9f0ad1d_0
clangdev                  5.0.0                   flang_3  [flang]
colorama                  0.4.3                      py_0
decorator                 4.4.2                      py_0
defusedxml                0.6.0                      py_0
entrypoints               0.3             py36h9f0ad1d_1001
icu                       64.2                 he025d50_1
importlib-metadata        1.6.0            py36h9f0ad1d_0
importlib_metadata        1.6.0                         0
ipykernel                 5.2.1            py36h5ca1d4c_0
ipython                   7.13.0           py36h9f0ad1d_2
ipython_genutils          0.2.0                      py_1
ipywidgets                7.5.1                      py_0
jedi                      0.17.0           py36h9f0ad1d_0
jinja2                    2.11.2             pyh9f0ad1d_0
jpeg                      9c                hfa6e2cd_1001
jsonschema                3.2.0            py36h9f0ad1d_1
jupyter                   1.0.0                      py_2
jupyter_client            6.1.3                      py_0
jupyter_console           6.1.0                      py_1
jupyter_core              4.6.3            py36h9f0ad1d_1
libclang                  9.0.1           default_hf44288c_0
libflang                  5.0.0           h6538335_20180525
libpng                    1.6.37               hfe6a214_1
libsodium                 1.0.17               h2fa13f4_0
markupsafe                1.1.1            py36h68a101e_1
mistune                   0.8.4           py36h68a101e_1001
nbconvert                 5.6.1            py36h9f0ad1d_1
nbformat                  5.0.6                      py_0
notebook                  6.0.3                    py36_0
numpy                     1.15.4          py36_blas_openblash442142e_1000  [blas_openblas]
openblas                  0.3.3             h535eed3_1001
openmp                    5.0.0                    vc14_0
openssl                   1.1.1g               he774522_0
pandas                    1.0.3            py36hcc50265_1
pandoc                    2.9.2.1                       0
pandocfilters             1.4.2                      py_1
parso                     0.7.0              pyh9f0ad1d_0
pickleshare               0.7.5           py36h9f0ad1d_1001
pip                       20.0.2                     py_2
prometheus_client         0.7.1                      py_0
prompt-toolkit            3.0.5                      py_0
prompt_toolkit            3.0.5                         0
pygments                  2.6.1                      py_0
pyqt                      5.12.3           py36h6538335_1
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyrsistent                0.16.0           py36h68a101e_0
python                    3.6.10          he025d50_1009_cpython
python-dateutil           2.8.1                      py_0
python_abi                3.6                     1_cp36m
pytz                      2019.3                     py_0
pywin32                   227              py36hfa6e2cd_0
pywinpty                  0.5                      py36_1
pyzmq                     19.0.0           py36ha89082f_1
qt                        5.12.5               h7ef1ec2_0
qtconsole                 4.7.3              pyh9f0ad1d_0
qtpy                      1.9.0                      py_0
send2trash                1.5.0                      py_0
setuptools                46.1.3           py36h9f0ad1d_0
six                       1.14.0                     py_1
sqlite                    3.30.1               hfa6e2cd_0
terminado                 0.8.3            py36h9f0ad1d_1
testpath                  0.4.4                      py_0
tornado                   6.0.4            py36hfa6e2cd_0
traitlets                 4.3.3            py36h9f0ad1d_1
vc                        14.1                 h869be7e_1
vs2015_runtime            14.16.27012          h30e32a0_2
wcwidth                   0.1.9              pyh9f0ad1d_0
webencodings              0.5.1                      py_1
wheel                     0.34.2                     py_1
widgetsnbextension        3.5.1                    py36_0
wincertstore              0.2                   py36_1003
winpty                    0.4.3                         4
zeromq                    4.3.2                h6538335_2
zipp                      3.1.0                      py_0
zlib                      1.2.11            h2fa13f4_1006

It seems that after eight months this issue is still alive.

In my case, I created a new virtual environment but I did not want to install Jupyter notebook again via conda install -c conda-forge notebook, so when I opened the notebook did not work in this environment.

After reading this discussion I used conda install notebook=6.1.4, which was the version used in another virtual environment that I have, and it worked!.

However, I was wondering if every single virtual environment needs this installation.
I found some discussions about this but nothing concrete, or it did not work for me in the same way that for others.

Anyways, thank you guys for starting this discussion.

I am also facing same issue: websocket connection error: My jupyterhub is in ec2 linux server and when try to open notebook in browser I get ‘connecting to kernel failed’


Also uploading the pip packages:
pip list --local
Package Version


adtlogger 2.0
alembic 1.3.2
argon2-cffi 20.1.0
async-generator 1.10
attrs 19.3.0
autovizwidget 0.17.1
aws-cfn-bootstrap 2.0
backcall 0.1.0
balia 2.7
beautifulsoup4 4.8.1
bleach 3.1.0
boto 2.49.0
boto3 1.10.46
botocore 1.13.50
Brotli 1.0.9
cached-property 1.5.2
certifi 2019.11.28
certipy 0.1.3
cffi 1.13.2
chardet 3.0.4
chart-studio 1.0.0
click 7.1.2
colorama 0.4.1
colorlog 4.6.2
colorlover 0.3.0
confuse 1.3.0
cramjam 2.3.2
crypto 1.4.1
cryptography 2.8
cufflinks 0.17.0
cycler 0.10.0
dash 1.17.0
dash-bootstrap-components 0.11.0
dash-core-components 1.13.0
dash-html-components 1.1.1
dash-renderer 1.8.3
dash-table 4.11.0
decorator 4.4.1
defusedxml 0.6.0
diversipy 0.8
dnf 0.0.1
docutils 0.15.2
entrypoints 0.3
fancycompleter 0.9.1
fastparquet 0.7.0
Flask 1.1.2
Flask-Compress 1.8.0
fsspec 0.7.4
future 0.18.2
ge-toolbox 2.5
gitdb2 2.0.6
githubcommit 0.1.0
GitPython 3.0.5
h2o 3.30.0.2
h5py 3.2.1
hdijupyterutils 0.17.1
htmlmin 0.1.12
idna 2.8
ImageHash 4.1.0
importlib-metadata 1.3.0
ipykernel 5.1.3
ipynb 0.5.1
ipython 7.11.1
ipython-genutils 0.2.0
ipywidgets 7.5.1
itsdangerous 1.1.0
jedi 0.15.2
Jinja2 2.11.2
jmespath 0.9.4
joblib 0.14.1
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.1.7
jupyter-console 6.2.0
jupyter-core 4.6.3
jupyter-telemetry 0.1.0
jupyterhub 1.4.0.dev0
jupyterlab-pygments 0.1.2
kiwisolver 1.3.1
lark-parser 0.5.6
livy 0.8.0
lockfile 0.11.0
lxml 4.4.1
Mako 1.1.0
Markdown 3.1.1
MarkupSafe 1.1.1
matplotlib 3.2.0
mistune 0.8.4
mock 4.0.2
more-itertools 8.0.2
mpld3 0.3
mpmath 1.1.0
multipledispatch 0.6.0
mysqlclient 1.4.2
Naked 0.1.31
nbclient 0.5.1
nbconvert 5.6.1
nbformat 4.4.0
nest-asyncio 1.4.3
networkx 2.5
nltk 3.4.5
nose 1.3.4
notebook 6.0.3
numexpr 2.7.1
numpy 1.19.4
oauthenticator 0.10.0
oauthlib 3.1.0
packaging 19.2
pamela 1.0.0
pandas 1.3.0
pandoc 1.0.2
pandocfilters 1.4.2
parso 0.5.2
patsy 0.5.1
pexpect 4.7.0
pickleshare 0.7.5
Pillow 8.0.1
pip 21.0
plotly 4.14.3
plotly-express 0.4.1
pluggy 0.13.1
ply 3.11
prometheus-client 0.7.1
prompt-toolkit 3.0.2
protobuf 3.11.2
psutil 5.7.3
ptyprocess 0.6.0
py 1.8.1
py-dateutil 2.2
py4j 0.10.9
pyarrow 4.0.1
pyasn1 0.4.8
pycparser 2.19
pycrypto 2.6.1
pycryptodome 3.10.1
pyDOE2 1.1.2
Pygments 2.5.2
PyHive 0.6.1
pykerberos 1.2.1
pyodbc 4.0.32
pyOpenSSL 19.1.0
pyparsing 2.4.6
PyPDF2 1.26.0
pyrepl 0.9.0
pyrsistent 0.15.6
pyspark 3.0.1
pystache 0.5.4
pytest 5.4.1
pytest-runner 5.2
python-daemon 2.2.3
python-dateutil 2.8.1
python-editor 1.0.4
python-json-logger 2.0.1
python37-sagemaker-pyspark 1.2.6
pytz 2019.3
PyWavelets 1.1.1
PyYAML 5.3.1
pyzmq 18.1.1
qtconsole 4.6.0
requests 2.25.0
requests-kerberos 0.12.0
retrying 1.3.3
rise 5.6.0
rsa 3.4.2
ruamel.yaml 0.16.5
ruamel.yaml.clib 0.2.0
s3fs 0.4.0
s3transfer 0.2.1
scikit-learn 0.22.1
scipy 1.5.4
scons 3.1.2
seaborn 0.11.0
semtk-python3 0.0.1
Send2Trash 1.5.0
setuptools 49.1.3
shellescape 3.8.1
simplejson 3.2.0
six 1.14.0
smart-open 1.9.0
smartopen 0.2
smmap2 2.0.5
snowballstemmer 2.0.0
soupsieve 1.9.4
sparkmagic 0.17.1
SQLAlchemy 1.3.12
statsmodels 0.10.2
sympy 1.5
synedix 1.2.4
tables 3.6.1
tabulate 0.8.7
tangled-up-in-unicode 0.0.6
teds 2.0
teds-aeo 2.0.0
teds-balancingtool 1.0.0
teds-core 1.0.2
teds-gte-combustionlab 20.2
teds-ste-liquidfuel 0.0.1
teds-ste-operability 0.0.3
terminado 0.8.3
testpath 0.4.4
thrift 0.13.0
toolz 0.10.0
tornado 6.0.3
tqdm 4.51.0
traitlets 4.3.3
urllib3 1.25.7
visions 0.5.0
wcwidth 0.1.8
webencodings 0.5.1
Werkzeug 1.0.1
wheel 0.36.2
widgetsnbextension 3.5.1
windmill 1.6
zipp 3.4.0

jupyter notebook --no-browser --debug
[D 11:27:02.758 NotebookApp] Searching [’/mnt/jupyterhub’, ‘/root/.jupyter’, ‘/usr/etc/jupyter’, ‘/usr/local/etc/jupyter’, ‘/etc/jupyter’] for config files
[D 11:27:02.758 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /usr/etc/jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /root/.jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /mnt/jupyterhub
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /usr/etc/jupyter
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter
[D 11:27:02.761 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.json
[D 11:27:02.761 NotebookApp] Looking for jupyter_notebook_config in /mnt/jupyterhub
[D 11:27:02.762 NotebookApp] Raising open file limit: soft 1024->4096; hard 4096->4096
[D 11:27:02.766 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 11:27:02.766 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 11:27:02.767 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/etc/jupyter/jupyter_notebook_config.json
[D 11:27:02.767 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/root/.jupyter/jupyter_notebook_config.json
[I 11:27:04.000 NotebookApp] sparkmagic extension enabled!
[C 11:27:04.001 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
[D 11:27:04.001 NotebookApp] Exiting application: jupyter-notebook