question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Streaming Data Not Working in Version 5.0

See original GitHub issue

Hi , I want to use streaming data mode to show some data, but is not working, It’s blocked in the beginning.

The code is like this

import plotext as plt
import time

l = 1
while l < 10000000000:
    l *= 2
    y.append(l)

    plt.cld()
    plt.clt()

    plt.plot(y)
    plt.show()

    time.sleep(1)

^CTraceback (most recent call last): File “draw2.py”, line 21, in <module> plt.show() File “/usr/local/lib/python3.7/dist-packages/plotext/_core.py”, line 183, in show figure.show() File “/usr/local/lib/python3.7/dist-packages/plotext/_figure.py”, line 250, in show self.build() File “/usr/local/lib/python3.7/dist-packages/plotext/_figure.py”, line 257, in build self._build_matrix() File “/usr/local/lib/python3.7/dist-packages/plotext/_figure.py”, line 283, in _build_matrix self.monitor.build_plot(*self._size) if not self.monitor.fast_plot else None File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 847, in build_plot x[s], y[s], mxy = hd_group(x[s], y[s], xf[s], yf[s]) File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in hd_group m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in <listcomp> m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in <listcomp> m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in <listcomp> m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] KeyboardInterrupt

image

Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
piccolomocommented, Jul 7, 2022

I am happy you like it! 😃 Good to know that it won’t work with python 3.7, I keep issue open to work on it in the future (I am not working on plotext lately)

P.S. I have python 3.10 and will check this later

1reaction
piccolomocommented, Jul 7, 2022

Try to get the version of Python you are using (it doesn’t seem to like the unpacking operator *), also try to remove the warning shown by not running as administrator, even tough I tried to run it myself as administrator and worked just fine. Good luck

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot video streaming issues - YouTube TV Help
If you're experiencing issues with video streaming on YouTube TV, try these troubleshooting tips. On a mobile device Restart your device Hold down...
Read more >
Comcast Xfinity Stream App Not Working – 14 Easy Fixes
You can fix your Xfinity stream app by rebooting it, updating the app, verifying your network connection, and other solutions.
Read more >
Table streaming reads and writes - Azure Databricks
Structured Streaming does not handle input that is not an append and throws an exception if any modifications occur on the table being...
Read more >
Troubleshooting Kinesis Data Streams Consumers
The following sections offer solutions to some common problems you may find while working with Amazon Kinesis Data Streams consumers.
Read more >
5 Ways to Troubleshoot HBO Max When It Isn't Working
If HBO Max is not working on your device, there are several possible solutions, including closing and restarting the HBO Max app.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found