Ask Your Question

Workspace similar to MATLAB and Spyder

asked 2019-09-15 20:53:18 -0500

anonymous user


Is there a workspace similar to MATLAB that can list the variables in Wing Pro? In MATLAB or Spyder, once execute a script, the variable created by the script will be listed in the workspace. These variables can be called by another new script without being defined in the new script. For example, in Spyder, after execute there are x = 1.0, y = 2.0, z = 3.0 in the workspace. Now, we can run calling x, y, z with the values shown in workspace even though x, y, z are not specified in Is it possible to do this in Wing Pro?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-16 08:10:16 -0500

You can use Evaluate File in Python Shell to evaluate the file and the Python Shell will retain the state from the previous file as you describe above, as long as the Auto-Restart When Evaluate File option in its Options menu is disabled. Evaluate Selecting in Python Shell works similarly.

A similar option is to debug something, and use the Debug Probe at a breakpoint. It is a Python Shell that uses the runtime context of the current stack frame in the debugger.

With both you can select a range of lines in the editor and press the =+ icon in the top right of the Python Shell or Debug Probe to define an active range in the editor that you can reevaluate in the shell it's locked into by pressing the cog icon that will appear in the top right of the shell. This makes it easier to retry code as you're working on it.

The docs for this are at and

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-09-15 20:53:18 -0500

Seen: 3,931 times

Last updated: Sep 16 '19