<delurk>
Sockets and protocols are great, except if you want to hang it on the internet, in which case you are far better using tried and tested methodologies and frameworks.
Actually, I'd say use tried and tested for even local service. A specialist protocol is only really required if you are doing something radically different from what has come before, which I get the feeling we are not talking about here.
Hi,
It's good to see the advances in the servers direction. The idea of a more decoupled Leo with web interfaces and the idea of "outlining" services to other systems and languages that some have proposed seems close.
I would avoid going into the Apache path and I would try to choose a minimalist pure python web framework (bottle, flask, other used by Jupyter) that can deal with the server/sockets core code functionality in Leo and leave the scaling part to a server neutral back-end (Apache, Cherokee, Lighttpd, Enginx, etc.)
When I was trying to implement ideas from Leo in Pharo/Smalltak I
remember focusing on the "outlining experience" first. I wanted to
be able to add/remove and move nodes that have a "header" and a
"body" inside Pharo. Sometimes, when I think in this idea of
"outlining" services using a web interface I think which is the
minimal web library that provides me a tree interface, for example
Inspire Tree[1], and how I would connect it to the tree
representation I already have in Grafoscopio. Because I don't want
to have a lot of moving parts in different languages and
programming paradigms (something that already happens to Jupyter),
I would like to create some socket/service that connects the web
interface with the Pharo backend. So all the machinery behind
trees is already there and the only "new thing" I'm implementing
is a way to decouple the GUI so it can be a web app.
[1] http://www.inspire-tree.com/
Hopefully, something like that can be the path for services/sockets in Leo. I wonder how Leo-Vue can connect to Leo server, for example and what is the demo MVP for a web interface that connect with a Leo backend.
Cheers,
Offray
--
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+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
> We can start by assuming ajax
> <https://www.w3schools.com/xml/ajax_xmlhttprequest_create.asp>, using
> http.
I wonder if Cormac was thinking of frameworks like Django, but perhaps
more appropriate (lighter) for Leo, Flask?
Cheers -Terry
I wonder if Cormac was thinking of frameworks like Django, but perhaps
more appropriate (lighter) for Leo, Flask?
Also mod_http.py plugin allows execution of arbitrary Python code in a
running Leo, so there's that to look at too.
It's good to see the advances in the servers direction. The idea of a more decoupled Leo with web interfaces and the idea of "outlining" services to other systems and languages that some have proposed seems close.
I would avoid going into the Apache path and I would try to choose a minimalist pure python web framework (bottle, flask, other used by Jupyter) that can deal with the server/sockets core code functionality in Leo and leave the scaling part to a server neutral back-end (Apache, Cherokee, Lighttpd, Enginx, etc.)
When I was trying to implement ideas from Leo in Pharo/Smalltak I remember focusing on the "outlining experience" first. I wanted to be able to add/remove and move nodes that have a "header" and a "body" inside Pharo. Sometimes, when I think in this idea of "outlining" services using a web interface I think which is the minimal web library that provides me a tree interface, for example Inspire Tree[1], and how I would connect it to the tree representation I already have in Grafoscopio. Because I don't want to have a lot of moving parts in different languages and programming paradigms (something that already happens to Jupyter), I would like to create some socket/service that connects the web interface with the Pharo backend. So all the machinery behind trees is already there and the only "new thing" I'm implementing is a way to decouple the GUI so it can be a web app.
[1] http://www.inspire-tree.com/
Hopefully, something like that can be the path for services/sockets in Leo. I wonder how Leo-Vue can connect to Leo server, for example and what is the demo MVP for a web interface that connect with a Leo backend.
On Sun, Oct 21, 2018 at 11:28 AM Terry Brown <terry...@gmail.com> wrote:I wonder if Cormac was thinking of frameworks like Django, but perhaps
more appropriate (lighter) for Leo, Flask?All options are on the table, but see below.Also mod_http.py plugin allows execution of arbitrary Python code in a
running Leo, so there's that to look at too.Hmm. Is Leo as a web app is feasible?
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 to something that would run
Leo.