On Tuesday, April 28, 2015 at 2:06:56 PM UTC-5, Jacob Peck wrote:

> Rev d30c0993f8 includes a new plugin, python_terminal.py, that adds an 
interactive python session to your log pane.

This is very cool.  A few comments:

1. The code is based on Python's code module in the standard library.  The 
code there is about the same magnitude as the code in the plugin, so the 
entire project is smallish.

2. It's off putting not to have a blinking cursor when the pane has focus.  
It's possible that Leo's focus-handling is to blame.  Jake, have you looked 
into this?  I would rate this the most important improvement.

3. > The console swallows stdout and stderr while focused, but properly 
resets it to the default values when unfocused.

Misleading. Both stdout and stderr are redirected to the interactive pane, 
as can easily be verified. Moreover, sys.__stdout__ and sys.__stderr__ are 
available should scripts need them.

4. The history stuff is quite useful.  It would be easy to update Leo's 
minibuffer history.  c.nodeHistory is an instance of the NodeHistory class 
defined in leoCommands.py.

5. The open-python-window command is much less useful than this plugin.

Thanks, Jake, for this work.  It is intriguing.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to