Can't connect console to remote jupyter kernel with connection file
Hello, and thanks for making Euporie!
On my remote host, I'm running a jupyter kernel like so:
```
jupyter kernel
```
I've also tried ipykernel like so:
```
ipython kernel
```
... but it doesn't seem to make a difference.
I scp down the kernel json file to my local machine, and ssh-tunnel the requisite ports like so:
```
# example ports, given from kernel json
ssh -N -i ~/.ssh/mykey \
-L 34115:localhost:34115 \
-L 40341:localhost:40341 \
-L 43527:localhost:43527 \
-L 35419:localhost:35419 \
-L 48273:localhost:48273 \
"root@$my_host"
```
Finally I try to run euporie-console with --connection-file pointed at the copied-down kernel json. The console opens and I can run commands, but there is no output, and I get the little frowny-face icon at the bottom right.
I have logs set to Debug, and this is what they show:
```
2026-05-01 19:18:29.360 DEBUG [euporie.core.kernel.jupyter.start:337] Imported `ipykernel` to prevent import deadlock
2026-05-01 19:18:29.360 DEBUG [euporie.core.kernel.jupyter.start_async:214] Starting kernel
2026-05-01 19:18:29.363 DEBUG [euporie.core.kernel.jupyter.start_async:227] Connecting to existing kernel using connection file 'kernel-17826.json'
2026-05-01 19:18:29.366 DEBUG [euporie.core.kernel.jupyter.post_start:285] Waiting for kernel to become ready
2026-05-01 19:18:30.502 ERROR [euporie.core.kernel.jupyter.post_start:289] Error connecting to kernel
2026-05-01 19:18:30.503 DEBUG [euporie.core.tabs.kernel.report_kernel_error:323] Kernel error
Traceback (most recent call last):
File "/home/david/.conda/envs/lora_sd_research/lib/python3.12/site-packages/euporie/core/kernel/jupyter.py", line 287, in post_start
await self.kc._async_wait_for_ready(timeout=30)
File "/home/david/.conda/envs/lora_sd_research/lib/python3.12/site-packages/jupyter_client/client.py", line 204, in _async_wait_for_ready
raise RuntimeError(msg)
RuntimeError: Kernel died before replying to kernel_info
```
Meanwhile, using `jupyter console` connects just fine, so it seems the issue is specific to euporie.
Any help is appreciated, thanks!
关闭于 2026-05-07 6 条评论