I recently changed from Spyder
to PyCharm
as a Python IDE. In Spyder
I have often used the variable explorer feature (see picture). Is
I like Spyder for interacting with my variables and PyCharm for editing my scripts. Alternative Solution: use both simultaneously. As I edit in PyCharm (on Mac OS), the script updates live in spyder. Best of both worlds!
Right-click on the file and click Run file in console. Everytime you run it, the variables will show in the console until you click the stop button.
The question is vague so this might be helpful to someone.
For me I managed to have the Console (so that printing in my script would be shown) AND the variable pane at the same time while in debug mode. For that I did this:
Visual explanation fo what I did:
In (I assume default) debug mode:
during drag and drop:
and after finally I dropped it and it looks the way I want it:
If you want to inspect numpy arrays, which are images, you can use OpenCV Image Viewer Plugin.
https://plugins.jetbrains.com/plugin/14371-opencv-image-viewer
Disclaimer: I'm an author of this plugin
The variable list is available in the python console Tools --> Run Python Console... as shown in the screen shot below. Similar functionality for showing variables and watched variables is available in the debugger console.
The simple trick:
put any dummy line at the end of your code, e.g.
print('hi')
and set break point at this line.
Then, run your code in debug mode. Enjoy! The screenshots of editor and debug window are shown for your reference.