Difference between revisions of "Pyscripter"

From relax wiki
Jump to navigation Jump to search
(Category fixes.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__TOC__
 +
 
== Coding editor ==
 
== Coding editor ==
 
A lightweight editor, could be pyscripter. <br>
 
A lightweight editor, could be pyscripter. <br>
Line 7: Line 9:
 
'''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>
Line 19: Line 31:
 
</pre>
 
</pre>
  
[[Category:External_programs]]
 
  
 
== See also ==
 
== See also ==
 +
 
[[Category:Python]]
 
[[Category:Python]]
 +
[[Category:Software]]

Latest revision as of 16:56, 6 November 2015

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