txl_cell 0.2.2__tar.gz → 0.2.3__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.1
2
2
  Name: txl_cell
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: TXL plugin for a cell
5
5
  Project-URL: Source, https://github.com/davidbrochart/jpterm/plugins/cell
6
6
  Author-email: David Brochart <david.brochart@gmail.com>
@@ -0,0 +1 @@
1
+ __version__ = "0.2.3"
@@ -227,6 +227,8 @@ class _Cell(Cell, Container, metaclass=CellMeta, can_focus=True):
227
227
  renderable = RichText.from_ansi(text)
228
228
  elif output_type == "execute_result":
229
229
  execution_count = output.get("execution_count", " ") or " "
230
+ if execution_count != " ":
231
+ execution_count = int(execution_count)
230
232
  execution_count = RichText.from_markup(
231
233
  f"[red]Out[[#ee4b2b]{execution_count}[/#ee4b2b]]:[/red]\n"
232
234
  )
@@ -237,7 +239,7 @@ class _Cell(Cell, Container, metaclass=CellMeta, can_focus=True):
237
239
  widget = YDOCS[f"txl_{model.__class__.__name__[:-5]}"](model)
238
240
  if not widget:
239
241
  data = output["data"].get("text/plain", "")
240
- renderable = RichText()
242
+ renderable = execution_count
241
243
  if isinstance(data, list):
242
244
  text = "".join(data)
243
245
  renderable += RichText.from_ansi(text)
@@ -1 +0,0 @@
1
- __version__ = "0.2.2"
File without changes
File without changes
File without changes
File without changes