# JupyterHub can't run python code. Kernel doesn't start

**URL:** <https://discourse.jupyter.org/t/jupyterhub-cant-run-python-code-kernel-doesnt-start/25068>\
**Category:** JupyterHub\
**Tags:** community, jupyterhub, help-wanted\
**Created:** [April 9, 2024, 7:41pm UTC](https://discourse.jupyter.org/t/jupyterhub-cant-run-python-code-kernel-doesnt-start/25068 "2024-04-09T19:41:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinicius-solon-silva](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/vinicius-solon-silva/32/13033_2.png) [@vinicius-solon-silva](https://discourse.jupyter.org/u/vinicius-solon-silva)\
**Post date:** [April 9, 2024, 7:41pm UTC](https://discourse.jupyter.org/t/jupyterhub-cant-run-python-code-kernel-doesnt-start/25068/1 "2024-04-09T19:41:08Z")

</div>

Hey guys.

I have a problem when trying to execute any code in Python (a simple “hello world” for example).

From what I saw, the Kernel doesn’t initialize and keeps trying to connect endlessly until it stops.

Do you know what it could be?

I installed the Hub via Helm

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/2/2c777b2754f441cdf87001d9e17a1f7750bc8da8.png)

---

<div class="post-metadata">

**Author:** ![minrk](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/minrk/32/13_2.png) [@minrk](https://discourse.jupyter.org/u/minrk)\
**Post date:** [April 17, 2024, 7:42am UTC](https://discourse.jupyter.org/t/jupyterhub-cant-run-python-code-kernel-doesnt-start/25068/2 "2024-04-17T07:42:50Z")

</div>

We generally need the logs from the jupyter server (`kubectl logs jupyter-yourusername`) and the browser console to debug things like this. If everything works except for connecting to kernels, this is almost always an issue with websocket proxying.

It’s also very helpful to share the list of package versions in your user environment (e.g. `pip freeze` or `conda list`)
