Difference between revisions of "Pyscripter"

From relax wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
'''Advanced->Register distribution->Yes'''
 
'''Advanced->Register distribution->Yes'''
  
 +
== Setup ==
 +
=== Indention ===
 
Remember to check that indention is set to equal 4 spaces "    ", under Tools/Options/Editor Options <br>
 
Remember to check that indention is set to equal 4 spaces "    ", under Tools/Options/Editor Options <br>
 +
=== Trailing spaces ===
 +
Some parts of relax requires trailing whitespace.<br>
 +
Tools/Options/Editor Options/Options/ Untick "Trim Trailing spaces"
 +
 +
 +
=== Run engine ===
 
Also set: Run/Python Engine/Remote (Tk)  (Matplotlib uses the Tk) <br>
 
Also set: Run/Python Engine/Remote (Tk)  (Matplotlib uses the Tk) <br>
  
 +
 +
== Test ==
 
Test that everything is working, for example by this script, and hit the green play button. <br>
 
Test that everything is working, for example by this script, and hit the green play button. <br>
 
<pre>
 
<pre>

Revision as of 07:04, 20 June 2013

Coding editor

A lightweight editor, could be pyscripter.
This helps with syntax high-lighting and includes the interpreter.
Install from: https://code.google.com/p/pyscripter/

To let pyscripter find winpython, you need to register it in the windows registry.
Advanced->Register distribution->Yes

Setup

Indention

Remember to check that indention is set to equal 4 spaces " ", under Tools/Options/Editor Options

Trailing spaces

Some parts of relax requires trailing whitespace.
Tools/Options/Editor Options/Options/ Untick "Trim Trailing spaces"


Run engine

Also set: Run/Python Engine/Remote (Tk) (Matplotlib uses the Tk)


Test

Test that everything is working, for example by this script, and hit the green play button.

from pylab import *
a = array(range(10))
b = 10*a
plot(a,b)
show()

See also