sukesh
sukesh

Reputation: 2437

Unresponsive Python interactive window in Visual Studio 2022

I have installed the Python development workload in Visual Studio 2022.
When I try to execute 2+2 in the interactive window, there is no result and I only see the waiting mouse cursor.
Is this expected? If not how do I fix this or how do I know that the installation for Python development is all good.

enter image description here

Upvotes: 0

Views: 105

Answers (1)

Lukinator
Lukinator

Reputation: 443

No, this is not expected behavior. The Python Interactive Window should execute 2+2 and return 4 immediately.

There is a problem with Visual Studio and Python 3.12 (64 bit) (Python 3.13 (64 bit) is facing the same problem). It has already been discussed in this post: Preview Version 5.0 interactive window hangs in Visual Studio Professional 2022 (64-bit) (Python)

Unfortunately, Python 3.9 (the last version where the interactive window worked) is no longer officially available. This does not mean that your Python environment does not work. Normally, Python should still run your scripts correctly.

However, if you need the interactive window, I would highly recommend switching to VS Code.

Upvotes: 1

Related Questions