Hi all,
- Quid? psi: a simple Python Shell and Interpreter
- Version psi53, it uses Python 2.3.0 and wxPython 2.4.2.4
- Exe and Python scripts are available
- Should make non us users happy. The psi script editor introduces automatically
the encoding information. Us-users may remove it. Read the file encodage.py
- Now, psi uses the EOL python convention, '\n'. When copying from others win
applications, \r\n are converted into \n.
- psi has still the capabilty of plotting data directly from the interpreter. The psi web page
proposes the file jmgraph.py. This file contains a short explanation and demos on how
to plot data within psi. Note: The demos require a little bit math knowledge, the demo
scipts display data defined by cartesian, polar and parametric math functions. One demo
script draws a complex function and its fourier transform.). Besides this, these demo
scripts are examples, on how to create and build "wxPython" modules to be used
by the interactive shell.
- Where? http://www.chez.com/spinecho/pypsi/pagpypsi.htm
Infos for coders:
- I reorganized the psi modules. psi is the main application. It uses the class psiShell
from psiClsShell.py to do the job. This class, psiShell, can be embeded into others
applications. As an example, the application MultiPsi.py - to be found in the source.zip -
is an application that uses two psiShell's in the same frame. Not really useful, but it shows
that this is feasible.
- psiShell again. When creating an instance of this class, you can specify a list of python
scripts, which will be executed by psiShell itself. Advantage: the list may contain any number
of scripts.
- psi is no more using the module code.py and its InteractiveInterpreter from the std
Python lib. I tweaked the code and created the the module psiMoteur.py. (moteur==french
word for engine). One of the weakness of the code.py interpreter is that this interpreter
interprets the commands line by line, pushing every command into a stack. This not really
practical in multiline editing windows like the stc control. psiMoteur handles directly a
chunk of source line(s). It compiles it and run the code. Nothing really new, but psiMoteur
can make the difference between single line and multiline Python commands.
This module needs improvement, but it works.
Voilà. Just hope you understand my english.
Jean-Michel Fauth, Switzerland