Python-spe-users Digest, Vol 21, Issue 3
[email protected] Tue, 27 Oct 2009 12:01:45 +0100
| Newsgroups | gmane.comp.python.spe.user |
|---|---|
| Message-ID | <[email protected]> |
Send Python-spe-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.berlios.de/mailman/listinfo/python-spe-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Python-spe-users digest..." _______________________________________________ http://pythonide.stani.be http://pythonide.stani.be/manual/html/manual.html http://pythonide.stani.be/blog/sm_donate _______________________________________________ Today's Topics: 1. SPE and iPython - a solution (Timothy W. Grove) ---------------------------------------------------------------------- Message: 1 Date: Tue, 27 Oct 2009 09:38:53 +0000 From: "Timothy W. Grove" <[email protected]> Subject: [spe-users] SPE and iPython - a solution To: wxPython-users-/[email protected], Mailing list for spe users <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I've just started to experiment with using iPython (http://ipython.scipy.org/moin/) and wondered how it could be integrated into SPE (http://pythonide.stani.be/). I found a few threads about it, but no solutions, so I started digging around in Stani's code and came up with the following solution for starters. This doesn't (yet) offer any other functionality from SPE, such as importing a script into the iPython shell or drag-and-drop of files onto the panel for execution, but it should add an extra panel to SPE containing an iPython shell. I'm working under Windows Vista with Python 2.6 and wxPython 2.8, using ipython-0.10. Hope this might help someone else. Best regards, Timothy Grove #!/usr/bin/env python # -*- coding: utf-8 -*- # IP_Shell.py - version 0.1.0 from IPython.gui.wx.ipython_view import IPShellWidget class Panel(IPShellWidget): """ A simple class to add an iPython panel to SPE. To use: 1. Create a file with this code, named 'IP_Shell.py', and add it to \_spe\tabs\. 2. Duplicate 'shell.png' in \_spe\skins\default\ and rename it to 'ip_shell.png' . 3. Edit 'Parent.py' in \_spe\. Change 'TABS = ['Shell','Locals', ...]' (line 44 in my editor) to 'TABS = ['Shell','IP_Shell','Locals', ...]'. """ def __init__(self,panel): IPShellWidget.__init__(self, panel) ------------------------------ _______________________________________________ Python-spe-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/python-spe-users End of Python-spe-users Digest, Vol 21, Issue 3 ***********************************************