Re: Creating LEO outline from python program outside of LEO

2023-09-10 Thread Thomas Passin
This is from the docstring of the LeoBridge. It certainly sounds like what you want to do: A **host** program is a Python program separate from Leo. Host programs may be created by Leo, but at the time they are run host programs must not be part of Leo in any way. So if they are run from Leo, th

Re: Creating LEO outline from python program outside of LEO

2023-09-10 Thread Thomas Passin
You should be able to instantiate Leo with a null gui, and use its variables, like g. That's what the LeoBridge does. This would construct all the data structures that Leo needs to create outlines and import files. (Disclaimer - I've not done this myself). On Sunday, September 10, 2023 at 12

Re: Creating LEO outline from python program outside of LEO

2023-09-10 Thread brian
In the past, I’ve seen hacks like this take way too much time to maintain and be way too fragile. I’m trying to use the Leo code to abstract away these low level details. On Thursday, September 7, 2023 at 11:16:21 PM UTC-4 tbp1...@gmail.com wrote: > If your notes are not too complicated, her