A Script To Plot 2D Data In A Node

2025-07-28 Thread Thomas Passin
Here is a script that will make a 2-D plot of data in a node. I think I posted about this once before. This version has been improved and made more robust. The command is contained in the Leo outline in the attached zip file. The data to be plotted can have either one or two columns. If ther

Re: A Prompt For Chatbots

2025-07-20 Thread Thomas Passin
Here's a simpler version of a prompt which seems to work as well or better than the one I suggested at the start of this thread: Your ground rules: 1. Do not praise my remarks or try to give positive or fawning feedback. 2. If you do not know something, or make assumptions, say so. 3. Do not rest

Re: Fix For Ctrl-Click On UNL Not Opening Outline

2025-07-17 Thread Thomas Passin
a >> . I don't know if this was intended or an accidental outcome of >> some legacy code. >> >> Example: >> >> *Does not* open the outline: >> unl:gnx://recreation_notes.leo#TomP.20200621125058.1 >> >> *Does* open the outline: >> unl:gnx://

Re: Fix For Ctrl-Click On UNL Not Opening Outline

2025-07-17 Thread Thomas Passin
#TomP.20200621125058.1 *Does* open the outline: unl:gnx://c:/tom/recreation/recreation_notes.leo#TomP.20200621125058.1 On Thursday, July 17, 2025 at 11:35:09 AM UTC-4 Thomas Passin wrote: > My memory is blank about the status... > > On Thursday, July 17, 2025 at 10:07:54 AM UTC-4 jkn wro

Re: Fix For Ctrl-Click On UNL Not Opening Outline

2025-07-17 Thread Thomas Passin
My memory is blank about the status... On Thursday, July 17, 2025 at 10:07:54 AM UTC-4 jkn wrote: > Hello there (eg. Thomas, Edward) > did this patch, or something like it, ever get added to Leo, do you > know? > > I encountered a situation today where I had a link of the form > > unl:gnx://

Re: ENB: Could @leo nodes organize other outlines and help the GC?

2025-07-16 Thread Thomas Passin
You can come close to simulating some of this because any node can contain a list of UNLs. CTRL-Clicking any of them will open that outline and it should be easy to write a script to open them all. I foresee some user interface matters to figure out. For example, all outlines that are open be

Re: Huge improvements to @clean are in devel

2025-07-15 Thread Thomas Passin
I've had a few errors already but they have only been partly repeatable. The context is that I have an outline that contains an *@clean README.txt* node. Currently its text displays with blue color which is not what I want. So I opened the node in an external editor with Leo also open and the

Re: LeoInteg 1.0.24 Released!

2025-07-11 Thread Thomas Passin
How can the vsc settings be arranged to launch LeoInteg from a virtual environment? The details will probably be different for Linux vs Windows. On Thursday, July 10, 2025 at 5:11:14 PM UTC-4 Edward K. Ream wrote: > On Wed, Jul 9, 2025 at 3:52 PM Félix wrote: > > Thanks to Viktor and Thomas, a

Re: F/B concerning '#boltex/issue4388' branch (including Log)

2025-07-10 Thread Thomas Passin
The same thing will happen with Windows. And in Windows, you don't have a which command - a given file extension or file type has at most one program that executes it. I don't see why or how a git clone operation could make the location of the Leo executable known to the OS. How would git know

Re: LeoInteg 1.0.24 Released!

2025-07-09 Thread Thomas Passin
Probably relevant: https://websockets.readthedocs.io/en/13.1/ On Wednesday, July 9, 2025 at 12:17:28 PM UTC-4 Félix wrote: > Thank you Viktor, > > I guess I'm going to have to check this new version of python websockets > which is now the new standard! > > This would affect 'new' users who in

Re: LeoInteg 1.0.24 Released!

2025-07-09 Thread Thomas Passin
Remember that there may be users who use different versions. On Wednesday, July 9, 2025 at 12:17:28 PM UTC-4 Félix wrote: > Thank you Viktor, > > I guess I'm going to have to check this new version of python websockets > which is now the new standard! > > This would affect 'new' users who inst

A Prompt For Chatbots

2025-07-05 Thread Thomas Passin
In other threads I have mentioned evolving a prompt to make the responses more focused, with less praise and general sycophancy and fewer hallucinations. I worked with ChatGPT to develop the version I'm currently using. Tonight I asked Claude if the latest version would work well with it, and

Re: Gemini conversations

2025-07-03 Thread Thomas Passin
That's very interesting and I tried your exact queries with ChatGPT (free version). One difference: I usually prefix my sessions with this bit of boilerplate, which I got by asking the chatbot what prompt would reduce its sycophant, hallucination, and redundancy tendencies: *Answer this as a sk

Re: Easy way to "archive" nodes

2025-07-02 Thread Thomas Passin
You can archive to another file by opening it and getting its commander: target_c = g.openWithFileName(FILE) Then you can use code similar to the example scripts but using target_c instead of c. On Wednesday, July 2, 2025 at 9:01:04 AM UTC-4 Thomas Passin wrote: > Or you could select

Re: Easy way to "archive" nodes

2025-07-02 Thread Thomas Passin
Or you could select the target node, then The scripts are slick to use and good introductions to Leo scripting; this way is simple, and doesn't use up shortcut keys. Another scripting way, possibly simpler. In your myLeoSettings.leo outline, create a new @command node, let's say "archiv

Re: A conversation with google gemini

2025-06-29 Thread Thomas Passin
It's that direction and coaching part that's so important. I'm fairly sure that soon there will be a glut of code that didn't get much direction and coaching. And since good design and architecture don't seem to come easily to many people, much chatbot software is likely not to have good design

Re: A conversation with google gemini

2025-06-28 Thread Thomas Passin
None of those views really express things that can be measured in a given piece of software. McCabe's "Cyclomatic complexity" was an attempt but it's widely thought to be not very good as a measure. I used to know a better one but even its name has faded away over the years. Views of complexi

Re: A conversation with google gemini

2025-06-28 Thread Thomas Passin
The saying comes from Brian Kernighan and more exactly quoted is "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan, Programming Style and Debug

Re: A conversation with google gemini

2025-06-28 Thread Thomas Passin
; On Wed, Jun 11, 2025 at 6:29 AM Thomas Passin wrote: > >> I just asked ChatGPT an involved question about its capabilties for >> developing large and complex software. > > ... >> ChatGPT>> >> >> > "The short answer is: *no, not indepe

Re: 🚀 LeoJS 1.0.11 Released!

2025-06-17 Thread Thomas Passin
hat the absolute path of an external file would look like. > > I should show a warning whan that happens! Thanks for trying it out and > pointing out that behavior! :) > > Félix > > On Mon, Jun 16, 2025 at 1:16 PM Thomas Passin wrote: > >> "Import into Leo

Re: 🚀 LeoJS 1.0.11 Released!

2025-06-16 Thread Thomas Passin
"Import into Leo Outline As ..." didn't work for me from the shift-right-click menu. I tried it in an .md file opened in the regular VS editor, No dialog opened and nothing got imported. At the time I tried it, I had a new outline (no content and not saved) open in leoJS. Identifier boltex.le

Re: A conversation with google gemini

2025-06-13 Thread Thomas Passin
I have read Turing's paper and I think it's something of a masterpiece. He finds a way to avoid figuring out what "thinking" is and still make progress. We have now had 75 more years of experience than Turing had in 1950, and it's no wonder if there were things he hadn't figured out. And we s

Re: A conversation with google gemini

2025-06-11 Thread Thomas Passin
On Wednesday, June 11, 2025 at 10:59:39 AM UTC-4 Edward K. Ream wrote: > My own take on DOGE: no competent engineer would destroy a working system and its attendant procedures and experts in order to make that system better. No competent engineer, sure. If you read The Daily WTF frequently, a

Re: A conversation with google gemini

2025-06-11 Thread Thomas Passin
e scale or complexity of AWIPS or any comparable mission-critical platform. Any claim to the contrary is speculative or based on trivial examples, not grounded in the realities of enterprise-scale software engineering." On Tuesday, June 10, 2025 at 11:20:49 PM UTC-4 Thomas Passin wrote: &

Re: A conversation with google gemini

2025-06-10 Thread Thomas Passin
It takes a great deal of skilled, critical thinking to have a hope of getting reliable results from these chatbots. Ironically, when students use them to get through school, they will for the most part have no way to develop their facility for such thinking. On Tuesday, June 10, 2025 at 8:55:57

Re: A conversation with google gemini

2025-06-10 Thread Thomas Passin
Yes, this other link worked for me. On Tuesday, June 10, 2025 at 12:48:10 PM UTC-4 Edward K. Ream wrote: > On Tuesday, June 10, 2025 at 10:56:35 AM UTC-5 tbp1...@gmail.com wrote: > > Loading that link, Gemini says " This conversation was created with a Gem > that has been deleted. > > > Does th

Re: A conversation with google gemini

2025-06-10 Thread Thomas Passin
Loading that link, Gemini says " This conversation was created with a Gem that has been deleted. Create a new Gem or start a new chat to continue. " I'd like to see the transcript, it sounds interesting. Getting a good prompt is a major factor in getting good results. I had a conversation wit

Re: Some good news: Trumps tariffs are unlawful

2025-05-29 Thread Thomas Passin
But note that the decision went on to say that there are other sections of law that the President could use to impose at least some tariffs. Still, it's a big one, all right. On Thursday, May 29, 2025 at 12:19:23 PM UTC-4 Edward K. Ream wrote: > From the summary of this unanimous decision >

Improving The Useability Of Documentation

2025-05-29 Thread Thomas Passin
Here's an interesting post from Jon Udell about improving (and testing) documentation using LLMs and a new protocol - https://thenewstack.io/mcp-is-rss-for-ai-more-use-cases-for-model-context-protocol/ -- You received this message because you are subscribed to the Google Groups "leo-editor" gr

Re: PR #4348 now in devel. Expect 6.8.4b1 in a few days

2025-05-06 Thread Thomas Passin
That Web Engine versions were *6.9.0* and *6.8* . Sorry for the mental blip. On Tuesday, May 6, 2025 at 6:13:58 AM UTC-4 Edward K. Ream wrote: > On Mon, May 5, 2025 at 10:44 PM Thomas Passin wrote: > >> I've done quick tests on Windows 11/Python 3.12 & 3.13, EndeavorOS

Re: PR #4348 now in devel. Expect 6.8.4b1 in a few days

2025-05-05 Thread Thomas Passin
I've done quick tests on Windows 11/Python 3.12 & 3.13, EndeavorOS/Python 3.13, and Linux Mint/Python 3.12. All worked except on EndeavorOS. EndeavorOS had the problem we've been seeing with the PyQtWebEngine v 3.9.0 package. The workaround of setting an environmental variable didn't work (exp

Re: (share)deepwiki

2025-04-29 Thread Thomas Passin
What an excellent hierarchy! On Tuesday, April 29, 2025 at 5:58:24 PM UTC-4 jkn wrote: > This is very Off-Topic, but I can't resist, and I am pretty sure this is > mentioned in at least one of the Lakoff books: > the classification of Animals that Jorge Luis Borges claimed to have found > in an

Re: (share)deepwiki

2025-04-29 Thread Thomas Passin
Same here. On Tuesday, April 29, 2025 at 2:36:54 PM UTC-4 jkn wrote: > I think I laughed out loud when I saw the first book of his(*) in a shop > and knew I had to read it just from the title > > "Women, Fire, and Dangerous Things" > > (*)OK, co-written > > On Tuesday, April 29, 2025 at 4:20

Re: (share)deepwiki

2025-04-29 Thread Thomas Passin
Philosophy in the Flesh - wow - that takes me back a long way. Amazon says I ordered it in 2001. I thought it was even earlier than that. My copy is in storage somewhere so I can't browse through it now. Lakoff has many books that are good reading. If you don't realize how deeply important

Re: (share)deepwiki

2025-04-28 Thread Thomas Passin
I just asked the question out of general curiosity, to see what it came up with. Not a bad showing, all in all. On Monday, April 28, 2025 at 8:42:48 PM UTC-4 iamap...@gmail.com wrote: > > >>1. *Clear separation of concerns: The MVC pattern and modular >>organization make responsibiliti

Re: (share)deepwiki

2025-04-28 Thread Thomas Passin
On Sunday, April 27, 2025 at 11:39:53 AM UTC-4 Thomas Passin wrote: > I just tried it on my own GF4-Project. It seems to have done a fairly > decent job overall - > > https://deepwiki.com/tbpassin/gf4-project/ > > We may have to wait some time for a User's Guide, though ...

Re: (share)deepwiki

2025-04-27 Thread Thomas Passin
! > > On Sunday, April 27, 2025 at 8:56:31 AM UTC-4 tbp1...@gmail.com wrote: > >> I suspect it may have come from old, obsolete documentation rather than >> code., >> >> On Sunday, April 27, 2025 at 8:28:22 AM UTC-4 iamap...@gmail.com wrote: >> >>&

Re: (share)deepwiki

2025-04-27 Thread Thomas Passin
I suspect it may have come from old, obsolete documentation rather than code., On Sunday, April 27, 2025 at 8:28:22 AM UTC-4 iamap...@gmail.com wrote: > On Sun, Apr 27, 2025 at 8:20 PM Thomas Passin wrote: > >> I see that some parts are very obsolete. > > I have no idea. Thi

Re: (share)deepwiki

2025-04-27 Thread Thomas Passin
Interesting. I see that some parts are very obsolete. E.g., the layout system and the Python and PyQt requirements. On Sunday, April 27, 2025 at 7:02:46 AM UTC-4 Edward K. Ream wrote: > On Saturday, April 26, 2025 at 10:54:42 PM UTC-5 iamap...@gmail.com wrote: > > DeepWiki: Your AI-Powered Guide

Re: Discuss: What characters should be valid in @path directives?

2025-04-24 Thread Thomas Passin
On Thursday, April 24, 2025 at 3:26:20 PM UTC-4 Edward K. Ream wrote: The revised PR allows *all* characters except for *trailing* whitespace. It's up to the user to create a valid path. If a character doesn't make sense in a directory name, the OS will say so, so I think there is little pract

Re: Discuss: What characters should be valid in @path directives?

2025-04-24 Thread Thomas Passin
Since we expect the @path directive to be able to point to an actual existing directory, I think it has to allow spaces. With spaces, I suppose that the paths would have to be quoted so that they are delimited. I do not think that wild card path characters need to be (or should be) supported; i

Re: Tracebacks in plugins 'viewrendered3' & 'freewin' on Fedora 41

2025-04-23 Thread Thomas Passin
milar failure. On Wednesday, April 23, 2025 at 1:16:06 PM UTC-4 Thomas Passin wrote: > This sounds like the same problem we just closed an issue for ( > https://github.com/leo-editor/leo-editor/issues/4327). It's a problem > with the 6.9.0 QtWebEngine not playing well with the

Re: Tracebacks in plugins 'viewrendered3' & 'freewin' on Fedora 41

2025-04-23 Thread Thomas Passin
I forgot that with a Virtualbox VM, you get software rendering as far as I know. This could make a difference. On Wednesday, April 23, 2025 at 2:55:15 PM UTC-4 viktor@gmail.com wrote: > Hello Thomas, > > tbp1...@gmail.com schrieb am Mittwoch, 23. April 2025 um 19:55:29 UTC+2: > > It's also

Re: Tracebacks in plugins 'viewrendered3' & 'freewin' on Fedora 41

2025-04-23 Thread Thomas Passin
This sounds like the same problem we just closed an issue for (https://github.com/leo-editor/leo-editor/issues/4327). It's a problem with the 6.9.0 QtWebEngine not playing well with the graphics card. Try exporting this setting: QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu If that doesn't fix t

Re: PR #4328 merged into devel

2025-04-16 Thread Thomas Passin
On Wednesday, April 16, 2025 at 4:51:47 AM UTC-4 Edward K. Ream wrote: I like this trick. Its drawback is that Leo's log reports that Leo is using myLeoSettings.leo. That message might be confusing. I've never used Leo's log. Where is it? Does it have to be enabled? -- You received this me

Re: PR #4328 merged into devel

2025-04-15 Thread Thomas Passin
Or go to the *@settings* node and change its headline to *@@settings*. On Tuesday, April 15, 2025 at 2:33:11 PM UTC-4 viktor@gmail.com wrote: > Hello J^n, > > Am Di., 15. Apr. 2025 um 19:51 Uhr schrieb jkn : > >> How is "disabling myLeoSettings.leo" achieved, please? >> > > One way is to rena

Re: Heads up: PR #4324 will need testing

2025-04-06 Thread Thomas Passin
On Sunday, April 6, 2025 at 9:07:59 AM UTC-4 Edward K. Ream wrote: On Sun, Apr 6, 2025 at 7:51 AM Thomas Passin wrote: - @comment, @delims, @encoding, @pagewidth and @tabwidth directives should only appear *only *in @ nodes. I strongly object to this one. I write files all the time that use

Re: Heads up: PR #4324 will need testing

2025-04-06 Thread Thomas Passin
Just to be clear, I don't use *@comment*;I I do sometimes use *@c/@* to comment out lines and I assumed that the same restrictions would apply to them. On Sunday, April 6, 2025 at 8:51:53 AM UTC-4 Thomas Passin wrote: > On Sunday, April 6, 2025 at 5:41:51 AM UTC-4 Edward K. Re

Re: Heads up: PR #4324 will need testing

2025-04-06 Thread Thomas Passin
On Sunday, April 6, 2025 at 5:41:51 AM UTC-4 Edward K. Ream wrote: - @comment, @delims, @encoding, @pagewidth and @tabwidth directives should only appear *only *in @ nodes. I strongly object to this one. I write files all the time that use @c and @pagewidth directives even though they are n

Re: Please discuss: a tough choice

2025-04-02 Thread Thomas Passin
On Wednesday, April 2, 2025 at 1:07:05 PM UTC-4 Edward K. Ream wrote: #4323 discusses two recently discovered bugs. Both bugs involve @language directives, but fixing them involves entirely different design questions. This post discusses o

Re: Is there a way to ignore a node in an outline

2025-03-09 Thread Thomas Passin
In what way do you want to ignore a node? Do you mean you want to run the code but use that other node instead of the original one? Is the node part of an external file (i.e., @file, @clean)? Sometimes I just rename a function/method and use the new version in a new node with the original nam

Re: VR3 Supports @pdf Nodes

2025-01-08 Thread Thomas Passin
Yes, what you report is what is intended. It's not exactly whether the head and body paths match. It's that the headline takes priority. The algorithm goes like this: check headline for @pdf. if yes: check headline for valid path. # Valid paths can be either absolute or relative. if

VR3 Supports @pdf Nodes

2025-01-07 Thread Thomas Passin
I have added support for *@pdf* nodes to VR3. It's similar to the same support in the viewrendered plugin that was added recently. A node whose headline starts with *@pdf *and whose headline or body contains a path to a .pdf file on the same computer will display the rendered PDF in the vr3 pa

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-06 Thread Thomas Passin
On Saturday, January 4, 2025 at 5:13:41 AM UTC-5 Edward K. Ream wrote: On Fri, Jan 3, 2025 at 10:09 PM Thomas Passin wrote: Yes, I get that too. It's because the current layouts have a slot for VRx, and if VR3 is available it goes into the slot, otherwise VR goes in. We discussed h

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-04 Thread Thomas Passin
On Saturday, January 4, 2025 at 5:13:41 AM UTC-5 Edward K. Ream wrote: On Fri, Jan 3, 2025 at 10:09 PM Thomas Passin wrote: Yes, I get that too. It's because the current layouts have a slot for VRx, and if VR3 is available it goes into the slot, otherwise VR goes in. We discussed h

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-03 Thread Thomas Passin
Yes, I get that too. It's because the current layouts have a slot for VRx, and if VR3 is available it goes into the slot, otherwise VR goes in. We discussed how to cure that in an earlier thread (it's not hard) but AFAIK nothing has been decided about making a change to the "official" layouts

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-03 Thread Thomas Passin
On Friday, January 3, 2025 at 5:26:55 PM UTC-5 lewis wrote: The @pdf node renders a pdf file. Thanks for this VR feature. However the VR3 plugin needs to be disabled. If VR and VR3 are both enabled the @pdf node does not render. On my Win11 system I can have VR3 enabled and have VR display a p

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-02 Thread Thomas Passin
On Thursday, January 2, 2025 at 1:21:59 PM UTC-5 Thomas Passin wrote: All the @mathjax and @katex nodes display nicely in VR3 except that %comments are rendered, if 1) the "Default Kind" is set to MD, and 2) the "$" delimiters are doubled ("$$"). That's e

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-02 Thread Thomas Passin
The external files in math.leo are not usable for anyone else but you because all they are @file types and the actual files are not in the repo. On Thursday, January 2, 2025 at 12:31:47 PM UTC-5 Edward K. Ream wrote: > On Thu, Jan 2, 2025 at 10:34 AM Thomas Passin wrote: > > > Pl

Re: PR #4253 (enhanced VR plugin) now in devel

2025-01-02 Thread Thomas Passin
Please explain what these node types are supposed to do. Should we only enter LaTeX? Can we enter Markdown with embedded LaTeX? Do we need to install a pdf processor and if so, which one? Are there differences in what we should enter between the various node types? Do we need an internet co

Obfuscated C

2024-12-29 Thread Thomas Passin
A past winner in the International Obfuscated C competition. This is the program in its entirety. I have no idea what it does. I had to use a screen shot since this web site reformatted the code but it needs to have its original format as you will see. More at https://www.ioccc.org/1988/westl

Re: ENB: Improving Leo's support for mathematics

2024-12-28 Thread Thomas Passin
On Saturday, December 28, 2024 at 7:31:22 PM UTC-5 Thomas Passin wrote: I suppose you already found this, but in case you didn't, you can set up the QWebEngineView for the pdf viewer like this: settings = qwev.settings() # qwev = QWebEngineView instance settings.setAttr

Re: ENB: Improving Leo's support for mathematics

2024-12-28 Thread Thomas Passin
ibute(settings.WebAttribute.PdfViewerEnabled, True) On Saturday, December 28, 2024 at 7:20:34 PM UTC-5 Thomas Passin wrote: *About the QWebEngineView class* The revised VR plugin uses the QWebEngineView <https://doc.qt.io/qt-6/qwebengineview.html> class for all html-related nodes. This

Re: ENB: Improving Leo's support for mathematics

2024-12-28 Thread Thomas Passin
*About the QWebEngineView class* The revised VR plugin uses the QWebEngineView class for all html-related nodes. This class is a wrapper around the Chromium open-source browser. This browser should have enough fi

Re: ENB: Improving Leo's support for mathematics

2024-12-28 Thread Thomas Passin
*Interference from GE Force Experience* The VR3 plugin raises a bizarre warning on my machine. With the revised VR plugin, I got the same warning! This message originates from the GE Force Experience package, a part of the NVidia video driver. Somehow, instantiating the QWebEngineView class

Re: Leo is the best math platform!

2024-12-17 Thread Thomas Passin
r 17, 2024 at 4:20:51 PM UTC-5 Edward K. Ream wrote: > On Tue, Dec 17, 2024 at 1:06 PM Thomas Passin wrote: > > pyplot can be fun. >> > > It's addictive! > > I also recommend you develop a set of styles you like and save them to a >> style file in a known

Re: Leo is the best math platform!

2024-12-17 Thread Thomas Passin
pyplot can be fun. As an alternative to a, b = [], [] for x in range(-50,50): y=x**2 a.append(x) b.append(y) this is shorter and probably a little easier to grasp what the variables represent: xy = [(x, x**2) for x in range(-50, 50)] x, y = zip(*xy) # type(x) is a tuple I also re

Re: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this prob

2024-12-16 Thread Thomas Passin
I did get the same error message about missing xcb libraries on the new Mint VM. I must have been thinking of another VM. Anyway, I cured it by re-installing the library: sudo apt-get install libxcb-cursor0 On Monday, December 16, 2024 at 8:16:45 AM UTC-5 Thomas Passin wrote: > This seems

Re: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this prob

2024-12-16 Thread Thomas Passin
This seems to be a common problem on Linux, but it doesn't show up on all distros. It's a problem between Qt and the various PATHs. Your solution is a reasonable one, whether or not you put it into .bashrc or another shell script. On Linux, lately I've been putting Leo into a venv and running

Re: After upgrade to 6.8.3: How can I rearrange Leo's window panes

2024-12-15 Thread Thomas Passin
d it would not have to start with the prefix. On Sunday, December 15, 2024 at 4:34:59 PM UTC-5 Thomas Passin wrote: You do need to restart Leo. If you did that (I imagine you did), I'm not sure. I don't think the @string qt-layout-name node needs to be an immediate child of @settings.

Re: After upgrade to 6.8.3: How can I rearrange Leo's window panes

2024-12-15 Thread Thomas Passin
You do need to restart Leo. If you did that (I imagine you did), I'm not sure. I don't think the @string qt-layout-name node needs to be an immediate child of @settings. All the built-in layouts have names that begin with "layout-", like "layout-vertical-thirds". The prefix isn't required in

Re: After upgrade to 6.8.3: How can I rearrange Leo's window panes

2024-12-15 Thread Thomas Passin
We don't have a standard layout line that at present. The new layout system makes it very easy to create new layouts like yours. Here's a layout command that will create your layout. You can put it into an @command node in myLeosettings.leo. Then make it the default layout by adding a settin

Re: Leo is the best math platform!

2024-12-15 Thread Thomas Passin
ses Leo's advantages. I would say that LeoVue is something to imitate >> regarding how to showcase Leo (maybe because of its multiple and versatile >> web views for Leo structured information). >> >> Cheers, >> >> Offray >> On 13/12/24 8:58, Thomas

Re: Leo is the best math platform!

2024-12-13 Thread Thomas Passin
t;> regarding how to showcase Leo (maybe because of its multiple and versatile >> web views for Leo structured information). >> >> Cheers, >> >> Offray >> On 13/12/24 8:58, Thomas Passin wrote: >> >> I've been trying to sell Leo-as-a-notebook for s

Re: Leo is the best math platform!

2024-12-13 Thread Thomas Passin
I've been trying to sell Leo-as-a-notebook for some time now. I glad to see you are starting to get the idea at last! Remember, with VR3 you can render an entire tree starting with the current node; by locking the view you can navigate to and edit a node without having the rendered view jump o

Re: passing arguments to @command

2024-12-11 Thread Thomas Passin
You could also have your script pop up a dialog to type the args into. On Wednesday, December 11, 2024 at 12:03:30 PM UTC-5 jkn wrote: > Thanks for the comments/encouragement Edward > > I too have a few scripts such as the above, which I customise on an ad > hoc basis. I'm not trying to elim

Re: passing arguments to @command

2024-12-09 Thread Thomas Passin
me.top.lineEdit g.es(le.text()) On Monday, December 9, 2024 at 6:02:21 PM UTC-5 Thomas Passin wrote: > If you use Find/Replace, it picks up the arguments from the minibuffer the > same way. There's nothing to stop you from asking for an argument, > inputting all of them, and having

Re: passing arguments to @command

2024-12-09 Thread Thomas Passin
If you use Find/Replace, it picks up the arguments from the minibuffer the same way. There's nothing to stop you from asking for an argument, inputting all of them, and having your command extract them all. Hmm, I tried a command and added some text after its name in the minibuffer after the c

Re: passing arguments to @command

2024-12-09 Thread Thomas Passin
There's a node in LeoDocs about getting arguments. Look for the headline "Getting interactive input in scripts and commands". sys.argv will give you the arguments that the Python interpreter received at startup. Another way I've passed arguments to a script is via the clipboard, but of course

Re: Life after Leo: engineering math

2024-12-01 Thread Thomas Passin
On Sunday, December 1, 2024 at 2:02:14 PM UTC-5 Edward K. Ream wrote: On Sun, Dec 1, 2024 at 12:31 PM Thomas Passin wrote: Ah, my mistake. It's not python cells that have the language specified in the header line, it's markdown cells: # %% [markdown] So it isn't the import t

Re: Life after Leo: engineering math

2024-12-01 Thread Thomas Passin
Ah, my mistake. It's not python cells that have the language specified in the header line, it's markdown cells: # %% [markdown] So it isn't the import that has the bug but my memory. On Sunday, December 1, 2024 at 11:09:25 AM UTC-5 Thomas Passin wrote: > Oops, posted too

Re: Life after Leo: engineering math

2024-12-01 Thread Thomas Passin
Looking at the syllabus, you should have fun. It's really racing over a lot of topics. The first lecture has a matrix example built around weather. It includes both a Matplotlib page and a Jupyter Notebook for running the matrix system. I imported it as jupytext into Leo and found that I coul

Re: Is this a Layout Bug

2024-11-29 Thread Thomas Passin
Very well done! It's interesting that the two status bars don't even align with each other. The cutoff top and bottom also suggest that the QWebEngineView is getting wrong video information somehow, or can't understand it correctly. Is there any chance that you use an display multiplier other

Re: Life after Leo: engineering math

2024-11-28 Thread Thomas Passin
On Thursday, November 28, 2024 at 10:29:27 AM UTC-5 Edward K. Ream wrote: I first discovered Steve Brunton via his introduction to the Fourier Series . He is, by far, the best math teacher I've ever had. This makes me want to check out his courses.

Re: Is this a Layout Bug

2024-11-27 Thread Thomas Passin
On Wednesday, November 27, 2024 at 8:34:00 PM UTC-5 wzy...@gmail.com wrote: Hello Thomas, Yesterday, I mentioned that disabling the timer resolved the issue, meaning the UI dragging problem disappeared. However, the layout functionality was affected. I suspect the problem lies in the run_layou

Re: Is this a Layout Bug

2024-11-27 Thread Thomas Passin
I added the timer to prevent a problem that I think was a race condition. With a timer, the delay time is always going to be a guess and maybe it needs to be smaller for your machine. Still, I don't understand why an extra status bar gets shown. The layout code does not touch the status bar

Re: Capabilities of the 'restart-leo' command ?

2024-11-20 Thread Thomas Passin
Let's continue this investigation on the GitHub issue thread, shall we? On Wednesday, November 20, 2024 at 1:24:34 PM UTC-5 Thomas Passin wrote: > On Wednesday, November 20, 2024 at 12:18:26 PM UTC-5 Edward K. Ream wrote: > > > *Summary* > > *python -m leo.core.runLeo* wor

Re: Capabilities of the 'restart-leo' command ?

2024-11-20 Thread Thomas Passin
On Wednesday, November 20, 2024 at 12:18:26 PM UTC-5 Edward K. Ream wrote: *Summary* *python -m leo.core.runLeo* works as expected from all locations. *restart-leo* works as expected at all times. Edward I agree that py -m leo.core.runLeo works as expected in all the cases. My tests all sh

Re: Capabilities of the 'restart-leo' command ?

2024-11-20 Thread Thomas Passin
On Tuesday, November 19, 2024 at 7:14:01 AM UTC-5 Edward K. Ream wrote: On Tuesday, November 19, 2024 at 3:08:34 AM UTC-6 Edward K. Ream wrote: I thinks [the restart-leo command] is correct and I don't want to change this logic! Also note info issue #1183

Re: Capabilities of the 'restart-leo' command ?

2024-11-20 Thread Thomas Passin
On Wednesday, November 20, 2024 at 10:38:09 AM UTC-5 Edward K. Ream wrote: On Wed, Nov 20, 2024 at 9:35 AM Thomas Passin wrote: I do not believe a word of your analysis. There is something wrong with your installation. Then you had better think again. 1. The exact same behavior happens on

Re: Capabilities of the 'restart-leo' command ?

2024-11-20 Thread Thomas Passin
I do not believe a word of your analysis. There is something wrong with your installation. Then you had better think again. 1. The exact same behavior happens on my Linux EndeavourOS VM. I just checked it. 2. My statement that the starting argument of -m leo.core.runLeo gets changed in *s

Re: Capabilities of the 'restart-leo' command ?

2024-11-20 Thread Thomas Passin
On Wednesday, November 20, 2024 at 5:20:12 AM UTC-5 Edward K. Ream wrote: On Tue, Nov 19, 2024 at 4:21 PM Thomas Passin wrote: I have tracked down what is happening but I don't know why. The problem is not with the restart command, it's with the runLeo.py module. It runs a

Re: Capabilities of the 'restart-leo' command ?

2024-11-19 Thread Thomas Passin
On Tuesday, November 19, 2024 at 1:44:08 PM UTC-5 Thomas Passin wrote: I have tracked down what is happening but I don't know why. The problem is not with the restart command, it's with the runLeo.py module. It runs a different version of Leo, and even a different version

Re: Capabilities of the 'restart-leo' command ?

2024-11-19 Thread Thomas Passin
I have tracked down what is happening but I don't know why. The problem is not with the restart command, it's with the runLeo.py module. It runs a different version of Leo, and even a different version of Python, depending on how it is invoked even though you would swear the results should be

Re: ENB: Fixing delegated syntax coloring

2024-11-19 Thread Thomas Passin
Parsing html and xml can be hard. For example, the javascript in a element might build a string that includes "". It's hard to prevent a regex from ending its match at that point. On Tuesday, November 19, 2024 at 10:33:18 AM UTC-5 Edward K. Ream wrote: > On Tue, Nov 19, 2024 at 7:57 AM Edward

Re: Capabilities of the 'restart-leo' command ?

2024-11-19 Thread Thomas Passin
On Tuesday, November 19, 2024 at 4:08:33 AM UTC-5 Edward K. Ream wrote: On Friday, October 18, 2024 at 4:23:21 AM UTC-5 viktor@gmail.com wrote: Leo restart on Windows suffers from the same problem. If I start it with my batch file that sets PYTHONPATH, it restarts the git/leo-editor version

Re: Is this a Layout Bug

2024-11-18 Thread Thomas Passin
What you describe makes me think that the extra status bar is not actually part of the main Leo window. It is all very strange! On Monday, November 18, 2024 at 7:53:29 PM UTC-5 wzy...@gmail.com wrote: > This effect is indeed from taking a photo. When using a screenshot, the > status area dis

Re: Is this a Layout Bug

2024-11-18 Thread Thomas Passin
I don't know. I haven't noticed any problem while dragging or resizing. But there have been one or two times when I've come back to an open Leo window and had some feature missing, like the main menu bar. I can't reproduce the behavior as yet. I don't see how the layout system per se could be

Viewrendered3 Notebooks - an Example

2024-11-17 Thread Thomas Passin
The recent burst of progress on jupytext/Jupyter Notebooks reminded me that I've posted about VR3's note book capabilities several times but never offered more than a screenshot. So here is a (very) small example notebook. I've been using it for testing VR3. You can use it to see what VR3 off

Freewin Plugin Bug Fix and Improvements

2024-11-16 Thread Thomas Passin
Freewin (FW) opens a free-floating window that is linked to the body of the node selected when it was launched. FW has two views, and editor view and an "rendered" view. The latter renders the body as ReStructuredText (RsT), which is useful when the host node is written is RsT. The editor view

  1   2   3   4   5   6   7   8   9   10   >