Is it possible to plot in debug?
Hello and, first, thanks for web-pdb!
I was wondering if it is possible to have some integration/support for showing matplotlib plots directly in the browser. That would help a lot when debugging scientific applications, in which plots are extremely useful. I know this could be a long shot, but I really think there is an empty spot for this kind of debugging.
Is it possible?
I don't quite understand the scenario of using such feature, so could you explain a bit more?
Sure. For instance, I am often working on code that performs image
transforms. Sometimes I need to inspect the images being produced, and to
do that I need to save with plt.imsave(), connect to the remote machine,
download the image and open it. Other times, I have to plot some values,
then save the plot to an image and do the same. This is annoying and having
a debugger which can show images and is aware of matplotlib would make me
more productive.
On Fri, Feb 15, 2019, 07:04 Roman Miroshnychenko <[email protected] wrote:
I don't quite understand the scenario of using such feature, so could you explain a bit more?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romanvm/python-web-pdb/issues/12#issuecomment-463918976, or mute the thread https://github.com/notifications/unsubscribe-auth/AA19fM-i8C-VOoY5yKJ3Lh_kttAeGmIZks5vNk3pgaJpZM4a7VPH .
Thank you for the explanation. I think it is possible to implement downloading file objects that exist in the current scope. But for that you will need to save your image or plot into an in-memory file object like io.BytesIO.