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, >

Re: Images In Leo Nodes?

2023-04-23 Thread Thomas Passin
On Sunday, April 23, 2023 at 7:06:36 AM UTC-4 Edward K. Ream wrote: On Saturday, April 22, 2023 at 4:51:13 PM UTC-5 Edward K. Ream wrote: Iirc, the lack of identifying data with the 0xfffc character was why I abandoned this project years ago. It would be natural to allow body text to contain

Re: installation problems on Ubuntu 20.04

2023-04-23 Thread Thomas Passin
Try running python3 -m leo.core.runLeo If this succeeds then Leo has been installed properly, and the problem is with the launcher "leo". What version of Python 3 do you have? Leo requires at least python3.9. Whatever the problem is, Leo normally runs fine on both Ubuntu 20.0x and 22.0x,

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-22 Thread Thomas Passin
On 4/22/2023 5:45 PM, Ralf M. wrote: Am 22.04.2023 um 03:27 schrieb Greg Ewing via Python-list: How are you invoking your script? Presumably you have some code in your embedding application that takes a script path and runs it. Instead of putting the code to update sys.path into every script,

Re: Images In Leo Nodes?

2023-04-22 Thread Thomas Passin
On Saturday, April 22, 2023 at 5:51:13 PM UTC-4 Edward K. Ream wrote: On Sat, Apr 22, 2023 at 3:26 PM Thomas Passin wrote: I've made a little progress. That unicode character - 0xfffc - is only a marker and does not carry any information about the image. Iirc, the lack of identifying

Re: Images In Leo Nodes?

2023-04-22 Thread Thomas Passin
d outside of Leo won't have any images anyway. On Tue, Mar 28, 2023 at 5:04 PM Thomas Passin wrote: It would be very useful if an image could be embedded into a Leo body. Probably no one would want to do this in a program or script, but for documentation it could be very helpful. ...

Plugin xsltWithNodes.py Can no longer work

2023-04-21 Thread Thomas Passin
The plugin requires a library that no longer exists (4Suite). Is there a standard way to handle plugins that are too obsolete? Do they move to the attic? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop

Re: Is npyscreen still alive?

2023-04-21 Thread Thomas Passin
On 4/21/2023 5:57 PM, Barry wrote: On 21 Apr 2023, at 22:00, Grant Edwards wrote: I recently googled across the ncurses application framework npyscreen, and was thinking about giving it a try for a small but real project (something that would be distributed to customers), but I'm a bit

Formal Verification - TLA+

2023-04-21 Thread Thomas Passin
" TLA+ is a high-level language for modeling programs and systems--especially concurrent and distributed one" TLA+ Home page It's probably worth going quickly to this page on the site -Industrial Use of TLA+

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Thomas Passin
On 4/20/2023 5:47 PM, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the script. However,

Re: Impressive ChatGPT responses

2023-04-21 Thread Thomas Passin
8, 2023 at 6:42 PM Thomas Passin wrote: > > ...I am not sure I am ever going to write code completely by hand again! >> And I expect these tools to get better fast." > > > Thanks for this quote. I wouldn't dispute it. > > My prediction: some time in the future AI's

Re: PyCharm's strict PEP and not so strict?

2023-04-20 Thread Thomas Passin
On 4/19/2023 7:19 PM, dn via Python-list wrote: *PyCharm enables a range of Python-linters. Some by add-in. Some by "External tools"* I was not 'up' on "linters", Thanks for the heads up! Attempted finding a "linter" on jetbrains... I take it that finding a 'linter' for Build

Re: Pycharm IDE

2023-04-20 Thread Thomas Passin
On 4/19/2023 7:48 PM, dn via Python-list wrote: On 20/04/2023 08.59, Thomas Passin wrote: On 4/19/2023 4:06 PM, Mark Bourne wrote: print(f'{LIMIT}) ^ I think this one should be: print(f'{LIMIT}') with the closing quote ;o) Yup a typo!  Where's pylint when I need it? but (and you

Re: Python-pickle error

2023-04-19 Thread Thomas Passin
On 4/19/2023 12:14 PM, charles wiewiora wrote: Hello, I am experincing problems with the pickle moducle the folowing code was working before, import pickle number=2 my_pickeld_object=pickle.dumps(number) print("this is my pickled object",{my_pickeld_object},) with open('file.pkl', 'rb') as

Re: Pycharm IDE

2023-04-19 Thread Thomas Passin
On 4/19/2023 4:06 PM, Mark Bourne wrote: print(f'{LIMIT}) ^ I think this one should be: print(f'{LIMIT}') with the closing quote ;o) Yup a typo! Where's pylint when I need it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Dropping a file vs importing it: @edit vs @auto

2023-04-19 Thread Thomas Passin
s for). >> >> On Wednesday, April 19, 2023 at 10:43:49 AM UTC-4 Edward K. Ream wrote: >> >>> On Wed, Apr 19, 2023 at 9:04 AM Thomas Passin wrote: >>> >>> If there is a Leo shortcut on the desktop and you drag and drop a >>>> non-

Re: Dropping a file vs importing it: @edit vs @auto

2023-04-19 Thread Thomas Passin
Well, it's not *too* mysterious. When you drop the file its path gets added to the command line that the OS uses to launch Leo (or whatever program the desktop icon is for). On Wednesday, April 19, 2023 at 10:43:49 AM UTC-4 Edward K. Ream wrote: > On Wed, Apr 19, 2023 at 9:04 AM Thomas Pas

Dropping a file vs importing it: @edit vs @auto

2023-04-19 Thread Thomas Passin
If there is a Leo shortcut on the desktop and you drag and drop a non-Leo file on it, an instance of Leo will start and contain an @edit node for the dropped file (a .cmd file will be put into an @file node). If you import the same file, it will get imported into an @auto subtree. Why the

Re: Pycharm IDE

2023-04-19 Thread Thomas Passin
On 4/19/2023 1:27 AM, Kevin M. Wilson via Python-list wrote: Ok, I got rid of the "print (f'"I am thinking of a number between 1 to {LIMIT}\n")"print ("I am thinking of a number between 1 to {LIMIT}\n"), I think you misunderstand several things at the same time here. 1. These errors

Re: Pycharm IDE

2023-04-18 Thread Thomas Passin
On 4/18/2023 7:18 PM, Kevin M. Wilson via Python-list wrote: Greetings... Kevin here:I need help, as you have guessed!I have this line: The Print Statement... Why complain about a 'comma', or a ')'???def play_game(): number = random.randint(1, LIMIT) print (f'"I am thinking of a

Re: Impressive ChatGPT responses

2023-04-18 Thread Thomas Passin
so I tried that above…and it still wasn’t enough. But: This has already changed the way I code. I am not sure I am ever going to write code completely by hand again! And I expect these tools to get better fast." On Monday, April 17, 2023 at 8:11:26 AM UTC-4 Thomas Passin wrote: > And th

Re: PR #3286 merged into devel. Please continue testing

2023-04-18 Thread Thomas Passin
modules expect the function to act that way. On Tuesday, April 18, 2023 at 12:58:46 PM UTC-4 Thomas Passin wrote: > g.os_path_join() is still doing the right thing on my system. > > On Tuesday, April 18, 2023 at 12:34:10 PM UTC-4 Edward K. Ream wrote: > >> On Tuesday, April 18, 2

Re: PR #3286 merged into devel. Please continue testing

2023-04-18 Thread Thomas Passin
g.os_path_join() is still doing the right thing on my system. On Tuesday, April 18, 2023 at 12:34:10 PM UTC-4 Edward K. Ream wrote: > On Tuesday, April 18, 2023 at 11:10:29 AM UTC-5 Edward K. Ream wrote: > > I've made copies of the g.os_path_expanduser and g.os_path_join as they > existed in

Re: PR #3286 merged into devel. Please continue testing

2023-04-18 Thread Thomas Passin
This has fixed the g.os_path_join() problem. On Tuesday, April 18, 2023 at 11:50:23 AM UTC-4 Edward K. Ream wrote: > On Tuesday, April 18, 2023 at 10:46:39 AM UTC-5 Edward K. Ream wrote: > > PR #3286 is now in > devel. It restores some

Re: PR #3277 has been merged into devel

2023-04-18 Thread Thomas Passin
However, the function *did* exist on the previous changeset: Leo 6.7.3-devel, devel branch, build edf4b48991 2023-04-16 08:20:16 -0500 Python 3.11.3, PyQt version 6.4.3 Windows 10 AMD64 (build 10.0.19044) SP0 On Tuesday, April 18, 2023 at 7:01:50 AM UTC-4 lewis wrote: > Running this script

Re: VR3 can now be opened in a tab

2023-04-17 Thread Thomas Passin
Here is an alternative way to delete a tab, where you type the tab name into the minibuffer. The code can go into an @command or @button node: """Delete named tab from log frame. Get tab name to delete from minbuffer.""" def delete_tab(): """State 0""" k = c.k

Re: Last call for reviews of PR #3277: improved path functions

2023-04-17 Thread Thomas Passin
that's good, too. On Monday, April 17, 2023 at 8:08:10 AM UTC-4 Thomas Passin wrote: > I haven't been having any problems. All my external files I've been > working with open and save correctly. I've been holding off saying > anything until I have some more experience with the new cod

Re: Impressive ChatGPT responses

2023-04-17 Thread Thomas Passin
And there's this slashdot report - https://slashdot.org/story/23/04/14/2152250/overemployed-hustlers-exploit-chatgpt-to-take-on-even-more-full-time-jobs?utm_source=rss1.0mainlinkanon_medium=feed People are using ChatGPT to be able to take on additional side hustles. it does much of the extra

Re: Last call for reviews of PR #3277: improved path functions

2023-04-17 Thread Thomas Passin
I haven't been having any problems. All my external files I've been working with open and save correctly. I've been holding off saying anything until I have some more experience with the new code, but so far so good. I have not tried constructing any new external path expressions as yet. On

Re: Fwd: pip is not installed

2023-04-16 Thread Thomas Passin
On 4/16/2023 10:09 PM, MRAB wrote: On 2023-04-16 21:54, Khoinguyen Nguyen wrote: To whom it may concern, I have tried to reinstall, repair, and run in command prompt, but it seems as though pip won't install. I am using Windows 10 and Python 3.11.3. Are there any other suggestions for

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 6:27 PM, Rich Shepard wrote: If pip has not been installed (very possible on Linux), then you will need to get it.  If python3.9 is not the system-upgraded version, then do an internet search for "linux python install pip". There's a pip website that has an installer for it. I

Re: Creating Qt Apps That Run In A Tab

2023-04-16 Thread Thomas Passin
of parlor trick, yet can be useful. On Thursday, April 13, 2023 at 12:08:21 PM UTC-4 Thomas Passin wrote: > In my first post on apps in tabs, I wrote this: > > There are three parts to these "tabbed" apps: > > 1. Creating the top-level QWidget; > 2. Inserting it into a

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 6:34 PM, Rich Shepard wrote: On Sun, 16 Apr 2023, Rich Shepard wrote: I'll download the installer from there. But, I still cannot install the pkg_resources module that meson wants to start the build of pulseaudio-equalizer: # pip install pkg_resources ERROR: Could not find a

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 6:27 PM, Rich Shepard wrote: On Sun, 16 Apr 2023, Thomas Passin wrote: [snip] It should have been installed with the upgrade to 3.9.10 In my experience, on Windows pip is always included but on Linux hardly ever. I have always needed to install the system installer pip

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 4:42 PM, Rich Shepard wrote: Python3-3.9.10 installed on this Slackware64-14.2 desktop. Trying to run meson to build an application I'm told it's missing pkg_resources, which is part of setuptools. The command fails: # pip install setuptools bash: /usr/bin/pip: /usr/bin/python3.7:

Re: tksheet - Copy and Paste with headers

2023-04-16 Thread Thomas Passin
On 4/16/2023 9:01 AM, Alan Gauld wrote: 在 2023/4/15 2:33, angela vales 写道: I have recently created a tkinter app and need the ability to copy and paste data from tksheet table into an Excel file. First thanks for drawing my attention to tksheet. I've long been desiring a decent table

Re: Example of me using chatGPT

2023-04-16 Thread Thomas Passin
Reading more of the material, and the published paper on solving the Raven's Progressive Matrices, I'm not convinced that the RPM situation is as impressive as it seems. It reminded me of Bart Kosko's writings from around 20 years ago on using a Neural Network to find a ruleset to be used by

Re: Example of me using chatGPT

2023-04-15 Thread Thomas Passin
: > On Sat, Apr 15, 2023 at 8:00 AM Thomas Passin wrote: > > I have some reservations about using cosine similarity with vectors like >> this. >> > > Good study question. It seems the authors are not concerned, presumably > for good reasons. > > A related questio

Re: Example of me using chatGPT

2023-04-15 Thread Thomas Passin
Very interesting! I just started reading the home page link. I was struck by this statement: " HD/VSA addresses these challenges by providing a binding operator associating individual (John, Mary) with roles (AGENT, PATIENT) and a

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 10:14 PM, avi.e.gr...@gmail.com wrote: Alan, Your guess is not quite what I intended. Something like a C union is just a piece of memory large enough to hold one of several kinds of content and some way to figure out which is currently in place. I am looking at a data structure

Re: Problem with Matplotlib example

2023-04-13 Thread Thomas Passin
On 4/13/2023 2:41 PM, Martin Schöön wrote: Anyone had success running this example? https://tinyurl.com/yhhyc9r When I try I get this error: "TypeError: __init__() got an unexpected keyword argument 'transform'" This is for the line "m = MarkerStyle(SUCESS_SYMBOLS[mood], transform=t)"

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 2:36 PM, avi.e.gr...@gmail.com wrote: But having precedence rules and also allowing the other methods, should work fine for a good segment of people except perhaps the ones who like Reverse Polish Notation and insist on 5 4 3 + * instead. For *reading*, I prefer the usual 5 * (4 +

Re: Creating Qt Apps That Run In A Tab

2023-04-13 Thread Thomas Passin
t;< Main Widget >> toggle(log) Next time: how to toggle the tab on and off without deleting our widget. On Thursday, April 13, 2023 at 9:27:39 AM UTC-4 Thomas Passin wrote: > I have re-organized the code a bit to make to easier to read. It does the > same job as bef

Re: Creating Qt Apps That Run In A Tab

2023-04-13 Thread Thomas Passin
log.contentsDict[WIDGET_NAME] = w # If this is the first call of toggle(), create our widget's code # This will work for (nearly?) any subclass of QWidget. # Define the widget's class. It will be instantiated when # toggle(log) runs. if not log.contentsDict.get(WIDGET_NAME, None): <

Re: ENB: For Thomas and Félix: more about PR #3277

2023-04-13 Thread Thomas Passin
Or maybe I misunderstood and the references to os.cwd() only refer to the unit tests and not to how the paths are constructed when used in an outline? On Thursday, April 13, 2023 at 10:16:57 AM UTC-4 Thomas Passin wrote: > On Thursday, April 13, 2023 at 10:13:11 AM UTC-4 Thomas Passin wr

Re: ENB: For Thomas and Félix: more about PR #3277

2023-04-13 Thread Thomas Passin
On Thursday, April 13, 2023 at 10:13:11 AM UTC-4 Thomas Passin wrote: On Thursday, April 13, 2023 at 9:32:36 AM UTC-4 Edward K. Ream wrote: [...] *Testing* *test_g_finalize* and *test_g_finalize_join* were responses to Thomas's compatibility concerns. I worked on these two tests

Re: ENB: For Thomas and Félix: more about PR #3277

2023-04-13 Thread Thomas Passin
On Thursday, April 13, 2023 at 9:32:36 AM UTC-4 Edward K. Ream wrote: [...] *Testing* *test_g_finalize* and *test_g_finalize_join* were responses to Thomas's compatibility concerns. I worked on these two tests for several days before realizing that these tests weren't the whole story!

Re: Creating Qt Apps That Run In A Tab

2023-04-13 Thread Thomas Passin
 AM Thomas Passin wrote: > >> Remind me what you mean by an "info item". Would this be a GitHub issue >> with a "devInfo" or "Info" tag? >> > > Exactly. > > Edward > -- You received this message because you are subscribed to

Re: Example of me using chatGPT

2023-04-13 Thread Thomas Passin
There was a recent thread about this on python-list, including someone's experiments. Here's what I wrote - " People need to remember that ChatGPT-like systems put words together the way that many humans usually do. So what they emit usually sounds smooth and human-like. If it's code they

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 1:38 AM, avi.e.gr...@gmail.com wrote: In Python, "+" does not mean plus at all. It means whatever the programmer wanted it to mean. An infix line of code that includes "obj1 + obj2" is supposed to investigate how to do it. I am not sure if some built-in objects may be different, but

Re: Weak Type Ability for Python

2023-04-12 Thread Thomas Passin
On 4/12/2023 1:11 PM, Chris Angelico wrote: On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari wrote: Hi all, Please make this command for Python (if possible): x=1 y='a' wprint (x+y) 1a In fact make a new type of print command which can print and show strings and integers together.

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Thomas Passin
On 4/12/2023 8:59 AM, Mike Dewhirst wrote: Sadly Windows is still in the dock. The jury is still out. Turns out the "without a hitch" was based on cached wheels. I'm going to start from scratch with new projects using Pythons 3.8, 3.10 and 3.11 and report back. Sorry for the length to come,

Re: Dataclasses, immutability(?), and ChatGPT

2023-04-12 Thread Thomas Passin
On 4/12/2023 12:58 AM, dn via Python-list wrote: Are dataclasses (or instances thereof) mutable or immutable? - and in what sense? Have been experimenting with ChatGPT. In particular: its possibilities as a trainer, good ideas for methods of introducing new topics, its capability for

Re: Eye surgery tommorrow

2023-04-11 Thread Thomas Passin
Good luck! I've had the surgery for both eyes. I'd be surprised if you were out of commission for as long as a day. One thing is that you will probably need reading glasses, and a different strength will work better for computer work vs reading books. I ended up getting cheap drugstore

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Thomas Passin
On 4/11/2023 6:58 AM, Chris Angelico wrote: On Tue, 11 Apr 2023 at 20:15, Jim Schwartz wrote: What’s the problem now? Is it with python on windows? I use python on windows so I’d like to know. Thanks Python itself is fine, but a lot of third-party packages are hard to obtain. So if you

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin
On 4/10/2023 2:19 AM, Yogesh Tirthkar wrote: Hello, Thank you for your response. May I know how to uninstall it from user A profile – if user A is no longer available. Is there any means - where I can use local admin account to uninstall the app (installed in User A profile, without user

Re: Need help please

2023-04-10 Thread Thomas Passin
On 4/10/2023 9:59 AM, Jack Gilbert wrote: I D/L 3.11.3, I can see it in CMD running W10 64bit I have IDL on my desktop, HOW do I get 3.11.3 on my desktop? If you mean "How can I create a shortcut to Python 3.11.3 on my desktop that opens an interactive Python session", here is one way:

Pydantic - Type Hints For Validating Data

2023-04-10 Thread Thomas Passin
I just learned of the Pydantic project. It uses Python's type hints to validate structured data at the point of use. It sounds interesting. "Data validation and settings management using Python type annotations. *pydantic* enforces type hints at runtime, and

Re: Leo 6.7.3 coming soon

2023-04-10 Thread Thomas Passin
On Monday, April 10, 2023 at 8:04:23 AM UTC-4 Edward K. Ream wrote: The fix appears to be straightforward, but it points out the folly of rushing to release major changes. +10! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin
068912 -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Wednesday, March 29, 2023 12:19 AM To: python-list@python.org Subject: Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10) [[External Mail] Do not click on links

Re: VR3 can now be opened in a tab

2023-04-09 Thread Thomas Passin
Yes: log = c.frame.log g.es(log.orderedTabNames()) BTW, here's how I found this. I certainly didn't remember, and you may have a better way. Start with the script for your button. It calls a method log.deleteTab. In Leo's core code, similar methods are generally grouped together under the

Re: Creating Qt Apps That Run In A Tab

2023-04-09 Thread Thomas Passin
Remind me what you mean by an "info item". Would this be a GitHub issue with a "devInfo" or "Info" tag? On Sunday, April 9, 2023 at 5:17:47 AM UTC-4 Edward K. Ream wrote: > On Sat, Apr 8, 2023 at 11:31 PM Thomas Passin wrote: > >> Many Qt programs

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
: > On Sat, Apr 8, 2023 at 1:50 PM Thomas Passin wrote: > > 1. I don't see any need to use the expression "{{~}}". Just using "~" >> works now. >> > > Thomas, you have just opened my eyes. Python should do all the work! > > - os.path.expandva

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
On Saturday, April 8, 2023 at 2:50:01 PM UTC-4 Thomas Passin wrote: Then I could write, for example: @file {{leoDir}}/plugins/new_plugin.py @file ~/.leo/themes/tbp_new_theme.leo # or {{homeLeoDir}}/themes/ tbp_new_theme.leo Well, I wouldn't be having a Leo outline in an @file node, I suppose

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
The current PR says this: '!' sets the directory to g.app.loadDir. '~' sets the directory to os.path.expanduser('~') '*' sets the directory to os.environ['LEO_BASE_DIRECTORY'] or os.path.expanduser('~') if the environment variable does not exist. 1. I don't see

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
"*" is so widely used as a wildcard for any string that it would be confusing to use it in another way. On Saturday, April 8, 2023 at 2:13:41 PM UTC-4 Edward K. Ream wrote: On Saturday, April 8, 2023 at 10:49:03 AM UTC-5 jkn wrote: - I really hope you don't choose '*' for such a feature.

Re: VR3 can now be opened in a tab

2023-04-08 Thread Thomas Passin
I've been thinking they could be given a close box. I've not looked in to what it would take, though. On Saturday, April 8, 2023 at 10:44:09 AM UTC-4 jkn wrote: > I meant at the user level - right-click on a tab or similar... I > occasionally have tabs 'outstay their welcome' (as in, I don't

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
handling will go away. Maybe it can be enabled by a setting that initially will have the value True but in later releases defaults to False: @bool use-old-path-expressions = False On Saturday, April 8, 2023 at 10:20:58 AM UTC-4 Edward K. Ream wrote: > On Sat, Apr 8, 2023 at 8:01 AM Thomas Pas

Re: VR3 can now be opened in a tab

2023-04-08 Thread Thomas Passin
Yes, as long as you know its name, which you do from its label: log.deleteTab(TABNAME) On Saturday, April 8, 2023 at 10:26:30 AM UTC-4 jkn wrote: > This look interesting, thanks. > > One thing I have never really needed, but occasionally wondered about; it > is possible to *delete* a tab

Re: Discuss: what should path expressions contain?

2023-04-08 Thread Thomas Passin
Leo already handles "~", so we don't need "{{~}}". When I say "handles", I mean it adjusts between Windows and Linux. We don't need {{sep}} if the handling code makes the adjustment for "/" vs "\" automatically. This would be highly desirable anyway because sometimes the best way to get the

Re: Discuss: remove support for Leo's path expressions

2023-04-07 Thread Thomas Passin
I was thinking the same. After all, leointeg or leojs could parse headlines and do something with the results. What might make sense - both for security and for both Leo and leojs - would be to write a small number of methods that would be the only ones that could be used in path

Re: Discuss: remove support for Leo's path expressions

2023-04-07 Thread Thomas Passin
I'm a little conflicted about this suggestion. I haven't used path expressions much, but I did experiment with using them to work on both Linux and Windows, where the difference was more than just the meaning of "~". By "work", I mean that the same outline could be moved between Linux and

VR3 can now be opened in a tab

2023-04-07 Thread Thomas Passin
The VR3 plugin can now optionally open in a tab in the log pane instead of in its own panel in the main Leo window (also referred to as a pane in the splitter). I have attached a screen shot that shows the panel layout that I like when using VR3 in a tab. There are two new commands to control

Re: How To Install Leo Dependencies From a Git Clone

2023-04-07 Thread Thomas Passin
Keeping it up to date would be the question. On Friday, April 7, 2023 at 5:14:35 AM UTC-4 Edward K. Ream wrote: > On Thu, Apr 6, 2023 at 11:45 PM Thomas Passin wrote: > >> I just installed Python 3.11.3. I of course wanted to install Leo right >> away. I normally run

How To Install Leo Dependencies From a Git Clone

2023-04-06 Thread Thomas Passin
I just installed Python 3.11.3. I of course wanted to install Leo right away. I normally run Leo from my clone. With an ordinary requirements.txt file one can install the requirements using pip -r requirements.txt. But Leo uses a tricky requirements.txt file that delegates everything to the

Re: Paste image from clipboard.

2023-04-06 Thread Thomas Passin
No, Leo nodes cannot display images per se. What you can do is to use markdown or ReStructuredText and use their syntax to show images. The image file would need to be in a location in the files system like any other image file. You can view the rendered node with its images, math symbols,

Re: Qt 6.5 LTS Released

2023-04-05 Thread Thomas Passin
" MIT License Compatibility The MIT License is highly compatible with other permissive licenses. Including the BSD family of licenses. It is generally compatible with GNU GPL group of licenses. However if you distribute the code that contains or is derivative of GNU GPL code the final project

<    3   4   5   6   7   8   9   10   11   12   >