txl-kernel 0.2.13__tar.gz → 0.2.15__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,23 +1,23 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: txl_kernel
3
- Version: 0.2.13
3
+ Version: 0.2.15
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>
7
- License-Expression: MIT
8
- License-File: LICENSE.txt
7
+ License: MIT
9
8
  Classifier: Development Status :: 4 - Beta
10
9
  Classifier: Programming Language :: Python
11
10
  Classifier: Programming Language :: Python :: 3.10
12
11
  Classifier: Programming Language :: Python :: 3.11
13
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
14
  Classifier: Programming Language :: Python :: Implementation :: CPython
15
15
  Classifier: Programming Language :: Python :: Implementation :: PyPy
16
16
  Requires-Python: >=3.10
17
- Requires-Dist: asphalt
18
- Requires-Dist: pycrdt<0.9.0,>=0.8.11
17
+ Requires-Dist: asphalt<5.0.0,>=4.0.0
18
+ Requires-Dist: pycrdt<0.11.0,>=0.10.9
19
19
  Requires-Dist: python-dateutil>=2.8.2
20
- Requires-Dist: txl
20
+ Requires-Dist: txl<0.3.0,>=0.2.18
21
21
  Description-Content-Type: text/markdown
22
22
 
23
23
  # TXL plugin for a kernel driver
@@ -4,6 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "txl_kernel"
7
+ version = "0.2.15"
7
8
  description = "TXL plugin for a kernel driver"
8
9
  readme = "README.md"
9
10
  requires-python = ">=3.10"
@@ -18,19 +19,16 @@ classifiers = [
18
19
  "Programming Language :: Python :: 3.10",
19
20
  "Programming Language :: Python :: 3.11",
20
21
  "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
21
23
  "Programming Language :: Python :: Implementation :: CPython",
22
24
  "Programming Language :: Python :: Implementation :: PyPy",
23
25
  ]
24
26
  dependencies = [
25
- "txl",
26
- "asphalt",
27
+ "txl >=0.2.18,<0.3.0",
28
+ "asphalt >=4.0.0,<5.0.0",
27
29
  "python-dateutil >=2.8.2",
28
- "pycrdt >=0.8.11,<0.9.0",
30
+ "pycrdt >=0.10.9,<0.11.0",
29
31
  ]
30
- dynamic = ["version"]
31
32
 
32
33
  [project.urls]
33
34
  Source = "https://github.com/davidbrochart/jpterm/plugins/kernel"
34
-
35
- [tool.hatch.version]
36
- path = "txl_kernel/__init__.py"
File without changes
@@ -121,6 +121,7 @@ class KernelMixin:
121
121
  if ycell["cell_type"] != "code":
122
122
  return
123
123
  ycell["outputs"].clear()
124
+ ycell["execution_count"] = None
124
125
  code = str(ycell["source"])
125
126
  content = {"code": code, "silent": False}
126
127
  msg = create_message(
@@ -174,27 +175,18 @@ class KernelMixin:
174
175
  content = msg["content"]
175
176
  if msg_type == "stream":
176
177
  with outputs.doc.transaction():
177
- # TODO: uncomment when changes are made in jupyter-ydoc
178
178
  if (not outputs) or (outputs[-1]["name"] != content["name"]): # type: ignore
179
179
  outputs.append(
180
- #Map(
181
- # {
182
- # "name": content["name"],
183
- # "output_type": msg_type,
184
- # "text": Array([content["text"]]),
185
- # }
186
- #)
187
- {
188
- "name": content["name"],
189
- "output_type": msg_type,
190
- "text": [content["text"]],
191
- }
180
+ Map(
181
+ {
182
+ "name": content["name"],
183
+ "output_type": msg_type,
184
+ "text": Array([content["text"]]),
185
+ }
186
+ )
192
187
  )
193
188
  else:
194
- #outputs[-1]["text"].append(content["text"]) # type: ignore
195
- last_output = outputs[-1]
196
- last_output["text"].append(content["text"]) # type: ignore
197
- outputs[-1] = last_output
189
+ outputs[-1]["text"].append(content["text"]) # type: ignore
198
190
  elif msg_type in ("display_data", "execute_result"):
199
191
  outputs.append(
200
192
  {
@@ -1 +0,0 @@
1
- __version__ = "0.2.13"
File without changes
File without changes
File without changes