We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d45a1 commit a6628b8Copy full SHA for a6628b8
nbclient/client.py
@@ -1100,7 +1100,12 @@ def process_message(
1100
content = msg["content"]
1101
self.log.debug("content: %s", content)
1102
1103
- display_id = content.get("transient", {}).get("display_id", None)
+ # while it's tempting to go for a more concise
1104
+ # display_id = content.get("transient", {}).get("display_id", None)
1105
+ # this breaks if transient is explicitly set to None
1106
+ transient = content.get("transient")
1107
+ display_id = transient.get("display_id") if transient else None
1108
+
1109
if display_id and msg_type in {"execute_result", "display_data", "update_display_data"}:
1110
self._update_display_id(display_id, msg)
1111
0 commit comments