Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85525 > unrolled thread
| Started by | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| First post | 2015-02-11 05:11 -0800 |
| Last post | 2015-02-12 14:05 +1100 |
| Articles | 10 — 5 participants |
Back to article view | Back to comp.lang.python
idle feature request Rustom Mody <rustompmody@gmail.com> - 2015-02-11 05:11 -0800
Re: idle feature request Fabien <fabien.maussion@gmail.com> - 2015-02-11 14:20 +0100
Re: idle feature request Rustom Mody <rustompmody@gmail.com> - 2015-02-11 05:29 -0800
Re: idle feature request Fabien <fabien.maussion@gmail.com> - 2015-02-11 14:48 +0100
Re: idle feature request Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-11 18:00 +0000
Re: idle feature request Terry Reedy <tjreedy@udel.edu> - 2015-02-11 21:27 -0500
Re: idle feature request Rustom Mody <rustompmody@gmail.com> - 2015-02-11 18:48 -0800
Re: idle feature request Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-12 04:48 +0000
Re: idle feature request Terry Reedy <tjreedy@udel.edu> - 2015-02-12 02:17 -0500
Re: idle feature request Chris Angelico <rosuav@gmail.com> - 2015-02-12 14:05 +1100
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-02-11 05:11 -0800 |
| Subject | idle feature request |
| Message-ID | <f96ffbb6-127f-41a7-a0d9-59efd30aea2d@googlegroups.com> |
Context: I am using idle for taking python classes. Finish the class and run out usually in a hurry and forget to save the idle interaction window. Would like to save it so that I can mail it to the students. In emacs I could set a hook to make arbitrary 'buffers' like the python-idle shell become 'saving-buffers' like typical file buffers. ie in emacs like most other editors, a modified file is ask-to-save The same can be setup for other (non-file) buffers like a python interaction shell Can I do the same for idle. [Note it would be great to have this feature in idle but I am only looking for a hand in where in the idle sources I an fudge a patch for my own use ]
[toc] | [next] | [standalone]
| From | Fabien <fabien.maussion@gmail.com> |
|---|---|
| Date | 2015-02-11 14:20 +0100 |
| Message-ID | <mbfkul$bb$1@speranza.aioe.org> |
| In reply to | #85525 |
On 11.02.2015 14:11, Rustom Mody wrote: > Context: > I am using idle for taking python classes. I know this is not your question, but: have you considered using iPython notebooks for teaching? They save automatically, look nice, and can be sent as code, html, rst, ... Fabien
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-02-11 05:29 -0800 |
| Message-ID | <7be0d2e3-cf0f-4ba4-b995-0b17d3e0d877@googlegroups.com> |
| In reply to | #85526 |
On Wednesday, February 11, 2015 at 6:50:35 PM UTC+5:30, Fabien wrote: > On 11.02.2015 14:11, Rustom Mody wrote: > > Context: > > I am using idle for taking python classes. > > I know this is not your question, but: have you considered using iPython > notebooks for teaching? They save automatically, look nice, and can be > sent as code, html, rst, ... > > Fabien Yeah I have considered (and thanks for reminding). However we are at that peculiar point where - de jure college provides computers - de facto everyone has a laptop Exploiting the second is a big advantage but its also chaos. Some windows; some linux; some macs etc So getting up and running with minimal headache is an important priority.
[toc] | [prev] | [next] | [standalone]
| From | Fabien <fabien.maussion@gmail.com> |
|---|---|
| Date | 2015-02-11 14:48 +0100 |
| Message-ID | <mbfmjp$526$1@speranza.aioe.org> |
| In reply to | #85528 |
On 11.02.2015 14:29, Rustom Mody wrote: > So getting up and running with minimal headache is an important priority. Yes true. I consider Notebooks as a way to do "frontal" teaching, not necessarily usefull if students have to redo what you are doing on screen. For that, notebooks are rather prone to confusion because the order with wich you run the cells is important, so total beginners are really confused about variables overwritting etc. Fabien
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-02-11 18:00 +0000 |
| Message-ID | <mailman.18663.1423677617.18130.python-list@python.org> |
| In reply to | #85525 |
On 11/02/2015 13:11, Rustom Mody wrote: > Context: > I am using idle for taking python classes. > > Finish the class and run out usually in a hurry and forget to save the > idle interaction window. Would like to save it so that I can mail it to the students. > > In emacs I could set a hook to make arbitrary 'buffers' like the python-idle > shell become 'saving-buffers' like typical file buffers. > ie in emacs like most other editors, a modified file is ask-to-save > The same can be setup for other (non-file) buffers like a python interaction shell > > Can I do the same for idle. > > [Note it would be great to have this feature in idle but I am only looking for > a hand in where in the idle sources I an fudge a patch for my own use > ] > If there isn't an enhancement request on the bug tracker for this please raise one, that way this doesn't get lost. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2015-02-11 21:27 -0500 |
| Message-ID | <mailman.18675.1423708056.18130.python-list@python.org> |
| In reply to | #85525 |
On 2/11/2015 1:00 PM, Mark Lawrence wrote: > On 11/02/2015 13:11, Rustom Mody wrote: >> Context: >> I am using idle for taking python classes. Teaching or taking? >> Finish the class and run out usually in a hurry and forget to save the >> idle interaction window. Do you mean the shell window? >> Would like to save it so that I can mail it to the students. Then save it. What am I not understainding? Your problem scenario is not clear to me. See below for a possible description that I do understand. >> In emacs I could set a hook to make arbitrary 'buffers' like the >> python-idle >> shell become 'saving-buffers' like typical file buffers. >> ie in emacs like most other editors, a modified file is ask-to-save That is true in Idle as well. >> The same can be setup for other (non-file) buffers like a python >> interaction shell I have never used emacs so I do not understand your reference thereto. In Windows, the interactive console history cannot be saved except by awkwardly selecting and cutting. Idle does allow the shell contents to be saved. >> Can I do the same for idle. "Same what?" is the question. > If there isn't an enhancement request on the bug tracker for this please > raise one, that way this doesn't get lost. Let us clarify the request here first. If one saves the shell with 'save as', the filename is added to the title bar. If one does something more, the name in bracketed with *s to indicate the the memory buffer has been changed since it was last saved. This is the same as regular edit windows. However, when one quits, then, unlike a regular edit window, there is no ask-to-save warning. Is this what you want? This would seem reasonable and likely easy. (I would, however, not want the prompt when the buffer has not been saved -- or this could be a configuration option.) -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-02-11 18:48 -0800 |
| Message-ID | <3bf81ef4-e022-4cd3-88d5-637fbf532a88@googlegroups.com> |
| In reply to | #85560 |
On Thursday, February 12, 2015 at 7:57:48 AM UTC+5:30, Terry Reedy wrote: > On 2/11/2015 1:00 PM, Mark Lawrence wrote: > > On 11/02/2015 13:11, Rustom Mody wrote: > >> Context: > >> I am using idle for taking python classes. > > Teaching or taking? Teaching -- I would like to mail¹ students the interaction so they can pay more attention and less bother about taking notes. > > >> Finish the class and run out usually in a hurry and forget to save the > >> idle interaction window. > > Do you mean the shell window? Yeah > > >> Would like to save it so that I can mail it to the students. > > Then save it. What am I not understainding? Your problem scenario is > not clear to me. See below for a possible description that I do understand. > > >> In emacs I could set a hook to make arbitrary 'buffers' like the > >> python-idle > >> shell become 'saving-buffers' like typical file buffers. > >> ie in emacs like most other editors, a modified file is ask-to-save > > That is true in Idle as well. > > >> The same can be setup for other (non-file) buffers like a python > >> interaction shell > > I have never used emacs so I do not understand your reference thereto. > In Windows, the interactive console history cannot be saved except by > awkwardly selecting and cutting. Idle does allow the shell contents to > be saved. > > >> Can I do the same for idle. > > "Same what?" is the question. > > > If there isn't an enhancement request on the bug tracker for this please > > raise one, that way this doesn't get lost. > > Let us clarify the request here first. > > If one saves the shell with 'save as', the filename is added to the > title bar. If one does something more, the name in bracketed with *s to > indicate the the memory buffer has been changed since it was last saved. > This is the same as regular edit windows. > > However, when one quits, then, unlike a regular edit window, there is no > ask-to-save warning. Is this what you want? This would seem reasonable > and likely easy. (I would, however, not want the prompt when the buffer > has not been saved -- or this could be a configuration option.) Yeah thats what I want. In a file-window there is 'ask-to-save' as soon as a single character is typed. I want similar for shell window. As I said if there is a config option for that, thats best. But if I have to put in a few lines in my own idle that's fine too². [BTW I have some other feature requests too. Is this the best forum to talk of them? And thanks for your work on idle :-) ] ¹ I just discovered that mail is passe and they would prefer whatsapp! Well whatever :-) ² I have a class tomorrow! (but I'll try to remember)!!
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-02-12 04:48 +0000 |
| Message-ID | <mailman.18680.1423716524.18130.python-list@python.org> |
| In reply to | #85562 |
On 12/02/2015 02:48, Rustom Mody wrote: > > [BTW I have some other feature requests too. Is this the best forum to talk of them? And thanks for your work on idle :-) ] > Here is as good a place as any although there is an IDLE development mailing list at https://mail.python.org/mailman/listinfo/idle-dev or gmane.comp.python.idle Have you checked on the bug tracker to see what has already been requested? Also have you seen IDLEX http://idlex.sourceforge.net/ ? You might be able to beg, steal or borrow something from it and it's available from pypi. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2015-02-12 02:17 -0500 |
| Message-ID | <mailman.18683.1423725451.18130.python-list@python.org> |
| In reply to | #85562 |
On 2/11/2015 9:48 PM, Rustom Mody wrote: > On Thursday, February 12, 2015 at 7:57:48 AM UTC+5:30, Terry Reedy wrote: >> If one saves the shell with 'save as', the filename is added to the >> title bar. If one does something more, the name in bracketed with *s to >> indicate the the memory buffer has been changed since it was last saved. >> This is the same as regular edit windows. >> >> However, when one quits, then, unlike a regular edit window, there is no >> ask-to-save warning. Is this what you want? This would seem reasonable >> and likely easy. The Shell window is a subclass of the (base) Editor window. So enhancement 1, invoke ask-to-save after save-as should be easy. Find the current code (grep the message) and determine why it does not work for the shell. Saving the shell is, I believe, rare, and I believe there is half a chance that a person who has saved the shell once will want to do so again. >> (I would, however, not want the prompt when the buffer >> has not been saved -- or this could be a configuration option.) Enhancement 2 would be adding a configuration option to invoke ask-to-save even without save-as. I am sure that this would be harder. > Yeah thats what I want. > In a file-window there is 'ask-to-save' as soon as a single character is typed. > I want similar for shell window. > As I said if there is a config option for that, thats best. > But if I have to put in a few lines in my own idle that's fine too². > [BTW I have some other feature requests too. Is this the best forum to talk of them? And thanks for your work on idle :-) ] Idle-sig is pretty dead, so go ahead here. You do not have to search the tracker if you do not want to. I have a categorized list of all Idle issues on the tracker (with issue numbers) and will look up ideas against that list anyway. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-02-12 14:05 +1100 |
| Message-ID | <mailman.18678.1423710332.18130.python-list@python.org> |
| In reply to | #85525 |
On Thu, Feb 12, 2015 at 1:27 PM, Terry Reedy <tjreedy@udel.edu> wrote: > However, when one quits, then, unlike a regular edit window, there is no > ask-to-save warning. Is this what you want? This would seem reasonable and > likely easy. (I would, however, not want the prompt when the buffer has not > been saved -- or this could be a configuration option.) That's my understanding of the request, too. It seems reasonable to have a way to be prompted about saving. ChrisA
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web