jupyter / jupyter/nbclient

"transient" set to None explicitly breaks execute

Open
#321 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
186
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I am trying to get to the bottom of [this issue with deno kernel](https://github.com/rgbkrk/denotebooks/issues/8) and so I managed to track it down to the [following](https://github.com/jupyter/nbclient/blob/main/nbclient/client.py#L1103):

```python
display_id = content.get("transient", {}).get("display_id", None)
```

throws when receiving message with the following content (note explicit `None` which causes the issue):

`{'execution_count': 7, 'data': {'text/plain': '\x1b[32m"2.29.4"\x1b[39m'}, 'metadata': {}, 'transient': None}`

Should this be addressed in nbclient or is this an issue with the kernel?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.