jupyter / jupyter_client

Jupyter protocol client APIs
https://jupyter-client.readthedocs.io
BSD 3-Clause "New" or "Revised" License
383 stars 283 forks source link

[Proposal] Include channel name in IOPub status messages #839

Open Zsailer opened 2 years ago

Zsailer commented 2 years ago

Another idea sparked by https://github.com/jupyter/jupyter_client/issues/838.

Today, both the control and shell channel can trigger IOPub status messages, but there is no easy way to tell which parent channel caused a given IOPub message. We could add "channel" as part of the IOPub's message specification, e.g.:

{
    ...
    "parent_header": {
        "channel": "shell",
        ...
    },
    "execution_state": ...
}
minrk commented 2 years ago

I like this solution. It should probably go in the content of the status message, since it's specifying what is idle/busy/etc.