Created
August 19, 2018 20:04
-
-
Save nikhilkumarsingh/1dcec96a1eb0aeb8975fc13ec5825d43 to your computer and use it in GitHub Desktop.
Plotting real time data using Python
Hello,
Would you be able to replicate this code in Spyder?
You cannot call "%matplotlib notebook" in Spyder. I set up the Graphics backend of the Iphyton console in "Automatic", but the plot windows doesn't answer until I stop the program and it returns me the "final graph" (after some iterations).
replace
time.sleep(0.1)
with
plt.pause(0.1)
Works with spyder 5.5.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the reticulate package and write the code in python directly in R or RMarkdown