--
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+unsubscribe@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.
markdown.py would be a much lighter dependency than pandoc, although a bit less featurefull. My goal is to have leo_edit_pane replace viewrendered. LEP will use either.
You probably take this in to account already, but a lot of these things are "recommends" rather than "requires" kind of dependencies.
You probably take this in to account already, but a lot of these things are "recommends" rather than "requires" kind of dependencies.Indeed. The way to cut through all this morass is to use the Anaconda distribution. This gives you almost everything you ever need, except pylint.
But it's a bug if viewrendered won't load without it, as rst doesn't need to be rendered to be useful, and viewrendered should show it in its raw form. I think the rst is displayed in the log as a fallback, which is ok.
def init():
'''Return True if the plugin has loaded successfully.'''
ok = bool(got_docutils and QtSvg and QtWebKitWidgets)
# 2017/08/18: register handlers only if all required imports
# were successful.
if ok:
g.plugin_signon(__name__)
g.registerHandler('after-create-leo-frame', onCreate)
g.registerHandler('close-frame', onClose)
g.registerHandler('scrolledMessage', show_scrolled_message)
return ok
Vitalije
On Thu, 23 Nov 2017 00:20:34 -0600
"Edward K. Ream" <edre...@gmail.com> wrote:
> Indeed. The way to cut through all this morass is to use the
> Anaconda distribution. This gives you almost everything you ever
> need, except pylint.
I think though that making `pip install leo-editor` work with or
without Anaconda is very valuable from the point of view of making Leo
easy for people to try.
Tell people to install Anaconda, and first they see what is still a
semi-commercial system, and then the find the download is ~500 Mb,
which is an impediment for some people and gives the impression it's
going to install a lot of stuff in your system.
Of course miniconda is
a much lighter weight solution, but then you have to handle
dependencies again.
pip is definitely the most cross-platform light
weight out of the box installer for Python apps.
My 2 cents: the only dependencies that needed to be reported are modules needed to run Leo on a standard python install.Thus, in my view, Leo should present itself with a set of plugins that will work out of the box (i.e. on a standard python/os-install).
I'm not saying that Anaconda / Miniconda shouldn't be suggested *among*
the options, they just shouldn't be presented as the only option,
just as getting Leo from git shouldn't be the only option.
I think it comes down to what filter we're trying to apply to incoming
users. Python devs only? Or all comers, even writers ;-)
Matt's pip install seems to get Leo running with minimal effort, as
long as you use Python 3.
... But the important thing is
that it gets Leo running so the user has a chance to see it rather than
just drifting on to something that's easier to install.
Spelling and formatting rst aren't critical to demoing Leo - Leo should
start with nothing more than PyQt, as far as I'm aware.
Hi,
Miniconda only partly mitigates these drawbacks. I'm not saying that Anaconda / Miniconda shouldn't be suggested *among* the options, they just shouldn't be presented as the only option, just as getting Leo from git shouldn't be the only option. I think it comes down to what filter we're trying to apply to incoming users. Python devs only? Or all comers, even writers ;-)