jupyter / jupyter/notebook

A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.

Open
#5,945 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Could perhaps anyone help me with this error: I have created a new virtual env (text_env) and then installed ipykernel in the anaconda prompt to create a link with Jupiter. now sure what i did wrong but now the new v env appears in the dropdown list of jupyter, however when i try to start a new project i always receive the same error message as it cannot connect to the kernel.

(text_env) C:\Users\tomaseld>pip list
Package Version
----------------------------- -------------------
absl-py 0.11.0
aiohttp 3.7.3
argon2-cffi 20.1.0
astor 0.8.1
astroid 2.4.2
astunparse 1.6.3
async-generator 1.10
async-timeout 3.0.1
attrs 20.3.0
backports.functools-lru-cache 1.6.1
bleach 3.2.1
blis 0.7.4
boto 2.49.0
boto3 1.16.35
botocore 1.19.35
brotlipy 0.7.0
bz2file 0.98
cached-property 1.5.1
cachetools 4.1.1
catalogue 1.0.0
certifi 2020.12.5
cffi 1.14.4
chardet 3.0.4
click 7.1.2
colorama 0.4.4
cryptography 3.3.1
cymem 2.0.5
Cython 0.29.14
decorator 4.4.2
defusedxml 0.6.0
entrypoints 0.3
Flask 1.1.2
Flask-SQLAlchemy 2.4.4
gast 0.3.3
gensim 3.8.3
google-api-core 1.22.2
google-auth 1.23.0
google-auth-oauthlib 0.4.2
google-cloud-core 1.4.4
google-cloud-storage 1.19.0
google-crc32c 1.0.0
google-pasta 0.2.0
google-resumable-media 1.1.0
googleapis-common-protos 1.52.0
grpcio 1.34.0
h5py 2.10.0
html5lib 1.0b8
idna 2.10
importlib-metadata 3.1.1
ipykernel 5.4.2
ipython 5.8.0
ipython-genutils 0.2.0
ipywidgets 7.5.1
isort 5.7.0
itsdangerous 1.1.0
Jinja2 2.11.2
jmespath 0.10.0
joblib 0.17.0
jsonschema 3.2.0
jupyter-client 6.1.7
jupyter-console 5.2.0
jupyter-core 4.7.0
jupyterlab-pygments 0.1.2
Keras 2.3.1
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.2
lazy-object-proxy 1.4.3
Mako 1.1.3
Markdown 3.3.3
MarkupSafe 1.1.1
mccabe 0.6.1
mistune 0.8.4
multidict 4.7.5
murmurhash 1.0.5
nbclient 0.5.1
nbconvert 6.0.7
nbformat 5.0.8
nest-asyncio 1.4.3
notebook 6.1.5
numpy 1.18.5
oauthlib 3.1.0
opt-einsum 3.3.0
packaging 20.8
pandocfilters 1.4.2
pickleshare 0.7.5
pip 20.3.1
plac 1.1.3
preshed 3.0.5
prometheus-client 0.9.0
prompt-toolkit 1.0.15
protobuf 3.14.0
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.20
Pygments 2.7.3
pygpu 0.7.6
pylint 2.6.0
pyOpenSSL 20.0.0
pyparsing 2.4.7
PyQt5 5.12.3
PyQt5-sip 4.19.18
PyQtChart 5.12
PyQtWebEngine 5.12.1
pyreadline 2.1
pyrsistent 0.17.3
PySocks 1.7.1
python-dateutil 2.8.1
pytz 2020.4
pywin32 228
pywinpty 0.5.7
PyYAML 5.3.1
pyzmq 20.0.0
qtconsole 5.0.1
QtPy 1.9.0
requests 2.25.0
requests-oauthlib 1.3.0
rsa 4.6
s3transfer 0.3.3
scikit-learn 0.23.2
scipy 1.5.3
Send2Trash 1.5.0
setuptools 49.6.0.post20201009
simplegeneric 0.8.1
six 1.15.0
smart-open 4.0.1
spacy 2.3.4
SQLAlchemy 1.3.22
srsly 1.0.5
tensorboard 2.4.0
tensorboard-plugin-wit 1.7.0
tensorflow 2.3.1
tensorflow-estimator 2.3.0
termcolor 1.1.0
terminado 0.9.1
testpath 0.4.4
Theano 1.0.5
thinc 7.4.4
threadpoolctl 2.1.0
toml 0.10.2
tornado 6.1
tqdm 4.54.1
traitlets 5.0.5
typed-ast 1.4.2
typing-extensions 3.7.4.3
urllib3 1.25.11
wasabi 0.8.0
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 1.0.1
wheel 0.36.1
widgetsnbextension 3.5.1
win-inet-pton 1.1.0
wincertstore 0.2
wrapt 1.11.2
yarl 1.6.3
zipp 3.4.0

(text_env) C:\Users\tomaseld>pip install --user ipykernel
Requirement already satisfied: ipykernel in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (5.4.2)
Requirement already satisfied: traitlets>=4.1.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (5.0.5)
Requirement already satisfied: tornado>=4.2 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (6.1)
Requirement already satisfied: ipython>=5.0.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (5.8.0)
Requirement already satisfied: jupyter-client in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (6.1.7)
Requirement already satisfied: traitlets>=4.1.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (5.0.5)
Requirement already satisfied: pygments in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (2.7.3)
Requirement already satisfied: colorama in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (0.4.4)
Requirement already satisfied: setuptools>=18.5 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (49.6.0.post20201009)
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.4 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (1.0.15)
Requirement already satisfied: simplegeneric>0.8 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (0.8.1)
Requirement already satisfied: decorator in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (4.4.2)
Requirement already satisfied: pickleshare in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipython>=5.0.0->ipykernel) (0.7.5)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from jupyter-client->ipykernel) (2.8.1)
Requirement already satisfied: traitlets>=4.1.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (5.0.5)
Requirement already satisfied: pyzmq>=13 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from jupyter-client->ipykernel) (20.0.0)
Requirement already satisfied: jupyter-core>=4.6.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from jupyter-client->ipykernel) (4.7.0)
Requirement already satisfied: tornado>=4.2 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (6.1)
Requirement already satisfied: pywin32>=1.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from jupyter-core>=4.6.0->jupyter-client->ipykernel) (228)
Requirement already satisfied: traitlets>=4.1.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from ipykernel) (5.0.5)
Requirement already satisfied: six>=1.9.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from prompt-toolkit<2.0.0,>=1.0.4->ipython>=5.0.0->ipykernel) (1.15.0)
Requirement already satisfied: wcwidth in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from prompt-toolkit<2.0.0,>=1.0.4->ipython>=5.0.0->ipykernel) (0.2.5)
Requirement already satisfied: six>=1.9.0 in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from prompt-toolkit<2.0.0,>=1.0.4->ipython>=5.0.0->ipykernel) (1.15.0)
Requirement already satisfied: ipython-genutils in c:\users\tomaseld\.conda\envs\text_env\lib\site-packages (from traitlets>=4.1.0->ipykernel) (0.2.0)

(text_env) C:\Users\tomaseld>python -m ipykernel install --user --name=text_env
Installed kernelspec text_env in C:\Users\tomaseld\AppData\Roaming\jupyter\kernels\text_env

(text_env) C:\Users\tomaseld>jupyter kernelspec list
Available kernels:
text_env C:\Users\tomaseld\AppData\Roaming\jupyter\kernels\text_env
python3 C:\Users\tomaseld\.conda\envs\text_env\share\jupyter\kernels\python3

Contributor guide

Open the contributing guide

Research direction

The report names no repository file, test, or entry point. Start by reproducing the connection failure with the text_env kernel and inspect the notebook server and kernel configuration described in the report. A completed change and its validation are not specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.