2

Is it possible to plot pandas objects inside the PTVS interactive debugger? Is it possible to save plots to disk as jpeg's?

I think I was able to do this when I first started using PTVS (last year, its awesome by the way!) but I just tried again and I dont get any plots appearing. I cant remember if I had to do something special to get this to work and from doing some google searches I get a confusing picture of the current best practice in this regard.

I want to be able to plot diagrams from my debug interactive window, similar to what is shown on this pandas tutorial.

http://pandas.pydata.org/pandas-docs/stable/visualization.html

Is this possible?

Visual Studio Professional 2013 update 4 (latest I think) PTVS 2.1.21008.00 (latest I think)

All help is greatly appreciated.

-Jason

[edit: more info on this http://pytools.codeplex.com/discussions/574776 ]

JasonEdinburgh
  • 669
  • 1
  • 10
  • 17
  • 2
    To add to the answer. IPython, numpy/scipy, matplotlib, pandas and scikit-learn support and integration is a major focus of the next PTVS release, which is in an early planning stage right now, so your input as a user interested in such things would be very valuable to guide development. I can say that visualization of data during debugging (in the REPL, in Locals & Watch, and in new dedicated debugger tool windows), with both grid views for arrays and data frames, and matplotlib graphing, is one of the major items that are already on the list as "must have". – Pavel Minaev Dec 12 '14 at 20:55

1 Answers1

3

Unfortunately not. The regular interactive has an IPython mode that, among other things, enables inline plots. But the Debug interactive doesn't have that.

You can, of course, still load matplotlib in the Debug interactive and tell it to plot things. But because there's no integration of event loops between it and VS in that mode, the plots will basically work like modal windows - you won't be able to continue debugging or otherwise interact with VS until you close the plot window.

Pavel Minaev
  • 99,783
  • 25
  • 219
  • 289