Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.23 KB

File metadata and controls

43 lines (24 loc) · 1.23 KB

Using pystran with Spyder

The easiest way to run a pystran example is to download and install Spyder 6. It is a complete IDE for Python, including a very capable debugger. Just open an example and click the run button.

The detailed instructions are as follows:

Create new project in Spyder.

dialogue to create new project

Create the project from an "existing" folder, i.e. pystran top folder.

dialogue to create new project

Make sure the project pane is showing.

dialogue to create new project

Then start a console in the folder where your script is located.

start a console

Open a tutorial.

open a tutorial

Run the tutorial by clicking the green arrow button. Or, debug the tutorial by clicking the button with the blue arrow and two vertical bars (run-and-pause).

Plotting

By default the IDE will display the plots in the graphics pane. The plots are then static -- they cannot be interacted with.

If that is not what we want, we should change the graphics settings as

set graphics settings

That will open interactive windows for all the plots outside of the editor.