Re: What Was I Working On???

2023-06-11 Thread Thomas Passin
with the @string setting notelog. On Wednesday, May 17, 2023 at 10:35:54 AM UTC-4 Thomas Passin wrote: > Trying it out got me to thinking that it would be handy to be able to log > quick little notes. The following script writes the cursor line on the > body to a note log file, who

New Mono-spaced Font From Intel

2023-06-10 Thread Thomas Passin
Intel has open-sourced a new monospaced font family called "IntelOne Mono". It's available via GitHub . They say it was developed to be very readable even for people with visual handicaps or for developers whose eyes get irritated by long hours staring

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-10 Thread Thomas Passin via Python-list
On 6/10/2023 3:20 PM, Eryk Sun wrote: On 6/10/23, Thomas Passin via Python-list wrote: Yes; I didn't want to get too esoteric with commands that are hard to figure out and remember, because then why not use Powershell, whose commands are hard to figure out and remember? Using `dir /s [/ad

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-10 Thread Thomas Passin via Python-list
On 6/10/2023 12:32 PM, Eryk Sun wrote: On 6/10/23, Thomas Passin via Python-list wrote: We can find pip.exe using good old-fashioned dir (we don't need any new-fangled Powershell): C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find "pip"|find "Scr

Re: Another mass update: PR #3367

2023-06-10 Thread Thomas Passin
That trystar error shows up on my Windows 3.11 machine too: C:\Tom\git\leo-editor\leo\scripts>test-leo test-leo

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-10 Thread Thomas Passin via Python-list
On 6/9/2023 1:43 PM, Dennis Lee Bieber via Python-list wrote: On Thu, 8 Jun 2023 17:22:22 -0400, Thomas Passin declaimed the following: On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote: C:\Users\Owner> -=-=- Windows PowerShell Copyright (C) Microsoft Corporation. All rig

Re: Another mass update: PR #3367

2023-06-09 Thread Thomas Passin
Leo loaded using Python 3.11 on Windows. So that's good. On Friday, June 9, 2023 at 2:04:31 PM UTC-4 Edward K. Ream wrote: > PR #3367 imports > Callable from collections.abc instead of typing. typing.Callable is > deprecated, but is not

Re: @auto-ms does not get along with Leo's clones

2023-06-09 Thread Thomas Passin
You might try ```shell too. On Wednesday, June 7, 2023 at 5:58:24 AM UTC-4 p.os...@datec.at wrote: > Hm, for now it seems a wrong ```-clause (markdown) being the reason for > all the hassle: Replaced all ```bash by ```sh. I'll see if this holds for > clones as well (have to intro them again).

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-08 Thread Thomas Passin via Python-list
On 6/8/2023 6:23 PM, Eryk Sun wrote: on 6/8/23, Thomas Passin via Python-list wrote: It always gets installed, though. By default, the option to install pip is enabled. It's implemented by executing ensurepip after the interpreter is installed. However, ensurepip may silently fail during

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-08 Thread Thomas Passin via Python-list
On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote: On Wed, 7 Jun 2023 10:36:22 -0600, Mats Wichmann declaimed the following: I'm assuming you checked - say, with Explorer - that pip.exe really is where you think it is? Anyway, if you ask a Windows shell (cmd) to locate it, and it

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-07 Thread Thomas Passin via Python-list
On 6/7/2023 6:28 PM, Eryk Sun wrote: On 6/7/23, Thomas Passin via Python-list wrote: You have by now seen several responses, and the one most likely to be helpful is to run pip with py -m pip That won't be of any help if pip isn't installed. By default, Python's installer attempts

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-07 Thread Thomas Passin via Python-list
On 6/7/2023 10:54 AM, Florian Guilbault via Python-list wrote: Dear Python Technical Team, I hope this email finds you well. I am reaching out to you today to seek assistance with an issue I am facing regarding the installation of 'pip' despite my numerous attempts to resolve the problem.

Does the Directive @terse Get Used Anywhere?

2023-06-03 Thread Thomas Passin
The globalDirectiveList includes a directive name of "terse". A search of LeoPyRef doesn't show it being used anywhere. Is it actually used, and if so, for what? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group

Re: @auto-ms does not get along with Leo's clones

2023-06-02 Thread Thomas Passin
On Friday, June 2, 2023 at 3:05:51 AM UTC-4 p.os...@datec.at wrote: Again it happended. But now it happoend with vanilla nodes, as I replaced all clones by copies of the respective nodes. A section is cut off at ```bash which becomes a node title. This node's body contains then all the sub

Re: @auto-ms does not get along with Leo's clones

2023-06-02 Thread Thomas Passin
> automatically somehow. >> >> >> >> On Wednesday, May 24, 2023 at 4:47:19 PM UTC+2 tbp1...@gmail.com wrote: >> >> The GitHub issue is 3355 >> <https://github.com/leo-editor/leo-editor/issues/3355>. >> >> On Wednesday, May 24, 2023 at 10

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Thomas Passin
On 5/31/2023 3:52 PM, Dennis Lee Bieber wrote: Python does not provide, normally, a "click me" icon to run Python. Python is a command line language INTERPRETER/COMPILER. If file associations are set up, clicking on a script (.py) file/will/ run it -- but the window it opens goes away as soon

Re: Best practice for database connection

2023-05-31 Thread Thomas Passin
On 5/31/2023 2:10 PM, Jason Friedman wrote: I'm trying to reconcile two best practices which seem to conflict. 1) Use a _with_ clause when connecting to a database so the connection is closed in case of premature exit. class_name = 'oracle.jdbc.OracleDriver' url =

Re: Module error

2023-05-27 Thread Thomas Passin
On 5/26/2023 8:30 PM, giuseppacef...@gmail.com wrote: I have reinstalled python which reinstalls pip. I have added the path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still get the error below.

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
this is not the issue the OP has been encountering? On Wednesday, May 24, 2023 at 10:47:19 AM UTC-4 Thomas Passin wrote: > The GitHub issue is 3355 > <https://github.com/leo-editor/leo-editor/issues/3355>. > > On Wednesday, May 24, 2023 at 10:40:25 AM UTC-4 Thomas Passin wr

Re: Impressive ChatGPT responses

2023-05-24 Thread Thomas Passin
/24/when-the-rubber-duck-talks-back/>. It's especially interesting that - if you are using VSCode, anyway - the bot can index your entire repo and use that to give much better results. On Thursday, May 18, 2023 at 5:42:27 PM UTC-4 Edward K. Ream wrote: > On Thu, May 18, 2023 at 1:38 PM Thom

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
The GitHub issue is 3355 <https://github.com/leo-editor/leo-editor/issues/3355>. On Wednesday, May 24, 2023 at 10:40:25 AM UTC-4 Thomas Passin wrote: > The loss of clones is specific to *@auto-md* trees (although I have not > tested other *@auto-xx* trees): > > In an outline

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
were no longer clones. I don't know what the original intention was with respect to *@auto-md *trees, but this seems like a serious bug to me. I'll create an issue for it. On Wednesday, May 24, 2023 at 10:10:34 AM UTC-4 Thomas Passin wrote: > I see where the problem is - or at least *a* prob

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
. I'll experiment some more to try to pin it down. The outline which showed the problem had both an *@auto-md* and an *@clean* tree. I'll try outlines with them separately and report back. On Wednesday, May 24, 2023 at 8:22:58 AM UTC-4 Thomas Passin wrote: > @Edward recently re-worked s

Re: @auto-ms does not get along with Leo's clones

2023-05-24 Thread Thomas Passin
the *@auto-md* file that ended up with >> a corrupted outline, and whether you use an *@others* line in it? And >> is this the only such file that caused a problem? And also the version of >> Leo and the OS (though it doesn't seem likely that the OS is playing a >> part). >

Re: @auto-ms does not get along with Leo's clones

2023-05-23 Thread Thomas Passin
outline, and whether you use an *@others* line in it? And is this the only such file that caused a problem? And also the version of Leo and the OS (though it doesn't seem likely that the OS is playing a part). On Tuesday, May 23, 2023 at 1:58:13 PM UTC-4 Thomas Passin wrote: > Maybe @cl

Re: @auto-ms does not get along with Leo's clones

2023-05-23 Thread Thomas Passin
Maybe @clean or even @file would work for you (not that I've tried them with clones, which I'll try out soon) instead of @auto-md. I don't think that @auto-md really gets you anything that they don't, although you will need to put *@language md* at the start of the body of the top node. On

Re: New User's Guide To Leo

2023-05-21 Thread Thomas Passin
On Thursday, May 18, 2023 at 11:17:52 AM UTC-4 Ben Hancock wrote: Thomas writes: I've been thinking that there should be a book on Leo. I don't think I've got another book left in me, but I'm not completely happy with the existing docs because I don't think they really match what a new user

Re: New User's Guide To Leo

2023-05-21 Thread Thomas Passin
I've been plugging away New User's Guide. I've also changed the name of the top-level file to *index.html*. The rest of the URL remains the same: New User's Guide <http://tompassin.net/leo/guide/docs/index.html>. On Saturday, May 20, 2023 at 7:37:29 PM UTC-4 Thomas Passin

Re: New User's Guide To Leo

2023-05-20 Thread Thomas Passin
On Saturday, May 20, 2023 at 6:10:24 PM UTC-4 Ben Hancock wrote: [snip] Hi Rob, Thanks. I'd be grateful for your tips. It looks like I can probably get a good start on point 2 (creating documents) with the "Creating Documents from Outlines" tutorial[1], but if there are particular things

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
And here is the earlier transcript, reformated - the chatbot's doing a lot of hand-waving! write a short user's guide about how to manage a web site with the leo-editor, and do not explain what the leo-editor or a web site are ChatGPT Sure! Here's a short user's guide on managing a website

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
ecosystem of extensions and a strong focus on code editing and development workflows. On the other hand, the Leo editor shines when it comes to outlining, hierarchical editing, and content organization. On Thursday, May 18, 2023 at 2:33:27 PM UTC-4 Thomas Passin wrote: > Rats! I'll try to refor

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
Rats! I'll try to reformat that one, too. On Thursday, May 18, 2023 at 2:32:57 PM UTC-4 Thomas Passin wrote: > Hmm, that formatting came out weird. I'll see if I can reformat it better > - the above was directly copy-pasted from the browser. In the meantime, > here's another intere

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
Hmm, that formatting came out weird. I'll see if I can reformat it better - the above was directly copy-pasted from the browser. In the meantime, here's another interesting one: explain briefly what advantages the leo-editor has over vs-code The Leo editor and Visual Studio Code (VS Code)

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
r detailed information on its features and functionalities. Additionally, consult web development resources to learn more about HTML, CSS, and JavaScript to enhance your website's design and functionality. On Thursday, May 18, 2023 at 2:16:50 PM UTC-4 Thomas Passin wrote: > I thought this mi

Re: Impressive ChatGPT responses

2023-05-18 Thread Thomas Passin
> language model alignment “bias” and cultural consensus theory >>> <https://statmodeling.stat.columbia.edu/2023/04/26/llm-alignment-bias-cultural-consensus-theory/> >>> . >>> >>> On Friday, April 21, 2023 at 12:57:32 PM UTC-4 Edward K. Ream wrote: >>

Re: Stack Overflow Traffic Slumps As Devs Turn to ChatGTP

2023-05-18 Thread Thomas Passin
Closer to home, maybe: explain how to create Sphinx documents with the Leo-editor but don't explain what Leo, Sphinx, or ReStructured text are To create Sphinx documents with the Leo editor, follow these steps: 1. Install Sphinx: Use a package manager like pip to install Sphinx on

Re: New User's Guide To Leo

2023-05-18 Thread Thomas Passin
No apologies needed. Leo is terrific, but it does have quite a learning curve. In the end, I think many people end up with their own personalized workflows, most likely with some customized scripts to help. I like your suggestions of user scenarios walkthroughs, and I think they don't really

Re: Learning tkinter

2023-05-18 Thread Thomas Passin
On 5/18/2023 9:13 AM, Grant Edwards wrote: On 2023-05-12, Rob Cliffe via Python-list wrote: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. import tkinter tkinter.messagebox

Re: Pip Error

2023-05-17 Thread Thomas Passin
On 5/17/2023 10:54 AM, Aysu Mammadli wrote: I encountered an error while attempting to install pip using the terminal. The exact error message I received is: "An error occurred during configuration: option use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore',

Re: What Was I Working On???

2023-05-17 Thread Thomas Passin
Trying it out got me to thinking that it would be handy to be able to log quick little notes. The following script writes the cursor line on the body to a note log file, whose path can optionally be specified in a setting. The idea is that you could write a brief one-line note and pop it

Re: What Was I Working On???

2023-05-16 Thread Thomas Passin
Here's a bug fix. I didn't update some constant names in the *Stop Logging* script. On Tuesday, May 16, 2023 at 6:31:04 PM UTC-4 Thomas Passin wrote: > Today I wanted to continue some work I started a few weeks ago. I > remember clearly what I did. But I can't remember the outline,

What Was I Working On???

2023-05-16 Thread Thomas Passin
Today I wanted to continue some work I started a few weeks ago. I remember clearly what I did. But I can't remember the outline, and I have not succeeded in finding it even with the help of FileLocatorPro (a terrific Windows program). Somehow, the Recent Files list hasn't helped either.

Re: PythonPath / sys.path

2023-05-15 Thread Thomas Passin
On 5/15/2023 3:26 AM, Barry wrote: On 15 May 2023, at 05:39, Thomas Passin wrote: On 5/14/2023 11:08 PM, Chris Angelico wrote: On Mon, 15 May 2023 at 12:07, Thomas Passin wrote: Well, no, why would you assume that? I started to use Linux - in VMs - because I had to make sure that my

Re: PythonPath / sys.path

2023-05-14 Thread Thomas Passin
On 5/14/2023 11:08 PM, Chris Angelico wrote: On Mon, 15 May 2023 at 12:07, Thomas Passin wrote: Well, no, why would you assume that? I started to use Linux - in VMs - because I had to make sure that my cross-platform java/jython Tomcat program would work right on Linux. Why, for example

Re: PythonPath / sys.path

2023-05-14 Thread Thomas Passin
On 5/14/2023 7:28 PM, Chris Angelico wrote: On Mon, 15 May 2023 at 09:22, Thomas Passin wrote: You made a little slam against Windows, but you will find it harder to get things working on Linux. Ubuntu, like many other Linux distros, does not come with pip and Tk (needed for Idle) installed

Re: An RPN Calculator For Leo

2023-05-14 Thread Thomas Passin
Cool! Though I'm glad I don't have to debug any of those expressions. On Sunday, May 14, 2023 at 10:52:45 AM UTC-4 jkn wrote: > As a slight aside: I knew about the 'bc' (bench calculator) program in > Linux/Unix, and I also knew there was a 'dc' (desk calculator) in Linux/Unix > > What I didn't

Re: PythonPath / sys.path

2023-05-14 Thread Thomas Passin
On 5/14/2023 3:00 PM, Grizzy Adams via Python-list wrote: Sunday, May 14, 2023 at 11:11, Mats Wichmann wrote: Re: PythonPath / sys.path (at least in part) [snip] I have since moved up (a little) so only ~4 years old, I then updated pip from 9.x to 19.1 reason its an old version is it's an

Re: Self Contained Leo Executable

2023-05-12 Thread Thomas Passin
But note that LeoInteg still relies on Leo having already been installed, since it must start the LeoBridge and a headless Leo executable. On Friday, May 12, 2023 at 3:46:19 PM UTC-4 Thomas Passin wrote: Felix will say more, but LeoInteg, running as an addon in VSCode, talks to Leo via

Re: pip module not found

2023-05-12 Thread Thomas Passin
On 5/12/2023 2:42 AM, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. I have python version 3.11 installed. I've checked the directory installed in the systems variables window and nothing is amiss. Kindly assist. It would be useful if you told

Re: Self Contained Leo Executable

2023-05-12 Thread Thomas Passin
Felix will say more, but LeoInteg, running as an addon in VSCode, talks to Leo via the LeoBridge to ascertain the state of the tree and the contents of Leo's nodes. So it's like a repeater in a way, and you can work with the tree and body in LeoInteg instead of Leo's Qt panes. Leo commands

Re: Self Contained Leo Executable

2023-05-12 Thread Thomas Passin
leoInteg isn't able to handle some plugins and the in-tab apps I've been writing lately, IIUC. On Friday, May 12, 2023 at 6:34:30 AM UTC-4 Edward K. Ream wrote: > On Thu, May 11, 2023 at 11:45 PM Thomas Passin wrote: > >> I just tried making a self-contained Leo installer

Re: When Does CTRL-Clicking On Functions/Methods/Classes Work?

2023-05-12 Thread Thomas Passin
K. Ream wrote: > On Fri, May 12, 2023 at 7:44 AM Thomas Passin wrote: > >> I'm used to CTRL-clicking on function names, etc, to move directly to >> their defs. I assumed that this would work for basically any programming >> language. But when I just tried it in a javas

Re: pip module not found

2023-05-12 Thread Thomas Passin
On 5/12/2023 1:45 PM, Barry wrote: On 12 May 2023, at 18:31, Thomas Passin wrote: On 5/12/2023 11:18 AM, Thomas Passin wrote: On 5/12/2023 2:42 AM, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. I have python version 3.11 installed. I've

Re: pip module not found

2023-05-12 Thread Thomas Passin
On 5/12/2023 11:18 AM, Thomas Passin wrote: On 5/12/2023 2:42 AM, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. I have python version 3.11 installed. I've checked the directory installed in the systems variables window and nothing is amiss

When Does CTRL-Clicking On Functions/Methods/Classes Work?

2023-05-12 Thread Thomas Passin
I'm used to CTRL-clicking on function names, etc, to move directly to their defs. I assumed that this would work for basically any programming language. But when I just tried it in a javascript code base, nothing happened for a CTRL-click. Is this capability limited only to Python code?

Self Contained Leo Executable

2023-05-11 Thread Thomas Passin
I just tried making a self-contained Leo installer for Windows with PyInstaller. the executable failed with this error: File "leo\core\leoApp.py", line 1853, in reportDirectories g.es(f"{kind:>10}:", os.path.normpath(theDir), color='blue')

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
I've extended the outline quite a bit. Please take a look and let me know your reactions. New User's Guide To Leo <http://tompassin.net/leo/guide/docs/using-leo.html> On Thursday, May 11, 2023 at 11:40:40 PM UTC-4 Thomas Passin wrote: > I think it's not too hard o

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
I think it's not too hard on Windows, but that installer wouldn't work on a Mac. Without actually having a Mac, I don't see how it would be possible. Linux is a whole other kettle of fish. It's only on Linux that I've ever had any trouble. On Windows, getting Leo going hasn't fought back for

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
On Thursday, May 11, 2023 at 3:31:45 PM UTC-4 Paul wrote: Explain CLONING up front: not mind mapping or concept mapping, virtually unige Not as unique as you might think (e.g., TreeLine ). What's probably unique - or at least valuable - is how clones

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
able of is very compelling and a good > showcase to new users about why to use Leo. > > Keep the good work, > > Offray > On 7/05/23 23:56, Thomas Passin wrote: > > I've been thinking that there should be a book on Leo. I don't think I've > got another book left in me, but

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
Thanks... I'll add some material about LaTex. On Thursday, May 11, 2023 at 10:32:29 AM UTC-4 Rob wrote: > I usually use @file w/ @language=tex for the xxx.tex files and Leo handles > the comments appropriately. Works great! > > I also have created several standard templates for typical document

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
Texnic Center looks pretty good, at a quick glance. Do you write an @clean TeX document in Leo, then process it into LaTex with Texnic Center? On Thursday, May 11, 2023 at 10:09:07 AM UTC-4 Rob wrote: > I don't use Leo for that. I suppose I could, but I don't know how to > create a suitable

Re: New User's Guide To Leo

2023-05-11 Thread Thomas Passin
Thanks! I have only used it for LaTex a few times and it didn't come to mind. How do you create the actual document from the Leo outline? On Thursday, May 11, 2023 at 8:59:48 AM UTC-4 Rob wrote: > Looks good! May I also suggest to add LaTeX to the list of structured > language support. There

Re: Do subprocess.PIPE and subprocess.STDOUT sametime

2023-05-09 Thread Thomas Passin
On 5/9/2023 2:13 PM, Horst Koiner wrote: Hi @all, i'm running a program which is still in development with subprocess.run (Python version 3.10), further i need to capture the output of the program in a python variable. The program itself runs about 2 minutes, but it can also freeze in case of

Re: Aha: How to find patterns in python parse trees

2023-05-09 Thread Thomas Passin
On Tuesday, May 9, 2023 at 7:54:48 AM UTC-4 Edward K. Ream wrote: On Monday, May 8, 2023 at 8:16:08 AM UTC-5 Edward K. Ream wrote: Once the technical problem disappeared it became clear that static checks of Leo's code are not likely to be of great value! There has been many words written

Re: New User's Guide To Leo

2023-05-08 Thread Thomas Passin
Keep checking back in with the link. I'm making frequent changes for the time being. On Monday, May 8, 2023 at 10:02:16 AM UTC-4 Edward K. Ream wrote: > On Mon, May 8, 2023 at 8:26 AM Thomas Passin wrote: > >> On Monday, May 8, 2023 at 7:29:01 AM UTC-4 Edward K. Ream wrote: >

Re: New Programming Language 'Mojo' - a Python Superset

2023-05-08 Thread Thomas Passin
corate parts of your code to use it. On Monday, May 8, 2023 at 7:21:08 AM UTC-4 Edward K. Ream wrote: > On Sun, May 7, 2023 at 11:08 AM Thomas Passin wrote: > >> Here's a more technical blog entry: >> https://docs.modular.com/mojo/why-mojo.html. > > > Thanks for

Re: Aha: How to find patterns in python parse trees

2023-05-08 Thread Thomas Passin
I'm not surprised by this. I found the same thing in developing my bookmarks manager. Conceptually the structure of the bookmarks collection is tree-like, but it can be much easier to flatten that structure into text and use string methods on the flattened structure. OTOH, there has been

Re: New User's Guide To Leo

2023-05-08 Thread Thomas Passin
On Monday, May 8, 2023 at 7:29:01 AM UTC-4 Edward K. Ream wrote: The first question most people would have would likely be: "Why should I care about yet another text editor?". That's what I think too. I've tried to address it by starting out with "what can you do with Leo" And trying to

New User's Guide To Leo

2023-05-07 Thread Thomas Passin
I've been thinking that there should be a book on Leo. I don't think I've got another book left in me, but I'm not completely happy with the existing docs because I don't think they really match what a new user faces when trying to fire up Leo and use it the first few times. (Also, I don't

Re: New Programming Language 'Mojo' - a Python Superset

2023-05-07 Thread Thomas Passin
Here's a more technical blog entry: https://docs.modular.com/mojo/why-mojo.html. On Sunday, May 7, 2023 at 12:00:09 PM UTC-4 Thomas Passin wrote: > This looks really interesting when high performance is needed. You can get > a (nearly) Python program to use compiled-language cons

New Programming Language 'Mojo' - a Python Superset

2023-05-07 Thread Thomas Passin
This looks really interesting when high performance is needed. You can get a (nearly) Python program to use compiled-language constructs and your graphics hardware for very high performance of compute-heavy tasks (the company is an AI-support business so the want really good performance) -

Re: Failed installation on Ubuntu 22.04LTS (both git and pip methods)

2023-05-07 Thread Thomas Passin
After my last post, I found the fix for the "xcb" problem with PyQt5. It was in a discussion thread from several years ago, and I haven't verified that it still works (but I suspect it does): sudo apt-get install libxcb-xinerama0 On Sunday, May 7, 2023 at 10:44:46 AM UTC-4 Thomas Pa

Re: Failed installation on Ubuntu 22.04LTS (both git and pip methods)

2023-05-07 Thread Thomas Passin
n3 -m pip install --user pyqt6 To get the viewrendered3 plugin to work, you will also need to install the WebEngine for PyQt6: python3 -m install --user PyQt6-WebEngine On Sunday, May 7, 2023 at 8:35:50 AM UTC-4 Thomas Passin wrote: > Someone else recently had problems on Ubuntu 22 LTS.

Re: Leo on Raspbian?

2023-05-07 Thread Thomas Passin
Make that #!/bin/sh python ~/path-to-leo-editor/launchLeo.py *$** --no-splash in case you want to pass more command line args. I often launch with --theme-... so I need to pick up more args. On Sunday, May 7, 2023 at 2:37:50 AM UTC-4 Félix wrote: > Oh - i just fixed the parameter passing :

Re: Failed installation on Ubuntu 22.04LTS (both git and pip methods)

2023-05-07 Thread Thomas Passin
Someone else recently had problems on Ubuntu 22 LTS. Look at this discussion here on the Groups site: Install Problems on Ubuntu 22 The OP never said how or if Leo finally got to work, so I've been hoping some of the suggestions helped.

Re: ENB: Won't do: pep 8 names

2023-05-05 Thread Thomas Passin
On Friday, May 5, 2023 at 6:01:33 PM UTC-4 Edward K. Ream wrote: On Fri, May 5, 2023 at 3:24 PM jkn wrote: https://peps.python.org/pep-0008/ "This document gives coding conventions for the Python code *comprising the standard library* in the main Python distribution" Pep 8 contains many

Why does the unl regex exclude closing parentheses?

2023-05-05 Thread Thomas Passin
The unl regex excludes the ")" character: unl_regex = re.compile(r"""\bunl:[^`'")]+""") Why is that? It would not be unusual to have a node whose headline includes one. For instance: *regex (test2)*. Currently a node whose headline includes the character cannot be found by Leo's unl:

Re: ENB: Won't do: pep 8 names

2023-05-05 Thread Thomas Passin
+1! On Friday, May 5, 2023 at 9:20:09 AM UTC-4 Edward K. Ream wrote: > I recently asked myself whether Leo's code should use Pep 8 naming > conventions. The short answer is an emphatic NO! Such changes would have > massive impacts on LeoJS and existing Leo scripts. > > I entertained this

Re: Is there an easy way to capture stdout/stderr for a shell command and pipe it to the log pane?

2023-05-04 Thread Thomas Passin
to be inserted. I do remember that there is some discussion on line - not necessarily Python-specific - to be found. On Thursday, May 4, 2023 at 12:11:50 AM UTC-4 Thomas Passin wrote: > I don't know the answer but I know a thing or two that might be useful. > By starting the c

Re: Is there an easy way to capture stdout/stderr for a shell command and pipe it to the log pane?

2023-05-03 Thread Thomas Passin
I don't know the answer but I know a thing or two that might be useful. By starting the command with "&", as you have, you avoid the proc.communicate() call, which would block Leo until it returns. However, if you try to capture output with a pipe, the pipe can block if it fills up, and that

Re: An "adapter", superset of an iterator

2023-05-03 Thread Thomas Passin
On 5/3/2023 3:46 PM, Oscar Benjamin wrote: On Wed, 3 May 2023 at 18:52, Thomas Passin wrote: On 5/3/2023 5:45 AM, fedor tryfanau wrote: I've been using python as a tool to solve competitive programming problems for a while now and I've noticed a feature, python would benefit from having

Re: An "adapter", superset of an iterator

2023-05-03 Thread Thomas Passin
On 5/3/2023 5:45 AM, fedor tryfanau wrote: I've been using python as a tool to solve competitive programming problems for a while now and I've noticed a feature, python would benefit from having. Consider "reversed(enumerate(a))". This is a perfectly readable code, except it's wrong in the

Re: Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread Thomas Passin
On 5/2/2023 4:39 PM, Kevin M. Wilson via Python-list wrote: Folks, help please! What the @#$! are these doing popping up. Code styles are personal, and not subject to debate.Where can I edit these out of my IDE? Kevin "When you pass through the waters, I will be with you: and when you pass

Re: toggle brackets command

2023-05-02 Thread Thomas Passin
There's a *toggle-angle-brackets* command. Is that it? The F11 help message reads "Add or remove double angle brackets from the headline of the selected node". On Tuesday, May 2, 2023 at 2:40:12 PM UTC-4 Rob wrote: > I remember there was a command to toggle headline brackets, thought it was

Re: @language modes

2023-05-02 Thread Thomas Passin
It's trick. I just found that when I type *@language md* into a new node, the line colors when I complete the "md". But when I press ENTER the highlight goes away. After that, adding the directive line again, or to any other new node, the line does not highlight although VR3 still

Re: @language modes

2023-05-01 Thread Thomas Passin
I noticed that too. VR3 seems to work right anyway, but that won't help you. I don't remember when I first noticed this, but not long ago. On Monday, May 1, 2023 at 9:37:09 PM UTC-4 Rob wrote: > >1. Recently I noticed that all of my @language md nodes don't seem to >recognize the

Re: An RPN Calculator For Leo

2023-05-01 Thread Thomas Passin
I forgot to add to the Help file that there is also a minibuffer command to toggle it - *rpcalc-toggle.* On Monday, May 1, 2023 at 8:31:31 PM UTC-4 Rob wrote: > For those new to trying out the plugin, I discovered that it didn't appear > to load despite adding it to my enabled plugins. What I

Pyspread - a spreadsheet where each cell can be a Python expression

2023-05-01 Thread Thomas Passin
I just learned about Pyspread , which is a spreadsheet program where cells contain Python expressions or code. They can also contain images, which makes it interesting to see how the image data is stored and used. It's a PyQt program, so there might be some good

Re: CLIP, CLisp, Clippy

2023-05-01 Thread Thomas Passin
One of the all-time poor name choices - for Internet searches - has to be the graphics programming language called "Processing". As for "clip", if you were referring to the RPN calculator key I called "TOCLIP", it probably doesn't need to be searched for on the internet :) On Monday, May 1,

Re: An RPN Calculator For Leo

2023-05-01 Thread Thomas Passin
calculator) to *TOCLIP*. It >> copies the "X" register - the calculation result - to the system clipboard. >> >> On Monday, May 1, 2023 at 9:31:00 AM UTC-4 Thomas Passin wrote: >> >>> When I was using TurboPascal and doing a lot of numerical 2-D >>

Re: An RPN Calculator For Leo

2023-05-01 Thread Thomas Passin
Devel now contains one more change. I've changed the *EXIT* key (which isn't needed in the Leo tab version of the calculator) to *TOCLIP*. It copies the "X" register - the calculation result - to the system clipboard. On Monday, May 1, 2023 at 9:31:00 AM UTC-4 Thomas Passin wrote:

Re: An RPN Calculator For Leo

2023-05-01 Thread Thomas Passin
er I've been >> using Free42, which seems to me to be a good balance between readability, >> complexity, and capability. Now it looks like RPCalc will be taking over >> from Free42. >> >> >> I will take a look at this shortly - thanks. >>

Re: An RPN Calculator For Leo

2023-05-01 Thread Thomas Passin
I'm happy to say that the RPCalc plugin is now merged into the devel branch. Enable it in your @enabled-plugins settings node by adding a line reading *rpcalc.py*. On Sunday, April 30, 2023 at 12:59:34 PM UTC-4 Thomas Passin wrote: > RPCalc is a recent discovery for me. As originally writ

Re: An RPN Calculator For Leo

2023-04-30 Thread Thomas Passin
ake a look at this shortly - thanks. J^n On Sunday, April 30, 2023 at 12:03:14 PM UTC+1 Edward K. Ream wrote: On Sat, Apr 29, 2023 at 12:42 PM Thomas Passin wrote: I have adapted the open-source *RPCalc* calculator to run in a tab in the Leo log frame. This calculator is a Reverse Polish Not

Re: Browser Bookmarks Manager For Leo

2023-04-28 Thread Thomas Passin
The bookmarks manager has now been added to the leo-editor-contrib Master branch. <https://github.com/leo-editor/leo-editor-contrib/tree/master/Projects> On Wednesday, April 26, 2023 at 5:01:29 PM UTC-4 Thomas Passin wrote: > I have developed a browser bookmarks manager that runs

Re: Impressive ChatGPT responses

2023-04-26 Thread Thomas Passin
rd K. Ream wrote: > On Fri, Apr 21, 2023 at 11:13 AM Thomas Passin wrote: > >> And now comes Google: Google's Bard AI Chatbot Can Now Help You Code >> and Create Functions For Google Sheets >> <https://tech.slashdot.org/story/23/04/21/1353212/googles-bard-ai-chatbot

Re: installation problems on Ubuntu 20.04

2023-04-24 Thread Thomas Passin
ne-Qt5 5.15.2 > > sphinxcontrib-qthelp 1.0.3 > > python3 -m leo.core.runLeo > > > 'NoneType' object has no attribute 'gui' > > > > *** Leo could not be started *** > > Please verify you've installed the required dependencies: > > https://leoeditor.com/in

Re: installation problems on Ubuntu 20.04

2023-04-23 Thread Thomas Passin
I cannot speak to the homebrew thing. But I'm pretty sure that the system version of Python3 is lower than 3.11. So there could be some confusion about where - in what version of python - things are getting installed. Not having PyQt6 might be a problem, though Leo can use either PyQt5 or 6

Re: Images In Leo Nodes?

2023-04-23 Thread Thomas Passin
Once we get embedded images working well, we can go after tables. On Sunday, April 23, 2023 at 9:05:54 AM UTC-4 Edward K. Ream wrote: > On Sun, Apr 23, 2023 at 7:19 AM Thomas Passin wrote: > > > > uAs would avoid the need to put an image file in another directory, >

<    1   2   3   4   5   6   7   8   9   10   >