I have found that it's better to configure the Pyzo shell for "none- No Gui 
Support" if you want to launch Leo in the way I illustrated above.  
Otherwise I have had circumstances in which Pyzo's handling of PyQt5 seems 
to interfered with Leo's.

I don't know how this would play with Ipython/Jupiter.

On Wednesday, April 8, 2020 at 12:25:56 PM UTC-4, Thomas Passin wrote:
>
>
> On Wednesday, April 8, 2020 at 11:37:18 AM UTC-4, Matt Wilkie wrote:
>>
>> Thanks for the extra detail Thomas. 
>>
>> Something like this function in runLeo.py 
>> <https://github.com/leo-editor/leo-editor/blob/devel/leo/core/runLeo.py> 
>> to add command line argument might be used to invoke no-docks:
>>
>> def run_console(*args, **keywords): 
>>    """Initialize and run Leo in console mode gui""" 
>>    import sys 
>>    sys.argv.append('--gui=console') 
>>    run(*args, **keywords)
>>
>
> I wouldn't be using --gui=console to use docks, but this worked like a 
> charm (no def: needed) -
>
> import leo 
>
> import sys
>
> sys.argv.append('--use-docks')
>
> leo.run()
>
>
> Then CTRL-ENTER in Pyzo.
>
>
> Thanks for the idea!
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/cef2f842-2064-4786-a848-42a529d21e08%40googlegroups.com.

Reply via email to