Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wed, Oct 31, 2018 at 11:27 AM Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > I would try something like this for a minimal prototype: > >- Express a minimal Leo tree (with clones) as a Inspire Tree (yes I >know I have chosen a particular tech for interface). >- See how

Re: LeoWapp plans

2018-10-31 Thread Offray Vladimir Luna Cárdenas
Hi, I would try something like this for a minimal prototype: * Express a minimal Leo tree (with clones) as a Inspire Tree (yes I know I have chosen a particular tech for interface). * See how can I send changes to the Inspire Tree from a web interface (maybe using events). *

Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wed, Oct 31, 2018 at 10:17 AM vitalije wrote: For websocket to work there must be some thread which would check socket > and call appropriate methods/functions when websocket has been open, > closed, or new message has arrived. This thread should also take your > outgoing messages and send

Re: LeoWapp plans

2018-10-31 Thread Terry Brown
I think "Flexx uses tornado" was a crossing of threads (ha ha ha), I don't think it does. Flexx completely hides the websockets part, it's more like React (I think, having used that once), but basically signals / listeners / actions / reactions. It actually takes a while to understand what part

Re: LeoWapp plans

2018-10-31 Thread vitalije
> > Does that mean you think the flexx framework is a good idea? Or do you > mean that Tornado itself would be the framework? > I don't know about flexx. But you wrote above that flexx uses tornado for websockets. I conclude from that tornado is lower level than flexx. And I have implemented

Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wednesday, October 31, 2018 at 9:28:02 AM UTC-5, Terry Brown wrote: I mentioned this elsewhere, but just want to say Flexx is different in > that it translates Python to javascript, although not really, really > it lets you write javascript using Python syntax. So its intent is > that you

Re: Might be interesting for Leo WebApp

2018-10-31 Thread Offray Vladimir Luna Cárdenas
On 10/31/18 5:56 AM, Edward K. Ream wrote: > > > On Wed, Oct 31, 2018 at 5:18 AM rengel > wrote: > > I just stumbled upon a web outliner: > > https://dynalist.io/ > > I don't know if this might be interesting for the new webapp effort... > > >

Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wednesday, October 31, 2018 at 9:30:37 AM UTC-5, Edward K. Ream wrote: The first version of the script hard-coded the path to unittest.leo: c = controller.openLeoFile(r'c:\leo.repo\leo-editor\leo\test\unittest.leo') However, we can use the bridge's g.app.loadDir to generalize the code:

Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wednesday, October 31, 2018 at 5:32:33 AM UTC-5, Edward K. Ream wrote: 2. Create a hack that runs all unit tests. I expect all gui-related tests > to fail. > Leo's own --script logic is byzantine. It's simpler just to run the following test file from python itself: import

Re: LeoWapp plans

2018-10-31 Thread Terry Brown
I mentioned this elsewhere, but just want to say Flexx is different in that it translates Python to javascript, although not really, really it lets you write javascript using Python syntax. So its intent is that you don't write javascript, and if you do it that way, you probably won't be able to

Re: Might be interesting for Leo WebApp

2018-10-31 Thread rengel
Maybe a look at the page source helps. In the Javascript world litte is hidden... On Wednesday, October 31, 2018 at 11:56:56 AM UTC+1, Edward K. Ream wrote: > > > > On Wed, Oct 31, 2018 at 5:18 AM rengel > wrote: > >> I just stumbled upon a web outliner: >> >> https://dynalist.io/ >> >> I don't

Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wed, Oct 31, 2018 at 6:05 AM vitalije wrote: > I was thinking to suggest tornado but there were already lots of > suggestions, so I decided rather not to. > Your timing is spot on. Earlier I would not have been able to handle more suggestions. > > Tornado has websockets integrated and it

Re: LeoWapp plans

2018-10-31 Thread vitalije
I was thinking to suggest tornado but there were already lots of suggestions, so I decided rather not to. Tornado has websockets integrated and it is quite easy to use them. Tornado supported until recently Python 2.7 and earlier versions of Python 3. So it used to have some back-ported

Re: At last I understand sockets and servers

2018-10-31 Thread Edward K. Ream
On Mon, Oct 22, 2018 at 10:29 PM Terry Brown wrote: I just tried starting a Docker environment I have based on > conda/miniconda3 which is based on debian, and it starts in under a > second. It has tex-live / numpy / matplotlib (which pulls in a chunk > of Qt), so it's probably similar in size

Re: Might be interesting for Leo WebApp

2018-10-31 Thread Edward K. Ream
On Wed, Oct 31, 2018 at 5:18 AM rengel wrote: > I just stumbled upon a web outliner: > > https://dynalist.io/ > > I don't know if this might be interesting for the new webapp effort... > Thanks for this link. dynalist would be useful only if source code were available. It doesn't look like it.

Re: LeoWapp plans

2018-10-31 Thread Edward K. Ream
On Wednesday, October 31, 2018 at 5:32:33 AM UTC-5, Edward K. Ream wrote: flexx looks like exactly what LeoWapp needs, but I won't commit to flexx > until much later, if at all. > I forgot to mention two things: 1. Studying vue.js is high on my list. An important goal of LeoWapp is to

LeoWapp plans

2018-10-31 Thread Edward K. Ream
Terry, Speed and Offray recommend flexx, web.py and web2py frameworks respectively. The "don't do stuff twice" principle does not apply to study :-) I have just committed study outlines for websockets and flexx to leo-editor-contrib . Having

Might be interesting for Leo WebApp

2018-10-31 Thread rengel
I just stumbled upon a web outliner: https://dynalist.io/ I don't know if this might be interesting for the new webapp effort... -- 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,