# "Connection to the notebook server could not be established........"

**URL:** <https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263>\
**Category:** Kernels\
**Created:** [August 5, 2021, 4:22am UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263 "2021-08-05T04:22:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://discourse.jupyter.org/u/Shaz)\
**Post date:** [August 5, 2021, 4:22am UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/1 "2021-08-05T04:22:22Z")

</div>

Hi guys, i am trying to open the d2l notebook for but kernel does not connect.

I uninstalled and reinstalled everything but getting same error again.

Please if somebody can help …i am mentioning details below plz

---

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://discourse.jupyter.org/u/Shaz)\
**Post date:** [August 5, 2021, 4:25am UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/2 "2021-08-05T04:25:44Z")

</div>

```
.................................................details are mentioned below.............................................
```

---

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://discourse.jupyter.org/u/Shaz)\
**Post date:** [August 5, 2021, 4:27am UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/3 "2021-08-05T04:27:21Z")

</div>

On notebook page i get this error : “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.”

---

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://discourse.jupyter.org/u/Shaz)\
**Post date:** [August 5, 2021, 8:57pm UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/4 "2021-08-05T20:57:59Z")

</div>

RESOLVED:

I tried reserching some more on this error and found a very helpful advice from [Jupyter Notebook Kernel Not Connecting: Connection Failed · Issue #5024 · jupyter/notebook · GitHub](https://github.com/jupyter/notebook/issues/5024) which suggested to find the most common error type in the traceback messages on terminal. Upon checking my terminal i found out the following error:

“ImportError: DLL load failed while importing win32api: The specified module could not be found.”

Further googling i found this page relevant to this error

> <https://stackoverflow.com/questions/58612306/how-to-fix-importerror-dll-load-failed-while-importing-win32api>

which suggested to install pywin32 using the following command relevant for conda environment as i am using conda enviroment:

conda install pywin32

and when tried to launch the notebook again from terminal, lo and behold it connected instantaneously…Hurray!!!

---

<div class="post-metadata">

**Author:** ![JohnM](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JohnM](https://discourse.jupyter.org/u/JohnM)\
**Post date:** [October 14, 2022, 1:20am UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/5 "2022-10-14T01:20:09Z")

</div>

Worked for me, too! Thanks.  
The message said pywin32 was already installed, but seemed to work after I ran the command.

---

<div class="post-metadata">

**Author:** ![Eli\_h](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/eli_h/32/9651_2.png) [@Eli\_h](https://discourse.jupyter.org/u/Eli_h)\
**Post date:** [April 14, 2023, 4:30pm UTC](https://discourse.jupyter.org/t/connection-to-the-notebook-server-could-not-be-established/10263/6 "2023-04-14T16:30:08Z")

</div>

Thank you, worked for me too!
