microsoft / PTVS

Python Tools for Visual Studio
https://aka.ms/PTVS
Apache License 2.0
2.53k stars 676 forks source link

Interactive Window not working or displaying output #7868

Open cwebster-99 opened 5 months ago

cwebster-99 commented 5 months ago

Received the following bug report from our docs team.

I’m running into an error right away when I try to repro the steps in the article.

I’m using Python 3.11 64-bit and I have the ipython and matplotlib libraries installed.

When I start the Interactive Window with the Use IPython interactive mode setting, I get the following error: image

I tried to repro the steps for an Anaconda installation, and the output isn’t as expected.

After entering the code into the Interactive Window, an inline graph should display. In my test, no graph displays:

image

--- OR ---

image

I tried entering the code as a block input at a single prompt and also line-by-line. Neither method produced a graph or error message. The window just displays a subsequent prompt.

Here’s what the article says: image

When I run the longer code straight from Visual Studio, the program opens a console window that simply says, Press any key to continue, which closes the window. No graph displays.

Here’s what the article says: image

StellaHuang95 commented 1 month ago

Another interactive window issue. https://github.com/microsoft/PTVS/issues/7968