# Propagate Jupyter client errors \(\#40886\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3248a05406d0c808851383eb9cb20b2a71717173)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3248a05406d0c808851383eb9cb20b2a71717173

Requested commit: 3248a05406d0c808851383eb9cb20b2a71717173

Commit: 3248a05406d0c808851383eb9cb20b2a71717173

Tree: 083750e87700d7542fb31d37c689bd57e1b11268

Author: Lionel Henry

Committer: GitHub

## Message

```
Propagate Jupyter client errors (#40886)

Closes #40884

- Make IOPub task return a `Result`
- Create a monitoring task that watches over IOPub, Control, Routing and
Shell tasks.
- If any of these tasks fail, report the error with `kernel_errored()`
(which is already used to report process crashes)


https://github.com/user-attachments/assets/3125f6c7-099a-41ca-b668-fe694ecc68b9

This is not perfect. I did not have time to look into this but:

- When such errors happen, the kernel should be shut down.
- The kernel should no longer appear as online in the UI

But at least the user is getting feedback on what went wrong.

Release Notes:

- Jupyter client errors are now surfaced in the UI (#40884)
```

## Parents

- [baaf87aa239dcbba3bb27aef103c2ca0d392a9d4](https://git.cafe/gitcafe/zed/commit/baaf87aa239dcbba3bb27aef103c2ca0d392a9d4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3248a05406d0c808851383eb9cb20b2a71717173?format=markdown)
