Re: python_terminal.py

2018-11-04 Thread Edward K. Ream
On Fri, Nov 2, 2018 at 5:21 PM Chris George wrote: The solution was to disable [python_terminal.py]. > Thanks for this report. I've just created #1009 <https://github.com/leo-editor/leo-editor/issues/1009> for this issue. Edward -- You received this message because you are s

python_terminal.py

2018-11-02 Thread Chris George
I recently had occasion to install Leo into a brand new vanilla Ubuntu. I had no myLeoSettings.leo so the default settings were loaded. python_terminal.py is enabled by default. I won't go into the nasty error messages etc. that trying to run Leo with python 3.6.6 and PyQt 5.11.2 spewed at me

Re: 53da5e01b rewrites the guts of python_terminal.py

2018-05-26 Thread Edward K. Ream
On Friday, May 25, 2018 at 11:38:20 AM UTC-5, Edward K. Ream wrote: > > This is, at last, a proper fix for #893 > and #792. > > And now rev 6f3eaf1

53da5e01b rewrites the guts of python_terminal.py

2018-05-25 Thread Edward K. Ream
This is, at last, a proper fix for #893 and #792. The new code calls code.compile_command so as to mimic, as much as possible, the action of Python's repl. See this page

Re: python_terminal.py now enabled by default in master & devel

2018-03-03 Thread Edward K. Ream
On Sat, Mar 3, 2018 at 10:04 AM, Edward K. Ream wrote: This plugin creates a python terminal in the Log pane. > ​It may be possible to use an ipython terminal instead. This will always be optional I am excited about the possibilities: better syntax coloring, better

python_terminal.py now enabled by default in master & devel

2018-03-03 Thread Edward K. Ream
This plugin creates a python terminal in the Log pane. 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

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-05-01 Thread Edward K. Ream
On Fri, May 1, 2015 at 5:01 PM, Edward K. Ream edream...@gmail.com wrote: ​ ​ So I think the problem is in PyInterp. ​Rev ca8fd45 fixes the problem. PyInterp​.focusInEvent must call the base focusInEvent method in order for ensureCursorVisible to have effect. I prefer the following over

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-05-01 Thread Jacob Peck
On 5/1/2015 9:29 AM, Edward K. Ream wrote: 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

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-05-01 Thread Edward K. Ream
On Fri, May 1, 2015 at 8:29 AM, Edward K. Ream edream...@gmail.com wrote: 2. It's off putting not to have a blinking cursor when the pane has focus. ​It took awhile to track down that c.​idle_focus_helper is the code that checks for missing focus. However, the active switch isn't set, which

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-05-01 Thread Edward K. Ream
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

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-30 Thread john lunzer
It doesn't seem like Spyder is doing anything that Leo couldn't do. There may be a good reason that Spyder handles kernels externally, it might be the only reasonable way to get mulitple IPython kernels running. All of that said it's going to take me quite of bit of study of Leo and IPython to

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-30 Thread Peter Mills
I've done a bit of looking at Spyder myself with similar ideas. However, Spyder's IPython console uses an external IPython kernel, so it would be impossible(?) to access Leo's innards using this technique. In fact, I haven't been able to find a way to have both the GUI of IPython QtConsole

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-30 Thread Edward K. Ream
On Wed, Apr 29, 2015 at 4:53 AM, john lunzer lun...@gmail.com wrote: If ​...​ I get Edward's advice about how to deal with the PyQt4 API V1/V2 issue I was having. Forcing Leo to import V2 doesn't seem to break anything. Since Leo supports PyQt5 which only uses V2 I believe, then maybe it

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-29 Thread john lunzer
functional apart from the g,c,p omissions, or does it need the ILeo bug fixed first? Is the code available yet? On Wednesday, April 29, 2015 at 5:06:56 AM UTC+10, Jacob Peck wrote: Hi all, Rev d30c0993f8 includes a new plugin, python_terminal.py, that adds an interactive python session

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-28 Thread john lunzer
for Leo! With these types of plugins Leo might appeal to some of the Spyder crowd (from which I came and had been missing an integrated Python/IPython Console). On Tuesday, April 28, 2015 at 3:06:56 PM UTC-4, Jacob Peck wrote: Hi all, Rev d30c0993f8 includes a new plugin, python_terminal.py

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-28 Thread john lunzer
includes a new plugin, python_terminal.py, that adds an interactive python session to your log pane. Here's the docstring: Leo.plugins.python_terminal Provides an interactive python terminal in the log pane. By Jacob M. Peck Usage Enabling this plugin will add a new tab to the Log

Re: New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-28 Thread Peter Mills
apart from the g,c,p omissions, or does it need the ILeo bug fixed first? Is the code available yet? On Wednesday, April 29, 2015 at 5:06:56 AM UTC+10, Jacob Peck wrote: Hi all, Rev d30c0993f8 includes a new plugin, python_terminal.py, that adds an interactive python session to your log

New plugin: python_terminal.py, adds an interactive python session to your log pane

2015-04-28 Thread Jacob Peck
Hi all, Rev d30c0993f8 includes a new plugin, python_terminal.py, that adds an interactive python session to your log pane. Here's the docstring: Leo.plugins.python_terminal Provides an interactive python terminal in the log pane. By Jacob M. Peck Usage Enabling this plugin will add