SPE 0.8.1.b Python IDE (complete rewrite for running files)

Release news from http://pythonide.stani.be

This release is the result of a complete rewrite of the run system. It’s now possible to run multi-threaded applications (like wxPython, gtk, …) with SPE and still control them through the debugger. Also selected text can be executed in the shell.

Read more at http://pythonide.stani.be/manual/html/manual3.html (see 1.3 Running files).

New features:
* launch the debugger at any time at a running script
* launch the debugger at unhandled exceptions when running your script
* execute selected lines as code snippets in the shell

Improved features:
* redesigned toolbar

Bug fixes:
* Show/hide shell (Mac)
* Check run (0.8.1.b)

Installation:
* See http://pythonide.stani.be/manual/html/manual2.html
* There is now an update section for MacOS X!

Contributors:
* Nir Aides (debug support)
* Thurston Stone (bug report)

Development:
* http://developer.berlios.de/mail/?group_id=4161

Donations (thanks!):
* Widhaya Trisarnwadhana

About SPE:
SPE is a python IDE with auto-indentation, auto completion, call tips,
syntax coloring, UML viewer, syntax highlighting, class explorer,
source index, auto todo list, sticky notes, integrated pycrust shell,
python file browser, recent file browser, drag&drop, context help, …
Special is its blender support with a blender 3d object browser and its
ability to run interactively inside blender. Spe integrates with XRCed (gui
designer) and ships with wxGlade (gui designer), PyChecker (source
code doctor), Kiki (regular expression console) and WinPdb (remote,
multi-threaded debugger).

SPE is looking for native English speakers to review its manual.

The development of SPE is driven by its donations. Anyone who donates
can ask for an nice pdf version of the manual without ads (60 pages).

I’ve never used SPE before (I always wrote everything in notepad and the text-area inside Blender), but it’s looking really good.
I had some trouble installing wxPython (the main download was a corrupted one), but after correctly installing that SPE didn’t give me any trouble. So far I haven’t used it from within Blender, still figuring out that part, but just wanted to say thanks for the work. It sure beats notepad.

Haha,

It is not hard to beat notepad :smiley:

As long as the timer is not exposed to the Blender Python API, SPE will block blender when you run SPE inside blender. Running SPE inside blender makes sense for having an interactive Python Shell and for the Blender Object browser, to explore your drawing from a Pythonic way.

If you want to do editing, I recommend not running SPE in Blender but aside. You can then use a ‘Python shortcut’ to run your code:

#Python shortcut, press Alt+P to run

script_path = '/path/of/your/script'

#make sure the script path is in PYTHONPATH
import sys
if script_path not in sys.path: 
    sys.path.append(script_path)

#start the script
import script
reload(script)
script.run() #or whatever your function is called

Using python shortcuts has the advantage of being able to have SPE running next to Blender and to keep the script in a separate file, rather than in the Blender text window. Using ‘python shortcuts’ might be an advantage as editing scripts in the Blender text window can be a hassle.

BTW, the next version of SPE will be quite handy for Python newbies as it will underline in red (:< realtime as you type) python syntax errors. The next version also will allow drag and drop of the file tabs, single instance application and much more… New SPE releases are always pre-announced on the spe-user mailing list, so subscribe if you want to be up to date…

Stani