JupyterLab Notebook crashing Home Assistant

I have used JupyterLab Notebook with Pyscript successfully before. That was back when I had HA on a Pi4. I have since moved to a HA Yellow. My installation is Supervised

I tried to use this for the first time in a while with a connection to the hass-pyscript kernel. I do this from a windows laptop running chrome.

Any time I attempted to run python code using this kernel, I lose all connection to Home Assistant and it looks to all intents and purposes that it has crashed. I have to manually repower the Yellow to get HA back up.

I have copied some of the log from the command window on my lptop and this is below:

hass_pyscript_kernel: control_port connected to jupyter client; now trying pyscript kernel at homeassistant:50333
hass_pyscript_kernel: iopub_port pyscript kernel connected at homeassistant:50331
hass_pyscript_kernel: shell_port pyscript kernel connected at homeassistant:50335
hass_pyscript_kernel: control_port pyscript kernel connected at homeassistant:50333
hass_pyscript_kernel: stdin_port pyscript kernel connected at homeassistant:50334
hass_pyscript_kernel: stdin_port client_connected got exception [WinError 1225] The remote computer refused the network connection; Traceback (most recent call last):
  File "C:\Users\markw\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 594, in finish_connect
    ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

hass_pyscript_kernel: stdin_port client_connected got exception [WinError 1225] The remote computer refused the network connection; Traceback (most recent call last):
  File "C:\Users\markw\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 594, in finish_connect
    ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

hass_pyscript_kernel: shell_port client_connected got exception [WinError 1225] The remote computer refused the network connection; Traceback (most recent call last):
  File "C:\Users\markw\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 594, in finish_connect
    ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

hass_pyscript_kernel: stdin_port pyscript kernel connected at homeassistant:50329
hass_pyscript_kernel: control_port pyscript kernel connected at homeassistant:50328
hass_pyscript_kernel: shell_port pyscript kernel connected at homeassistant:50330
hass_pyscript_kernel: shell_port pyscript kernel connected at homeassistant:50330
hass_pyscript_kernel: control_port pyscript kernel connected at homeassistant:50328
hass_pyscript_kernel: shell_port pyscript kernel connected at homeassistant:50330
hass_pyscript_kernel: control_port pyscript kernel connected at homeassistant:50333


hass_pyscript_kernel: shell_port client_connected got exception [WinError 1225] The remote computer refused the network connection; Traceback (most recent call last):
  File "C:\Users\markw\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 594, in finish_connect
    ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

hass_pyscript_kernel: iopub_port client_connected got exception [WinError 1225] The remote computer refused the network connection; Traceback (most recent call last):
  File "C:\Users\markw\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 594, in finish_connect
    ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

[W 2025-01-13 15:45:49.811 ServerApp] Nudge: attempt 10 on kernel 05296cd9-1345-4850-b356-ef1dcc3d513a
[W 2025-01-13 15:45:54.806 ServerApp] Nudge: attempt 20 on kernel 05296cd9-1345-4850-b356-ef1dcc3d513a
[W 2025-01-13 15:45:59.858 ServerApp] Nudge: attempt 30 on kernel 05296cd9-1345-4850-b356-ef1dcc3d513a
[W 2025-01-13 15:46:04.974 ServerApp] Nudge: attempt 40 on kernel 05296cd9-1345-4850-b356-ef1dcc3d513a
[W 2025-01-13 15:46:10.031 ServerApp] Nudge: attempt 50 on kernel 05296cd9-1345-4850-b356-ef1dcc3d513a
hass_pyscript_kernel: shell_port connected to jupyter client; now trying pyscript kernel at homeassistant:50326
hass_pyscript_kernel: stdin_port connected to jupyter client; now trying pyscript kernel at homeassistant:50324
hass_pyscript_kernel: stdin_port pyscript kernel connected at homeassistant:50324
hass_pyscript_kernel: shell_port pyscript kernel connected at homeassistant:50326
[W 2025-01-13 15:46:15.131 ServerApp] Nudge: attempt 60 on kernel 05296cd9-1345-4850-b356-ef1dcc3d513a
hass_pyscript_kernel: shell_port connected to jupyter client; now trying pyscript kernel at homeassistant:50330
hass_pyscript_kernel: shell_port pyscript kernel connected at homeassistant:50330
hass_pyscript_kernel: iopub_port c2k: read EOF; shutdown with exit_status=0
hass_pyscript_kernel: iopub_port shutting down connections (exit_status=0)
hass_pyscript_kernel: shell_port c2k: read EOF; shutdown with exit_status=0
hass_pyscript_kernel: control_port c2k: read EOF; shutdown with exit_status=0
hass_pyscript_kernel: stdin_port c2k: read EOF; shutdown with exit_status=0
hass_pyscript_kernel: shell_port shutting down connections (exit_status=0)
hass_pyscript_kernel: control_port shutting down connections (exit_status=0)
hass_pyscript_kernel: stdin_port shutting down connections (exit_status=0)
hass_pyscript_kernel: iopub_port connected to jupyter client; now trying pyscript kernel at homeassistant:50325
hass_pyscript_kernel: iopub_port pyscript kernel connected at homeassistant:50325

The supervisor logs from that time are also below:

2025-01-13 15:44:44.871 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_core_zwave_js application
2025-01-13 15:44:45.610 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-zwave_js with version 0.9.0
2025-01-13 15:44:51.256 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_zwave_js
2025-01-13 15:46:05.220 INFO (SyncWorker_6) [supervisor.docker.manager] Cleaning addon_core_zwave_js application
2025-01-13 15:46:06.089 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-zwave_js with version 0.9.0
2025-01-13 15:46:12.622 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_zwave_js
2025-01-13 15:46:31.245 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API for a0d7b954_nodered closed
2025-01-13 15:46:31.258 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API for a0d7b954_nodered closed
2025-01-13 15:46:55.939 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer
2025-01-13 15:46:55.966 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer
2025-01-13 15:46:55.993 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/udev.sh
[16:09:20] INFO: Using udev information from host
cont-init: info: /etc/cont-init.d/udev.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun supervisor (no readiness notification)
services-up: info: copying legacy longrun watchdog (no readiness notification)
[16:09:20] INFO: Starting local supervisor watchdog...