txl-kernel 0.3.4__tar.gz → 0.3.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txl_kernel
3
- Version: 0.3.4
3
+ Version: 0.3.8
4
4
  Summary: TXL plugin for a kernel driver
5
5
  Project-URL: Source, https://github.com/davidbrochart/jpterm/plugins/kernel
6
6
  Author-email: David Brochart <david.brochart@gmail.com>
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
17
17
  Requires-Python: >=3.10
18
18
  Requires-Dist: pycrdt<0.13.0,>=0.10.9
19
19
  Requires-Dist: python-dateutil>=2.8.2
20
- Requires-Dist: txl==0.3.1
20
+ Requires-Dist: txl==0.3.2
21
21
  Description-Content-Type: text/markdown
22
22
 
23
23
  # TXL plugin for a kernel driver
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "txl_kernel"
7
- version = "0.3.4"
7
+ version = "0.3.8"
8
8
  description = "TXL plugin for a kernel driver"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  license = "MIT"
12
12
  keywords = []
13
13
  classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy",]
14
- dependencies = [ "txl ==0.3.1", "python-dateutil >=2.8.2", "pycrdt >=0.10.9,<0.13.0",]
14
+ dependencies = [ "txl ==0.3.2", "python-dateutil >=2.8.2", "pycrdt >=0.10.9,<0.13.0",]
15
15
  [[project.authors]]
16
16
  name = "David Brochart"
17
17
  email = "david.brochart@gmail.com"
@@ -169,7 +169,7 @@ class KernelMixin:
169
169
  content = msg["content"]
170
170
  if msg_type == "stream":
171
171
  with outputs.doc.transaction():
172
- if (not outputs) or (outputs[-1]["name"] != content["name"]): # type: ignore
172
+ if (not outputs) or (outputs[-1].get("name") != content["name"]): # type: ignore
173
173
  outputs.append(
174
174
  Map(
175
175
  {
@@ -181,7 +181,15 @@ class KernelMixin:
181
181
  )
182
182
  else:
183
183
  outputs[-1]["text"].append(content["text"]) # type: ignore
184
- elif msg_type in ("display_data", "execute_result"):
184
+ elif msg_type == "display_data":
185
+ outputs.append(
186
+ {
187
+ "data": content["data"],
188
+ "metadata": {},
189
+ "output_type": msg_type,
190
+ }
191
+ )
192
+ elif msg_type == "execute_result":
185
193
  outputs.append(
186
194
  {
187
195
  "data": content["data"],
File without changes
File without changes
File without changes