-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Live updating plots #2570
Comments
Hi @cool-RR, I submitted #2597 and #2598. Once you install both of those, you should be able to monitor your graphs with It was not especially complicated to implement as the basic functionality was already implemented. So imo the greatest VisiData feature request of all time is still #2: Also, until these patches are incorporated into visidata, you may find the |
Hmm, this doesn't work for me. I checked out the develop branch and then merged your two branches. I did |
Hey @cool-RR! To make things easier, both commits are now in The steps I would do are: And then try it out. I believe the step is to use |
Hmm, I hadn't actually tested reloading graphs while another sheet reloads from a file. That case is not working. It looks like the source sheet changes are not being reflected on the graph. I'll continue to look into it. (My test case was a custom sheet that generates more rows over time in memory, not on disk.) |
Thanks, let me know when that can be tested. Also, I think that a good UX would not require the user to go back to the source sheet and use one of the |
I recently discovered https://github.com/ClementTsang/bottom It's like |
@midichef What is the proper way to test the functionality you implemented? Because I tried what @anjakefala said and the plot went empty, refreshed once a second and showed this error message: |
@cool-RR Anja's commands should work.
Can you show me a minimal example of data file, .vdj commands, and exact vd command line that reproduces the error message (maybe file a bug report with OS etc)? What I'm doing is: The current
But there should be no message: |
Your example still generates that error message for me. Before I try to debug this, I want to understand: How could your example even be relevant, given that new data is not being written to the column? Why reload a plot if there's no new data? |
My example is a minimal test case with the only goal being to probe for the error message. It's not a useful example for actually reloading a plot. Since you're getting the error message, my best guess at what's going on is that your visidata installation is for some reason not using the latest For me, that means looking in my pip directory:
Or perhaps your setup has more than one Python environment, and the old version of visidata is being run from there and not the pip installation directory? |
Also, I suspect the reload features are going to have a lot of rough edges for the indefinite future. I'm running into unexpected difficulties working on the next steps. If you can make do by just rerunning visidata every so often using watch with |
Indeed I'm running the right version of the code. I tried running So the feature does seem to work for that trivial case. The next step would be an example that actually writes new data.
I see, too bad. I probably won't use that workaround but thanks anyway. |
@cool-RR While this implementation may not fully meet your needs yet, @midichef has put effort into moving us toward the live plotting functionality you requested, and I want that acknowledged. They fixed the major bugs blocking this, helped troubleshoot your issues testing the code, been transparent about the current limitations, and offered you a workaround for them. I really appreciate you taking this on @midichef. |
Sorry if my previous response was flippant. @midichef : Thank you for all of your work on this feature. |
No worries, I appreciate the acknowledgement. There are two remaining issues. First, The next problem is getting the Lines 261 to 262 in ff489d3
But because I'm not sure how to address that issue. |
It is time for the greatest VisiData feature request of all time. I've wanted this for a long time, and it's pretty ambitious so it might never get implemented, but let's put it on the table anyway.
I want to have live plots. I'm running experiments that take a while to produce output. I'm anxiously awaiting the interesting parts of their results so I could draw conculsions and run the next experiment. I want to see that progress on a plot, live. This means I want to draw a plot of a certain sheet, and then as more rows are written to that sheet, I want the plot to automatically add new points on the screen.
The text was updated successfully, but these errors were encountered: