From roger.serwy at gmail.com Tue Nov 8 18:24:15 2011 From: roger.serwy at gmail.com (Roger Serwy) Date: Tue, 08 Nov 2011 11:24:15 -0600 Subject: [Idle-dev] IdleX - The IDLE Extension Pack Message-ID: <4EB965BF.7060301@gmail.com> Hi All, I have written a simple extension manager for IDLE and packaged several extensions with it. It can be found at: http://www.ews.illinois.edu/~serwy/idlex/ The extension manager loads extensions without needing to modify config-extensions.def. This makes distributing extensions simpler. The features include: * Terminal-like behavior for PyShell. The cursor is confined to the prompt and up/down arrow keys navigate the command history, similar to the original Python interpreter. * Matplotlib support for interactive figures when using the subprocess. * Tabbed editor windows with drag'n'drop reordering. * SubCodes, similar to Matlab cell mode and Sagemath cells, for quick code prototyping without restarting the shell. * Integrated reindent.py support. * Improved code navigation with Code Browser. * Cython editing and execution support. (Version 0.15.1) * Line numbers for the Editor. * Clear PyShell Window without restarting PyShell. * Simple interface for enabling/disabling extensions. * SearchBar, Squeezer, and IDLE2HTML included. (Originally by Tal Einat, Noam Raphael, and Michael Haubenwallner) Some of these extensions might be useful in the standard IDLE distribution. - Roger From taleinat at gmail.com Tue Nov 8 19:33:36 2011 From: taleinat at gmail.com (Tal Einat) Date: Tue, 8 Nov 2011 20:33:36 +0200 Subject: [Idle-dev] IdleX - The IDLE Extension Pack In-Reply-To: <4EB965BF.7060301@gmail.com> References: <4EB965BF.7060301@gmail.com> Message-ID: On Tue, Nov 8, 2011 at 7:24 PM, Roger Serwy wrote: > Hi All, > > I have written a simple extension manager for IDLE and packaged several > extensions with it. It can be found at: http://www.ews.illinois.edu/~** > serwy/idlex/ > > The extension manager loads extensions without needing to modify > config-extensions.def. This makes distributing extensions simpler. > > The features include: > > * Terminal-like behavior for PyShell. The cursor is confined to the prompt > and up/down arrow keys navigate the command history, similar to the > original Python interpreter. > * Matplotlib support for interactive figures when using the subprocess. > * Tabbed editor windows with drag'n'drop reordering. > * SubCodes, similar to Matlab cell mode and Sagemath cells, for quick code > prototyping without restarting the shell. > * Integrated reindent.py support. > * Improved code navigation with Code Browser. > * Cython editing and execution support. (Version 0.15.1) > * Line numbers for the Editor. > * Clear PyShell Window without restarting PyShell. > * Simple interface for enabling/disabling extensions. > * SearchBar, Squeezer, and IDLE2HTML included. (Originally by Tal Einat, > Noam Raphael, and Michael Haubenwallner) > > Some of these extensions might be useful in the standard IDLE distribution. > > - Roger > Way to go, Roger! I'm glad you've released this so soon :) I'm sure this will be useful for many people using IDLE, and will accelerate the acceptance of good extensions into the stdlib. BTW, which versions of Python does this work with? -------------- next part -------------- An HTML attachment was scrubbed... URL: From roger.serwy at gmail.com Tue Nov 8 20:17:17 2011 From: roger.serwy at gmail.com (Roger Serwy) Date: Tue, 08 Nov 2011 13:17:17 -0600 Subject: [Idle-dev] IdleX - The IDLE Extension Pack In-Reply-To: References: <4EB965BF.7060301@gmail.com> Message-ID: <4EB9803D.8080408@gmail.com> On 11/08/2011 12:33 PM, Tal Einat wrote: > On Tue, Nov 8, 2011 at 7:24 PM, Roger Serwy > wrote: > > Hi All, > > I have written a simple extension manager for IDLE and packaged > several extensions with it. It can be found at: > http://www.ews.illinois.edu/~ serwy/idlex/ > > > The extension manager loads extensions without needing to modify > config-extensions.def. This makes distributing extensions simpler. > > The features include: > > * Terminal-like behavior for PyShell. The cursor is confined to > the prompt and up/down arrow keys navigate the command history, > similar to the original Python interpreter. > * Matplotlib support for interactive figures when using the > subprocess. > * Tabbed editor windows with drag'n'drop reordering. > * SubCodes, similar to Matlab cell mode and Sagemath cells, for > quick code prototyping without restarting the shell. > * Integrated reindent.py support. > * Improved code navigation with Code Browser. > * Cython editing and execution support. (Version 0.15.1) > * Line numbers for the Editor. > * Clear PyShell Window without restarting PyShell. > * Simple interface for enabling/disabling extensions. > * SearchBar, Squeezer, and IDLE2HTML included. (Originally by Tal > Einat, Noam Raphael, and Michael Haubenwallner) > > Some of these extensions might be useful in the standard IDLE > distribution. > > - Roger > > > Way to go, Roger! > > I'm glad you've released this so soon :) > > I'm sure this will be useful for many people using IDLE, and will > accelerate the acceptance of good extensions into the stdlib. > > BTW, which versions of Python does this work with? Thanks Tal! This works with 2.7 and 3.2. (It should work on 2.6, but it isn't heavily tested). Cheers, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbeauvois at nvidia.com Mon Nov 21 10:56:34 2011 From: sbeauvois at nvidia.com (Sebastien Beauvois) Date: Mon, 21 Nov 2011 10:56:34 +0100 Subject: [Idle-dev] issue Message-ID: <39736C87C7695A4F859B19B67A5081D738A051EC1C@DEMAIL01.nvidia.com> Hi, I just installed the 2.7 Python version on my computer and I have a problem to run my scripts. It seems "Idle" makes a "restart" each time I run a new script in my shell and it occurs issues in my test execution because my first scripts contains all paths definition for other scripts. How can I remove the "Restart" in my shell (see pic attached)? I had a look in the option menu but I found nothing to solve it. Thank you in advance. Seb! ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: restart.PNG Type: image/png Size: 18811 bytes Desc: restart.PNG URL: From roger.serwy at gmail.com Tue Nov 22 19:03:19 2011 From: roger.serwy at gmail.com (Roger Serwy) Date: Tue, 22 Nov 2011 12:03:19 -0600 Subject: [Idle-dev] issue In-Reply-To: <39736C87C7695A4F859B19B67A5081D738A051EC1C@DEMAIL01.nvidia.com> References: <39736C87C7695A4F859B19B67A5081D738A051EC1C@DEMAIL01.nvidia.com> Message-ID: <4ECBE3E7.7000101@gmail.com> Hi Seb, IDLE restarts the shell each time you run a script. This is the default behavior in order to have a clean interpreter. In terms of code design, you could try using "import YOURSCRIPT" in your other scripts and refer to path definitions. For example: YOURSCRIPT.py: path_to_files="/home/user/files/" ANOTHERSCRIPT.py import YOURSCRIPT print(YOURSCRIPT.path_to_files) You can also modify the source code of IDLE itself. Look in ScriptBinding.py for "restart_shell". Commenting it out will disable shell restarts. (If you do this, then the only way to get a shell restart is to close the PyShell window and re-open it.) If you want to improve IDLE, you could submit a patch for making the shell restart an option on the Run menu. Alternatively, if you want to keep stateful information between script executions, try using the SubCode extension at http://idlex.sourceforge.net and use the "Run All Subcodes" feature. This will run your script without restarting the shell. - Roger On 11/21/2011 03:56 AM, Sebastien Beauvois wrote: > > Hi, > > I just installed the 2.7 Python version on my computer and I have a > problem to run my scripts. It seems "Idle" makes a "restart" each time > I run a new script in my shell and it occurs issues in my test > execution because my first scripts contains all paths definition for > other scripts. > > How can I remove the "Restart" in my shell (see pic attached)? > > I had a look in the option menu but I found nothing to solve it. > > Thank you in advance. > > Seb! > > This email message is for the sole use of the intended recipient(s) > and may contain confidential information. Any unauthorized review, > use, disclosure or distribution is prohibited. If you are not the > intended recipient, please contact the sender by reply email and > destroy all copies of the original message. > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From roger.serwy at gmail.com Tue Nov 22 19:09:09 2011 From: roger.serwy at gmail.com (Roger Serwy) Date: Tue, 22 Nov 2011 12:09:09 -0600 Subject: [Idle-dev] issue In-Reply-To: <39736C87C7695A4F859B19B67A5081D738A051EC1C@DEMAIL01.nvidia.com> References: <39736C87C7695A4F859B19B67A5081D738A051EC1C@DEMAIL01.nvidia.com> Message-ID: <4ECBE545.9080208@gmail.com> I accidentally clicked reply-list instead of reply-all. I just sent the email to Seb separately. On 11/21/2011 03:56 AM, Sebastien Beauvois wrote: > > Hi, > > I just installed the 2.7 Python version on my computer and I have a > problem to run my scripts. It seems "Idle" makes a "restart" each time > I run a new script in my shell and it occurs issues in my test > execution because my first scripts contains all paths definition for > other scripts. > > How can I remove the "Restart" in my shell (see pic attached)? > > I had a look in the option menu but I found nothing to solve it. > > Thank you in advance. > > Seb! > > This email message is for the sole use of the intended recipient(s) > and may contain confidential information. Any unauthorized review, > use, disclosure or distribution is prohibited. If you are not the > intended recipient, please contact the sender by reply email and > destroy all copies of the original message. > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: