Re: Leo 5.7b2 on PyPi - please test

2018-02-25 Thread Viktor Ransmayr
Hello Matt,

2018-02-25 2:56 GMT+01:00 Matt Wilkie :

> Hi Folks,
>
> I've uploaded `leo-5.7b2.dev27` to PyPi.org. It installs successfully on
> Win7x64 for Python 3.6 and Python 2.7. It should work on Win10 and Linux
> also, can anyone confirm that? Run the command below from your desired
> command shell:
>
> End user install:
>
> pip install leo
>

Like Lewis I also performed a  "pip install leo --upgrade" from version
dev406 to version 5.7b2.

The only *small* surprise on my side was that 'leoc.exe' is no longer
available.

However looking at the Scripts directory in my upgraded virtual environment
I quickly found out that 'leo.exe' was still available.

For the record here's the startup log:



Leo Log Window
Leo 5.7b2, build 20180214224634, Wed Feb 14 22:46:34 PST 2018
Not running from a git repo
Python 3.6.3, PyQt version 5.10.0
Windows 10 AMD64 (build 10.0.16299) SP0
isPython3: True
caching enabled
reading: C:\Users\Viktor\Worklogs\WL2018.leo
read outline in 0.73 seconds
saved: WL2018.leo
saved: WL2018.leo



Thanks a lot for this work. - It's greatly appreciated.

With kind regards,

Viktor

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: how to run a script when Leo starts

2018-02-25 Thread Phil
There would still be a security risk for a specific Leo file, which would 
need addressing, but it perhaps simplifies the problem somewhat.

Actually, the security risk would be higher if a Leo file could turn on 
@script by itself. It means that even when the global setting disallows 
@script, a specific Leo file could override that. Yuck!

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: how to run a script when Leo starts

2018-02-25 Thread Phil
Alright, I have done a little test, as follows:


In myLeoSettings.leo:
@bool scripting-at-script-nodes = True

With test.leo
Under @settings, include this:
@bool scripting-at-script-nodes = True

create node @script myscript containing this:
import datetime
for p in c.all_positions():
if p.h == 'THIS_IS_A_TEST':
p.b = datetime.datetime.now()
g.es('@script has run')

create an empty node with headline THIS_IS_A_TEST

When the outline is loaded, the following appears in the log window:
Security warning! Ignoring...
@bool scripting-at-script-nodes = True
This setting can be True only in
leoSettings.leo or myLeoSettings.leo
disabled @script: myscript

Make this change:
@bool scripting-at-script-nodes = False

When the outline is loaded, the following appears in the log window:
disabled @script: myscript

Finally, make this change:
@@bool scripting-at-script-nodes = False

When the outline is loaded, the following appears in the log window:
executing script myscript
@script has run
and the node THIS_IS_A_TEST has the current date/time.


This shows that the value of the outline-local *scripting-at-script-nodes* 
flag is tested when test.leo is loaded, and that its value affects the 
ability to run @script nodes. Thus, it would appear that there could be an 
outline-local version of the flag, so that the global flag in 
myLeoSettings.leo could be set to False for default behavior. There would 
still be a security risk for a specific Leo file, which would need 
addressing, but it perhaps simplifies the problem somewhat.

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Jupyter as Leo's what ? [via] A study outline containing eric6 docs

2018-02-25 Thread Zoom.Quiet
On Sun, Feb 25, 2018 at 10:14 PM, Edward K. Ream  wrote:
> On Sun, Feb 25, 2018 at 3:19 AM, Zoom.Quiet  wrote:
>
>> Leo can embedded Jupyter as inter. command;
>> will make product world merged as code world?
>
>
> That was not my intention.
>
>
>> of course:
>> this kinds of enhancement, is not for core ability,
>> not necessarily think now ;-)
>
>
> Correct.  There are many reasons to study the jupyter world without wanting
> to use its interface or embed Leo in it :-)
>
> For instance:
>
> 1. Most editors/ide's have an easy way to switch themes.  This activates an
> already-created theme file.  Leo should use such a scheme, reserving Leo's
> complex @theme machinery only for theme developers themselves. Furthermore,
> studying the themes themselves may prove useful.
>

Hummm.. IMHO:
- theme is important for developer
- but easy switch theme is not big things
- because if someone always switch theme for show
  must one designer not developer,
  when i config love theme, never ever change it,
  because in new theme, will odd my debug speed.

> 2. Both jupyter and eric6 use side tabs to great effect.  Leo might benefit
> from side tabs too.
>
> 3. The jupyter Settings menu has a Settings: Text Editor Indentation menu
> that has these items:
>
>Indent with tabs
>Spaces: 1
>Spaces: 2
>Spaces: 4
>Spaces: 8
>
> This is clearer than any other explanation of indentation I have ever seen.
> Not sure whether this can or should @tabwidth, but I'll keep it in the back
> of my mind.
>

IMHO:
Leo's outline is better than TAB system,
because walking/jump in outline, is flow my self think world,
but multi-TAB?
such as worm-hole, can not help me:
who am i
where am i
want am i



> 4. It may be possible to use the jupyter servers/kernels in some clever way,
> without re-imagining all of Leo ;-)
>

of course, this is the biggest reason for IPython:NB upgrade as Jupyter:
SEE:
Four Ways to Extend Jupyter Notebook - Parente's Mindtrove
https://mindtrove.info/4-ways-to-extend-jupyter-notebook/
Jupyter Notebooks as RESTful Microservices - IBM Emerging Technologies Blog

http://blog.ibmjstart.net/2016/01/28/jupyter-notebooks-as-restful-microservices/
Jupyter Notebook Server API · jupyter/jupyter Wiki
https://github.com/jupyter/jupyter/wiki/Jupyter-Notebook-Server-API
Contents API — Jupyter Notebook 5.4.0 documentation
http://jupyter-notebook.readthedocs.io/en/stable/extending/contents.html
jupyterhub/jupyterhub: Multi-user server for Jupyter notebooks
https://github.com/jupyterhub/jupyterhub
...

in fact, Jupyter can usage as one frinedly distributed computer platform...

that means, Leo can publish self JupyterHub server as:
http://ipynb.leoeditor.com/

so when Leo trigger from some commonds;
will transform nodes as JSON sent the Jupyter backend srv.;
echo the running result as JSON;
rebuild GUI as new contents.

of course:
JupyterHub can running local host also.
with Leo Server Extensions, echo Leo edit action.


> Edward
>
> --
> 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 post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.



-- 
life is pathetic, go Pythonic! 人生苦短, Python当歌!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization learning!

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Jupyter as Leo's what ? [via] A study outline containing eric6 docs

2018-02-25 Thread Edward K. Ream
On Sun, Feb 25, 2018 at 3:19 AM, Zoom.Quiet  wrote:

Leo can embedded Jupyter as inter. command;
> will make product world merged as code world?
>

​That was not my intention.​


of course:
> this kinds of enhancement, is not for core ability,
> not necessarily think now ;-)
>

​Correct.  There are many reasons to study the jupyter world without
wanting to use its interface or embed Leo in it :-)

For instance:

1. Most editors/ide's have an easy way to switch themes.  This activates an
*already-created* theme ​file.  Leo should use such a scheme, reserving
Leo's complex @theme machinery only for theme developers themselves.
Furthermore, studying the themes themselves may prove useful.

2. Both jupyter and eric6 use side tabs to great effect.  Leo might benefit
from side tabs too.

3. The jupyter Settings menu has a Settings: Text Editor Indentation menu
that has these items:

   Indent with tabs
   Spaces: 1
   Spaces: 2
   Spaces: 4
   Spaces: 8

This is clearer than any other explanation of indentation I have ever seen.
Not sure whether this can or should @tabwidth, but I'll keep it in the back
of my mind.

4. It may be possible to use the jupyter servers/kernels in some clever
way, without re-imagining all of Leo ;-)

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo 5.7b2 on PyPi - please test

2018-02-25 Thread lewis
Once again I forgot to hide my Leo git repo.

Here is the log:



*Leo Log WindowLeo 5.7b2, build 20180214224634, Wed Feb 14 22:46:34 PST 
2018Not running from a git repoPython 3.6.4, PyQt version 5.10.0*

Please note at 'Running Leo' there is no clear instruction that if running 
a Leo pip installation, the run command is simply *leo.*
Launchleo.py doesn't work, so the running leo docs will need to make that 
clear.

Regards
Lewis

On Sunday, February 25, 2018 at 9:05:28 PM UTC+11, lewis wrote:
>
> Hi Matt,
>
> [snip]
> I want to verify I can run version: 5.7b2.dev27
> You can see I'm wearing my new user hat :)
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo 5.7b2 on PyPi - please test

2018-02-25 Thread lewis
Hi Matt,

I upgraded my existing leo pip installation on my Win10 Python3 machine.
pip install --upgrade leo

It installed the new package requirement 'semantic-version'. Here is the 
pip log:
[snip]
Installing collected packages: semantic-version, sphinx, leo
  Found existing installation: Sphinx 1.7.0
Uninstalling Sphinx-1.7.0:
  Successfully uninstalled Sphinx-1.7.0
  Found existing installation: leo 5.7.dev406
Uninstalling leo-5.7.dev406:
  Successfully uninstalled leo-5.7.dev406
Successfully installed leo-5.7b2.dev27 semantic-version-2.6.0 sphinx-1.7.1
[end]

However there is no launchleo.py file in the directory
C:\~\AppData\Local\Programs\Python\Python36\Lib\site-packages\leo

Is that expected?
I want to verify I can run version: 5.7b2.dev27
You can see I'm wearing my new user hat :)

Regards
Lewis

On Sunday, February 25, 2018 at 12:56:51 PM UTC+11, Matt Wilkie wrote:
>
>  It should work on Win10 and Linux also, can anyone confirm that? 
> Thanks!
>
> matt 
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Jupyter as Leo's what ? [via] A study outline containing eric6 docs

2018-02-25 Thread Zoom.Quiet
On Sun, Feb 25, 2018 at 4:51 PM, Edward K. Ream  wrote:
> On Sun, Feb 25, 2018 at 1:36 AM, Zoom.Quiet  wrote:
>>
>> OT: JupyterLab Documentation — JupyterLab 1.0 Beta documentation
>> http://jupyterlab.readthedocs.io/en/latest/
>>
>> Jupyter will make web page as IDE...
>
>
> Thanks for this link.  Imo it is on topic.
>

sorry for share link not with my idea :
Jupyter is the REPL interface beyond language ,
can make doc./code/running all in one page;

Leo not REPL, focus result problems is different with Jupyter:
every program is make up by:
- think world <~ what is my understand the goal task
- code world <~ what is compiler can understand the goal task
- product world <~ what is systems can understand my solution

Leo base Literate Programming thought easy merge these world in one interface:
- think world => logging as outlines
- code world => edit pane
- product world => @clean/@path/..etc. commands

BUT:
Leo can not like IDE/Jupyter can running on the spot,
and every one time change interface,
such as leave Leo, jump into iTerm2 for running code , observe log printing,
will hurt attention, lost Mind Cache...

SO if:
Leo can embedded Jupyter as inter. command;
will make product world merged as code world?

of course:
this kinds of enhancement, is not for core ability,
not necessarily think now ;-)

> I have no clear idea how jupyter/lab relates Leo, but imo we must keep
> paying attention to it. The jupyter project is one of the most important and
> interesting projects in the world.
>
> Edward
>
> --
> 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 post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.



-- 
life is pathetic, go Pythonic! 人生苦短, Python当歌!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization learning!

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A study outline containing eric6 docs

2018-02-25 Thread Edward K. Ream
On Sun, Feb 25, 2018 at 1:36 AM, Zoom.Quiet  wrote:

> OT: JupyterLab Documentation — JupyterLab 1.0 Beta documentation
> http://jupyterlab.readthedocs.io/en/latest/
>
> Jupyter will make web page as IDE...
>

​Thanks for this link.  Imo it is *on* topic.

I have no clear idea how jupyter/lab relates Leo, but imo we must keep
paying attention to it. The jupyter project is one of the most important
and interesting projects in the world.

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo 5.7b2 on PyPi - please test

2018-02-25 Thread Edward K. Ream
On Sat, Feb 24, 2018 at 7:56 PM, Matt Wilkie  wrote:

> Hi Folks,
>
> I've uploaded `leo-5.7b2.dev27` to PyPi.org. It installs successfully on
> Win7x64 for Python 3.6 and Python 2.7. It should work on Win10 and Linux
> also, can anyone confirm that?
>

​Many thanks, Matt, for this work.  I'll test this later today or tomorrow.

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: What does it mean to say that Leo is a pure python app?

2018-02-25 Thread Edward K. Ream
On Sunday, February 25, 2018 at 2:34:06 AM UTC-6, Edward K. Ream wrote:

> Plugins are free to require whatever packages they like, even including 
new python extension modules built with C++ or rust.

Provided that plugins fail gracefully if required packages are not 
installed. 

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Improving the javascript importer

2018-02-25 Thread Edward K. Ream
On Sat, Feb 24, 2018 at 12:48 PM, vitalije  wrote:

> Here is one of rust libraries for generating lexer/parser LALRPOP
> 
>
> Here is rust library for writing shared library extensions for CPython
> rust-cpythton 
>
> Here is a video  explaining how to
> write python extension in rust.
>

​Thanks for this.

This post

clarified my thinking about allowing non-python code within Leo.​

​ The conclusion is that plugins (and only plugins) can require any kind of
packages they like.

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


What does it mean to say that Leo is a pure python app?

2018-02-25 Thread Edward K. Ream
This is becoming an interesting question now that we discussing vue.js and 
the wider node.js world.

Imo, the statement "Leo is a pure python app" means that Leo should run 
whenever both python and pyqt are installed.  Maybe I should say, installed 
compatibly ;-) Furthermore, it should be possible to run Leo's bridge 
 even without pyqt.

Particular plugins might require almost any conceivable extra packages. For 
example, #684: Create a browser gui for Leo 
, would likely require 
node.js and maybe vue.js.

Otoh, Leo's core will *never* require python extensions that are not part 
of a standard python/anaconda distro.  But a plugin could conceivably add, 
say, a new javascript importer.  That plugin could require an extension 
build with rust, for example.

*Summary*

Leo itself should work with only python and pyqt installed.

Leo's bridge should work with only python installed.

Plugins are free to require whatever packages they like, even including new 
python extension modules built with C++ or rust.

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-25 Thread Edward K. Ream
On Fri, Feb 23, 2018 at 11:05 AM, Zoom.Quiet  wrote:

> OT: Critical Linux filesystem permissions are being changed by latest
> version · Issue #19883 · npm/npm
> https://github.com/npm/npm/issues/19883
>

​Yikes! From the thread:

QQQ

   1. Be a dev on one of the most critical pieces of on infrastructure of a
   widely used language.
   2. Release new prerelease.
   3. Do not use semantic versioning so it looks like a stable.
   4. Advertise new build in emails and blog posts but don't mention it's a
   prerelease.
   5. The update mechanism updates to next instead of latest for whatever
   reason
   6. It bricks everyone's systems.
   7. Users are reasonably upset.
   8. Insult users for being upset.

It might be time for an expansion of the NPM team and a review of the
current developers on it.

QQQ

Doesn't increase my confidence in node.js or its security.

Edward

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.