-
Notifications
You must be signed in to change notification settings - Fork 11
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
Data visualization #68
Comments
@marchanderic44 wrote:
|
Idea: It looks like it is possible to run Jupyter notebooks in VS Code. It also looks like it is possible to do real-time plots with matplotlib. Putting this together, I think one could write some code that runs in a Jupyter notebook in VS Code (on the computer) that A) listens for data from the EV3 over a network connection (UDP packets would be a good way to do this) and B) plots the data received using matplotlib. A separate program would run on the EV3 that collects data and sends it over a network connection to the listening program on the computer. |
Hy Dlech, |
Jupyter just seems like a nice way to display the plots in VS code instead of in a separate window. But it is not necessary. Did you look into using network sockets to transfer the data like I suggested? Here is some detailed information: https://docs.python.org/3/howto/sockets.html |
I did not know, I will try. Thanks |
Thank you for your help. I succeeded. |
Recommend closing this issue. |
I succeeded as well. Run the script on the ev3 first, then within vscode. Write the ip address of the ev3 in the input, then the program will graph the live data from the IR sensor within matplotlib on the PC. |
@ndward wrote:
The text was updated successfully, but these errors were encountered: