Re: iLeo not working

2020-04-06 Thread 'tfer' via leo-editor
Much as I find things.  The console indicates that a kernel has been been 
started, but the qt compatible event loop did not start, no qt-console with 
IPython appears, Leo remains in a hang state.

The problem is probably in the IPython code, they're changing everything to 
use Juypter Notebooks, warning that all the options are being depreciated, 
I think they already messed them up.

I was messing with this because I had come across code that let you hook a 
IPython's kernel into a Juypter notebook, but things are in such flux, 
perhaps it's best to wait for the next release of Jupyter, and make a 
JuypterBridge.

On Monday, April 6, 2020 at 6:10:00 PM UTC-4, Matt Wilkie wrote:
>
>
> *Summary:* `pip install notebook matplotlib` is enough to get Leo iself 
> working with python 3.6 (windows) but I'm not sure if the ipython 
> connection is working/usable.
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d7876411-0186-4cd1-8964-81f32dce7559%40googlegroups.com.


Re: Pyzo as a live Leo explorer

2020-04-06 Thread Thomas Passin


On Monday, April 6, 2020 at 7:29:57 PM UTC-4, Matt Wilkie wrote:
>
> Happy Monday discovery: 
>
> Pyzo's workspace feature can be used to interactively explore Leo's 
> modules, functions, classes, methods and defined variables in real time. 
> This is so cool
>

It is very cool, and your steps didn't quite work for me.  I'm using pyzo 
4.10.2 on Windows.  For one thing, I don't even have an F5 command.  Here 
is what I did:

1. Use the Shell/ Edit Shell Configurations menu item to open the 
configuration dialog;
2. Click Add Config in the upper right corner.
3. Give this config a name, and select a python exe from the dropdown box - 
or just type in the path to your own python.exe (I've got one for Jython, 
which Pyzo didn't know about by default);
4. In the Startup Script edit box, put in the path to launchLeo.py (if you 
have one; I don't) or runLeo.py.  My entry:

C:\Users\tom\AppData\Local\Programs\Python\Python38\Lib\site-packages\leo\core\runLeo.py

5. In the argv edit box at the bottom, type in your arguments, like 
--use-docks.
6. Save everything by clicking the Done button.

Then, launch your new configuration using the new menu item at the bottom 
of the Shell menu.  If everything goes well, Leo will open and you will see 
all those interesting items in the Workspace panel.

Beyond this, I don't know much about what you can do with them so far. but 
it's very cool ...

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d4c96a5d-5a3a-4767-830c-7b5b60e1ef81%40googlegroups.com.


Pyzo as a live Leo explorer

2020-04-06 Thread Matt Wilkie
Happy Monday discovery: 

Pyzo's workspace feature can be used to interactively explore Leo's 
modules, functions, classes, methods and defined variables in real time. 
This is so cool.

   1. Create a new shell that uses the same env (python.exe) that you use 
   with Leo.
   2. Open that shell.
   3. Open launchLeo.py
   4. Run it (F5)
   5. Open the Workspace tool and explore!
   
It doesn't give you the Global, Commander, Position, Headline and Body  
(g,c,p,h,v,...) variables which you have within Leo. Though you can 
reconstruct those inside Pyzo if you wish by extracting the relevant 
snippets from Leo's code and running them in the interactive shell window.





-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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f375b799-22a0-4176-9577-34a43601d2bd%40googlegroups.com.


Re: iLeo not working

2020-04-06 Thread Matt Wilkie
I haven't tried anything ipython for a very long time so not sure I can 
help much. These two lines in the traceback stand out to me though:

  File ".\leo\plugins\qt_gui.py", line 1424, in show_tips
ModuleNotFoundError: No module named 'leo.core.leoTips'


*...later:* Win10 x64, python 3.6.9 in a conda env.

python .\launchLeo.py --ipython

leoIpython.py: can not import connect_qtconsole
leoIpython.py: can not import IPKernelApp
Leo 6.3-devel, devel branch, build 8051ecd172
2020-04-05 05:55:36 -0500

Leo worked fine, but no ipython, which isn't surprising because I haven't 
installed it.

pip install notebook
python .\launchLeo.py --ipython

*Now *Leo locks up like you described earlier. However there's a message in 
the console:

[IPKernelApp] WARNING | Eventloop or matplotlib integration failed. Is 
matplotlib installed?
new_qt_console 

So I pip installed matplotlib and tried again. Leo now does not lock up and 
appears to functioning normally. The console still complains that 
matplotlib integration fails though.

Here's the last console log:

# python .\launchLeo.py --ipython

Leo 6.3-devel, devel branch, build 8051ecd172
2020-04-05 05:55:36 -0500
don't forget to launch leo-ver-serv!!!
NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see https://github.com/ipython/ipython/issues/2049


To connect another client to this kernel, use:
 --existing kernel-4816.json
[IPKernelApp] WARNING | Eventloop or matplotlib integration failed. Is 
matplotlib installed?
new_qt_console 
wrote recent file: D:/Matt/Dropbox/.leo/.leoRecentFiles.txt
error writing D:/Matt/Dropbox/.leo/.leoRecentFiles.txt
Traceback (most recent call last):

 File "D:\Matt\code\leo-editor\leo\core\leoApp.py", line 4009, in 
writeRecentFilesFileHelper
 with io.open(fileName, encoding='utf-8', mode='w') as f:

OSError: [Errno 22] Invalid argument: 'D:/Matt/Dropbox/.leo/.leoRecentFiles.
txt'

QSocketNotifier: Multiple socket notifiers for same socket 2224 and type 
Read
QSocketNotifier: Multiple socket notifiers for same socket 2288 and type 
Read

After exiting Leo I needed to Ctrl-C in the console window to get control 
back.

*Summary:* `pip install notebook matplotlib` is enough to get Leo iself 
working with python 3.6 (windows) but I'm not sure if the ipython 
connection is working/usable.

-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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/20d92b4b-a79b-4941-9646-f4f3e480354e%40googlegroups.com.


Re: iLeo not working

2020-04-06 Thread 'tfer' via leo-editor
Not sure if the above trace is capturing the problem, running with trace 
enable changes how thing go, without tracing Leo hangs with its main widow 
open but no panes populating it, with the above, it did draw the pane then 
closed.

Tried another run with:

(lb-3.7) C:\VC\git\leo-editor [devel ≡ +3 ~3 -0 !]> python -m trace --trace 
launchLeo.py --ipython


and then froze with (not responding) in the title bar. Trace froze also, 
tail is:

 --- modulename: py3compat, funcname: encode
py3compat.py(20): encoding = encoding or DEFAULT_ENCODING
py3compat.py(21): return u.encode(encoding, "replace")
iostream.py(296): self.parent_header = {}
iostream.py(297): self._master_pid = os.getpid()
iostream.py(298): self._flush_pending = False
iostream.py(299): self._io_loop = pub_thread.io_loop
iostream.py(300): self._new_buffer()
 --- modulename: iostream, funcname: _new_buffer
iostream.py(436): self._buffer = StringIO()
iostream.py(301): self.echo = None
iostream.py(303): if echo:

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/62d6c5c8-f2d2-46ee-bb0e-57e3c93da576%40googlegroups.com.


Re: I can't get abbreviations to work ...

2020-04-06 Thread Vicent Mas
Well, four eyes see better than two :-)

On Sun, Apr 5, 2020 at 8:12 PM Viktor Ransmayr 
wrote:

> Hello Vicent,
>
> Am So., 5. Apr. 2020 um 12:05 Uhr schrieb Vicent Mas :
>
>>
>> I'm running Leo 6.2.1 from the sources on a Windows 10 laptop and I have
>> the same problem as Viktor: abbreviations don't work for me. In my case I'm
>> using a Spanish keyboard. Cloning nodes with CTRL+` fails too. When I
>> change the keyboard layout to English everything works fine. Back to
>> Spanish layout and abreviations fail again. Hope this information helps.
>>
>
> Thanks a lot for this confirmation - as well as - for your further
> analysis of the issue!
>
> On my side, I was completely on the 'wrong' track ...
>
> I thought it might have to do something with the used PC vendor - but - I
> never thought it could be (?as simple as only being?) related to the
> keyboard layout. - My mistake!
>
> With kind regards,
>
> Viktor
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "leo-editor" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/leo-editor/s2gCfAhb97M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/CAAeSrGL0KRmKu5JhibSEzfkFa-%2B9Z1KcBbbyWjV-CRR7XxqRjA%40mail.gmail.com
> 
> .
>


-- 
Share what you know, learn what you don't.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CABMY_QBz8qBQ8G%3DtpjnXpHCQb%3DNQaaOW3us4qwsak3gSp8Q3dg%40mail.gmail.com.


Re: iLeo not working

2020-04-06 Thread Edward K. Ream
On Sun, Apr 5, 2020 at 9:20 PM 'tfer' via leo-editor <
leo-editor@googlegroups.com> wrote:

> Running:
>
> python -m trace --trace  .\launchLeo.py --ipython
>
> A long trace, the app loaded the last session, then closed with this being
> the tail of the output:
>
[snip]

> ModuleNotFoundError: No module named 'leo.core.leoTips'
> (177): (178):
> (182): (183):
> (185):
>
> Not sure if this is telling me anything.
>

It looks like the culprit to me. Matt, do you have any insights?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3WSzpgbsqJOUvJXh-gTWbCXVrVUOksOf2NJBjw8E6akw%40mail.gmail.com.