User Tools

Site Tools


ws2009:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ws2009:python [2009/12/09 09:23]
Tim Korb created
ws2009:python [2010/04/27 10:01] (current)
Line 3: Line 3:
 To run [[http://​www.vpython.org|VPython]] from PyScripter (the preferred Python development environment that comes with [[http://​www.portablepython.com|Portable Python]]), you must make two small configuration changes to the default PyScripter settings. ​ The basic idea is that the Python interpreter must run in a separate process, not as the built-in Python interpreter that comes with PyScripter. ​ You must tell PyScripter where to find the external Python binary to run and ensure that when it runs, the console window is not hidden.  ​ To run [[http://​www.vpython.org|VPython]] from PyScripter (the preferred Python development environment that comes with [[http://​www.portablepython.com|Portable Python]]), you must make two small configuration changes to the default PyScripter settings. ​ The basic idea is that the Python interpreter must run in a separate process, not as the built-in Python interpreter that comes with PyScripter. ​ You must tell PyScripter where to find the external Python binary to run and ensure that when it runs, the console window is not hidden.  ​
  
-Here are the settings ​(both are on the same dialog)... +Here are the steps (both settings ​are on the same dialog ​page)... 
-  + 
-(1) Launch PyScripter-Portable.exe+  ​- ​Launch PyScripter-Portable.exe (on the memory stick in the Portable-Python_1.1_py2.5.4 folder)
-(2) Open the External Run Properties dialog: Run/​Configure External Run...  +  - Open the External Run Properties dialog: Run/​Configure External Run...  
-(3) Set Properties (tab)/​Command/​Application to "​$[PythonExe]"​ (without the quotes). +  ​- ​Set Properties (tab)/​Command/​Application to "​$[PythonExe]"​ (without the quotes). 
-(4) Ensure that Console/​Hide console option is unchecked.+  ​- ​Ensure that Console/​Hide console option is unchecked.
  
 Your settings should look like this: Your settings should look like this:
  
-{{ :pyscripter-settings.png |}}+{{ pyscripter-settings.png |}} 
 + 
 +You can test your settings by launching one of the VPython examples that come with the distribution. ​ Navigate to the examples directory located on the memory stick inside the Portable Python directory... 
 + 
 +  App\Lib\site-packages\visual\examples 
 + 
 +and open, for example, ''​doublependulum.py''​. ​ Run the example using "​Run/​External Run", or the hot key "​Alt+F9"​.
  
 Let [[mailto:​jtk@cs.purdue.edu|Tim Korb]] know if you have any problems or questions. Let [[mailto:​jtk@cs.purdue.edu|Tim Korb]] know if you have any problems or questions.
  
  
ws2009/python.1260368581.txt.gz · Last modified: 2009/12/09 09:23 (external edit)