Skip to content

Commit

Permalink
Omit the event plot when running the demo on Windows
Browse files Browse the repository at this point in the history
See #7 and piccolomo/plotext#189 -- this seems to
be an issue somewhere between Plotext itself and Python on Windows; while we
could dive into this and try and solve it, for the purposes of a quick demo
it makes more sense to remove the problematic plot for now.
  • Loading branch information
davep committed Nov 6, 2023
1 parent 040a6c7 commit 14fe16e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/textual_plotext/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from __future__ import annotations

import os
import random
from datetime import datetime
from itertools import chain, cycle
Expand Down Expand Up @@ -320,7 +321,7 @@ def compose(self) -> ComposeResult:
"special",
[
self.ErrorPlot(),
self.EventPlot(),
*([] if os.name == "nt" else [self.EventPlot()]),
self.StreamingDataPlot(),
self.MatrixPlot(),
self.ConfusionMatrix(),
Expand Down

0 comments on commit 14fe16e

Please sign in to comment.