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