Re: Problem resizing a window and button placement

2024-02-24 Thread Thomas Passin via Python-list
On 2/24/2024 3:20 AM, Steve GS via Python-list wrote: Yes, I ran that elegantly simple code. The print statement reports the X, Y, Height and Width values. However, I do not see how to capture the width value. I experimented with the code Vwidth = rootV.winfo_width() and it also reports the

Re: Testing (sorry)

2024-02-19 Thread Thomas Passin via Python-list
On 2/19/2024 11:55 AM, Skip Montanaro wrote: Here is a typical bounce message that I get: mailto:python-list@python.org>>: host mail.python.org [188.166.95.178] said: 450-4.3.2      Service currently unavailable 450 4.3.2 Some time after I get

Re: Testing (sorry)

2024-02-19 Thread Thomas Passin via Python-list
On 2/19/2024 9:17 AM, Grant Edwards via Python-list wrote: On 2024-02-19, Thomas Passin wrote: About 24 hours later, all of my posts (and the confirmation e-mails) all showed up in a burst at the same time on two different unrelated e-mail accounts. I still have no clue what was going

Re: Testing (sorry)

2024-02-18 Thread Thomas Passin via Python-list
On 2/18/2024 6:09 PM, Grant Edwards via Python-list wrote: On 2024-02-18, Peter J. Holzer via Python-list wrote: [Replying to the list *and* Grant] On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote: Today I noticed that nothing I've posted to python-list in past 3 weeks has

Re: Leo's PyPi page will remain

2024-02-16 Thread Thomas Passin
On WIndows, installing pyqtx does not require a separate installation of Qt - apparently all the binaries needed are packaged with pyqyx. From your error message, on the Mac it seems that you need to install Qt itself, apart from any Python installation. If Qt has already been installed,

Interesting Post On Retiring An API

2024-02-16 Thread Thomas Passin
>From The Old New Thing - If you’re just going to sit there doing nothing, at least do nothing correctly -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: Leo's PyPi page will remain

2024-02-11 Thread Thomas Passin
I don't know for sure about the Mac (why it would be different, I mean), but you want to install "pyqt6", not "qt". You should also install "PyQt6-WebEngine", for the ViewRendered3 plugin to work completely. I don't know if that has finally gotten into the requirements list or not. On

Re: PR 3774 completes the 6.7.8 code base

2024-02-05 Thread Thomas Passin
On my Manjaro VM only three were skipped - one importer, one speller, one in leoAst. 928 passed, 3 skipped in 11.53s I wonder if something isn't installed on the XUBuntu VM, like a language or something else outside of Leo itself. On Monday, February 5, 2024 at 1:09:34 PM UTC-5 Thomas Passin

Re: PR 3774 completes the 6.7.8 code base

2024-02-05 Thread Thomas Passin
OK, doing it that way on XUbuntu gave no errors but many more skipped tests than on Windows (Windows skipped two importer tests): 905 passed, 26 skipped in 8.59s On Sunday, February 4, 2024 at 6:21:18 PM UTC-5 Edward K. Ream wrote: > On Saturday, February 3, 2024 at 9:00:57 AM UTC-6 Thomas

Re: PR 3774 completes the 6.7.8 code base

2024-02-04 Thread Thomas Passin
On Linux/Manjaro there is the same warning, but it only skipped 3 tests instead of 26. It too a few seconds longer than on XUbuntu. On Sunday, February 4, 2024 at 2:41:44 PM UTC-5 Thomas Passin wrote: > For the recent merge in devel, 08fcbac60bc296b2e636c3467daf29022b03231b, > there is

Re: PR 3774 completes the 6.7.8 code base

2024-02-04 Thread Thomas Passin
=== Interesting how much faster the tests run in Linux than Windows. On Sunday, February 4, 2024 at 3:38:37 AM UTC-5 Edward K. Ream wrote: > On Sat, Feb 3, 2024 at 9:01 AM Thomas Passin wrote: > >> On Windows 10, Python 3.12 - > > leo\plugins\leo_babel\tests\lib_test.py:118 >> C:\Tom\gi

Re: Extract lines from file, add to new files

2024-02-03 Thread Thomas Passin via Python-list
On 2/3/2024 5:02 PM, dn via Python-list wrote: Every trainer, in any field, has to deal with these problems - all the time, and over-and-over. On 4/02/24 06:58, Thomas Passin via Python-list wrote: In my view this whole thread became murky and complicated because the OP did not write down

Leo Command To Convert To Title Case

2024-02-03 Thread Thomas Passin
Converting to Title Case means to make the first letter of every word in a string capitalized, and all the other letters made lowercase. It can be handy if you copy an all-capital string from somewhere else but you don't like all-caps and want to convert it to title case. I couldn't find a

Re: Extract lines from file, add to new files

2024-02-03 Thread Thomas Passin via Python-list
Of Thomas Passin via Python-list Sent: Wednesday, January 31, 2024 7:25 AM To: python-list@python.org Subject: Re: Extract lines from file, add to new files On 1/30/2024 11:25 PM, avi.e.gr...@gmail.com wrote: Thomas, on some points we may see it differently. I'm mostly going by what the OP

Re: PR 3774 completes the 6.7.8 code base

2024-02-03 Thread Thomas Passin
== FAILED leo/unittests/core/test_leoTokens.py::TestTokenBasedOrange::test_blank_lines_after_function_3 - AssertionError: "\\\n[122 chars]omment 1.\n# Trailing comment 2.\n ... = 1 failed, 904 passed, 26 skipped, 1 warning in 9.32s ====

Re: PR 3774 completes the 6.7.8 code base

2024-02-03 Thread Thomas Passin
On Windows 10, Python 3.12 - warnings summary leo\plugins\leo_babel\tests\lib_test.py:118 C:\Tom\git\leo-editor\leo\plugins\leo_babel\tests\lib_test.py:118: PytestCollectionWarning: cannot collect test class 'TestCmdr' because it has a

Re: Extract lines from file, add to new files

2024-01-31 Thread Thomas Passin via Python-list
On 1/31/2024 9:05 AM, Rich Shepard via Python-list wrote: On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote: If I had a script that's been working for 30 years, I'd probably just use Python to do the personalizing and let the rest of the bash script do the rest, like it always has

Re: Extract lines from file, add to new files

2024-01-31 Thread Thomas Passin via Python-list
be heavily used, sure, you could tweak and optimize. As it is, Rich is getting a chance to improve his python skills no matter which way he goes. -Original Message- From: Python-list On Behalf Of Thomas Passin via Python-list Sent: Tuesday, January 30, 2024 10:37 PM To: python-list@python.org

Re: Extract lines from file, add to new files

2024-01-30 Thread Thomas Passin via Python-list
On 1/30/2024 12:21 PM, Rich Shepard via Python-list wrote: On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote: Fine, my toy example will still be applicable. But, you know, you haven't told us enough to give you help. Do you want to replace text from values in a file? That's been covered

Re: Extract lines from file, add to new files

2024-01-30 Thread Thomas Passin via Python-list
On 1/30/2024 8:37 AM, Rich Shepard via Python-list wrote: On Mon, 29 Jan 2024, Thomas Passin via Python-list wrote: If you aren't going to use one or another existing template system, perhaps the easiest is to use unique strings in the message file. For example: Dear __##so-and-so

Re: Extract lines from file, add to new files

2024-01-29 Thread Thomas Passin via Python-list
On 1/29/2024 11:15 AM, Rich Shepard via Python-list wrote: For my use 1) the salutation and email address (always with an '@') are sequential and 2) I'm developing the script to extract both from the same file. I've looked at my Python books "Python Crash Course," "Effective Python," and

Re:  LeoInteg 1.0.19 Released

2024-01-22 Thread Thomas Passin
After updating, and installing websockets, the new version opened OK in vsc. One thing I noticed is that LeoInteg uses the name "Leo" in the bar displaying its name, and LeoJS uses "LeoJS". This makes it a little unclear whether the "Leo" panel is another instance of LeoJS, or whether it's

Re: LeoInteg using Leo's Null GUI ?

2024-01-22 Thread Thomas Passin
On Monday, January 22, 2024 at 5:09:27 PM UTC-5 Edward K. Ream wrote: On Mon, Jan 22, 2024 at 3:10 PM Thomas Passin wrote: Didn't we decide not to support Jupyter notebooks any more? If so, nbformat can probably be omitted in the future. Good catch. Hehe, VR3 still has some references

Re: LeoInteg using Leo's Null GUI ?

2024-01-22 Thread Thomas Passin
On Monday, January 22, 2024 at 3:49:42 PM UTC-5 Edward K. Ream wrote: setup.py specifies requirements in the section called << define install_requires >>. This section lists the following dependencies: install_requires = [ # Other entries omitted 'nbformat', # for Jupyter

Re: How to replace a cell value with each of its contour cells and yield the corresponding datasets seperately in a list according to a Pandas-way?

2024-01-21 Thread Thomas Passin via Python-list
. Someone else will probably pitch in. Thanks. Le dim. 21 janv. 2024 à 18:28, Thomas Passin via Python-list mailto:python-list@python.org>> a écrit : On 1/21/2024 11:54 AM, marc nicole wrote: > Thanks for the reply, > > I think using a Pandas (or a Numpy)

Re: How to replace a cell value with each of its contour cells and yield the corresponding datasets seperately in a list according to a Pandas-way?

2024-01-21 Thread Thomas Passin via Python-list
t_contours(target_cells)     print(contour_cells)     target_cells_with_contour = apply_contours(target_cells, contour_cells)     datasets = create_possible_datasets(zipf_dataset, target_cells_with_contour)     print(datasets) main() Le dim. 21 janv. 2024 à 16:33, Thomas Passin via Python-list mai

Re: How to replace a cell value with each of its contour cells and yield the corresponding datasets seperately in a list according to a Pandas-way?

2024-01-21 Thread Thomas Passin via Python-list
On 1/21/2024 7:37 AM, marc nicole via Python-list wrote: Hello, I have an initial dataframe with a random list of target cells (each cell being identified with a couple (x,y)). I want to yield four different dataframes each containing the value of one of the contour (surrounding) cells of each

Re: Discuss: Release Leo only via GitHub?

2024-01-20 Thread Thomas Passin
downloaded and unpacked the Leo distro. On Saturday, January 20, 2024 at 5:14:11 PM UTC-5 Edward K. Ream wrote: > On Sat, Jan 20, 2024 at 3:23 PM Thomas Passin wrote: > >> I think that would be all right, although sometimes I have trouble >> finding the release files when I

Re: Discuss: Release Leo only via GitHub?

2024-01-20 Thread Thomas Passin
I think that would be all right, although sometimes I have trouble finding the release files when I want to get an app from GitHub. My main concern would be how to make it painless for a new user to get the dependencies installed. On Saturday, January 20, 2024 at 2:14:18 PM UTC-5 Edward K.

Re: Leo 6.7.7 released

2024-01-20 Thread Thomas Passin
All right, now the pip distro reports Leo 6.7.7. BTW, pip won't upgrade an existing package to one of the same release. There's probably some better way, but I handled it by deleting 6.7.7 and its install directory from Python's site-packages directory (the one in the user's location if

Re: Leo 6.7.7 released

2024-01-18 Thread Thomas Passin
After upgrading from PyPi, my copy claims it is Leo 6.7.8. Otherwise it seems normal but I've only had it open a few minutes. On Thursday, January 18, 2024 at 2:12:51 PM UTC-5 Edward K. Ream wrote: > Leo https://leo-editor.github.io/leo-editor/ 6.7.7 is now available on > GitHub

Re: Question about garbage collection

2024-01-16 Thread Thomas Passin via Python-list
On 1/16/2024 4:17 AM, Barry wrote: On 16 Jan 2024, at 03:49, Thomas Passin via Python-list wrote: This kind of thing can happen with PyQt, also. There are ways to minimize it but I don't know if you can ever be sure all Qt C++ objects will get deleted. It depends on the type of object

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 7:24 PM, Thomas Passin wrote: On 1/15/2024 6:27 PM, Greg Ewing via Python-list wrote: On 16/01/24 11:55 am, Mats Wichmann wrote: Windows natively has something called python.exe and python3.exe which is interfering here I'm wondering whether py.exe should be taught to recognise

Re: Question about garbage collection

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 9:47 PM, Akkana Peck via Python-list wrote: I wrote: Also be warned that some modules (particularly if they're based on libraries not written in Python) might not garbage collect, so you may need to use other methods of cleaning up after those objects. Chris Angelico writes:

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 6:27 PM, Greg Ewing via Python-list wrote: On 16/01/24 11:55 am, Mats Wichmann wrote: Windows natively has something called python.exe and python3.exe which is interfering here I'm wondering whether py.exe should be taught to recognise these stubs and ignore them. This sounds

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 1:26 PM, Mats Wichmann via Python-list wrote: On 1/15/24 09:44, Sibylle Koczian via Python-list wrote: First and foremost I want to understand why I'm seeing this: - Python scripts with "/usr/bin/env python3" as shebang line work as expected on a computer with Windows 10 and

Re: LLMs as Collaborators

2024-01-14 Thread Thomas Passin
Thanks, I didn't know about polars! On Sunday, January 14, 2024 at 11:37:13 PM UTC-5 iamap...@gmail.com wrote: > Jon Udell continues to learn how to make use of LLMs - >> 7 Guiding Principles for Working with LLMs >> >> >

Re: LLMs as Collaborators

2024-01-14 Thread Thomas Passin
Jon Udell continues to learn how to make use of LLMs - 7 Guiding Principles for Working with LLMs <https://thenewstack.io/7-guiding-principles-for-working-with-llms/> It's starting to look useful ... On Tuesday, November 7, 2023 at 12:15:31 AM UTC-5 Thomas Passin wrote: > Here'

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Thomas Passin via Python-list
On 1/14/2024 8:54 AM, Thomas Passin via Python-list wrote: On 1/14/2024 7:48 AM, Sibylle Koczian via Python-list wrote: Am 09.01.2024 um 12:36 schrieb Barry Scott via Python-list: On 7 Jan 2024, at 15:09, Sibylle Koczian via Python-list wrote: Oh, and the two Windows and Python versions

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Thomas Passin via Python-list
On 1/14/2024 7:48 AM, Sibylle Koczian via Python-list wrote: Am 09.01.2024 um 12:36 schrieb Barry Scott via Python-list: On 7 Jan 2024, at 15:09, Sibylle Koczian via Python-list wrote: Oh, and the two Windows and Python versions are on two different computers. Will remove the "/env"

Re: Extract lines from file, add to new files

2024-01-11 Thread Thomas Passin via Python-list
On 1/11/2024 1:27 PM, MRAB via Python-list wrote: On 2024-01-11 18:08, Rich Shepard via Python-list wrote: It's been several years since I've needed to write a python script so I'm asking for advice to get me started with a brief script to separate names and email addresses in one file into two

Re: Discuss: what should path expressions contain?

2024-01-10 Thread Thomas Passin
I just did some testing on Windows, and with an @file node Leo acts as if the os.path functions expanduser() and expandvars() are applied, as well as the abspath() that would be expected (and probably realpath() but I didn't check that). This means that you can set an environmental variable,

Re: Discuss: what should path expressions contain?

2024-01-10 Thread Thomas Passin
Edward made some changes during this thread, IIRC. On Wednesday, January 10, 2024 at 5:21:22 AM UTC-5 Edward K. Ream wrote: > On Tue, Jan 9, 2024 at 1:14 PM jkn wrote: > >> did the work that got done here ever get documented? >> > > Luke, use the find command! > > Searching LeoDocs.leo for

Re: ENB: About leoTokens.py

2024-01-06 Thread Thomas Passin
On Saturday, January 6, 2024 at 7:31:52 AM UTC-5 Edward K. Ream wrote: I could not have refactored the code without Leo. It would be interesting to read more about this. Other IDEs claim to support refactoring. How did Leo make it possible in a way that others would not have? -- You

Re: Using my routines as functions AND methods

2024-01-04 Thread Thomas Passin via Python-list
On 1/3/2024 8:00 PM, Alan Gauld via Python-list wrote: On 03/01/2024 22:47, Guenther Sohler via Python-list wrote: Hi, In my cpython i have written quite some functions to modify "objects". and their python syntax is e.g.\ translate(obj, vec). e.g whereas obj is ALWAYS first argument.

Re: Using my routines as functions AND methods

2024-01-03 Thread Thomas Passin via Python-list
On 1/3/2024 11:17 PM, Thomas Passin wrote: On 1/3/2024 8:00 PM, Alan Gauld via Python-list wrote: On 03/01/2024 22:47, Guenther Sohler via Python-list wrote: Hi, In my cpython i have written quite some functions to modify "objects". and their python syntax is e.g.\ translate(obj,

Re: LeoJS - How To Write To File System And Run External Programs

2024-01-03 Thread Thomas Passin
Yay! On Wednesday, January 3, 2024 at 7:12:26 PM UTC-5 Félix wrote: > I'm going to take a coding break by doing a tutorial exactly about that! > > On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com wrote: > >> Now That leoJS is getting into pretty good shape - and Felix must

Re: Issue #3710: EKR's last lecture

2024-01-03 Thread Thomas Passin
he advantage of novice's mind is that we can start > without the heaviness and even ignore the one related with popularity of > fashion (like the one in Rust these days). > > [1] https://cinemaphile.com/watch?v=Rg3r3gG4nQo > [1a] https://plutojl.org/ > > Cheers, > > Offray

LeoJS - How To Write To File System And Run External Programs

2024-01-03 Thread Thomas Passin
Now That leoJS is getting into pretty good shape - and Felix must need a month's vacation! - I am thinking about plugins and scripts that can do things that are easy to do from within Leo. Specifically, scripts that can read and write files from the file system, and files that do the equivalent

Re: LeoJS - How To Print javascript Output?

2024-01-02 Thread Thomas Passin
Ha! Should have tried that right off!. Thanks. On Tuesday, January 2, 2024 at 8:16:51 PM UTC-5 Félix wrote: > Hi Thomas! :) > > I gather that by an 'Output window' you mean the LeoJS Log Window? (The > equivalent of Leo's Log Window) > [image: log_pane.png] > > Using *console.log (*which is

Re: ✨LeoJS beta 0.2.8 Released!

2024-01-02 Thread Thomas Passin
On Tuesday, January 2, 2024 at 10:36:44 AM UTC-5 jkn wrote: (I have also probably been getting confused between LeoInteg and LeoJS: the page Felix links to has 'how to install LeoInteg' at the top...) I have two issues on first attempts to use LeoJS, or at least to use it in the same

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-02 Thread Thomas Passin via Python-list
On 1/2/2024 11:56 AM, Mats Wichmann via Python-list wrote: On 1/1/24 12:53, Thomas Passin via Python-list wrote: On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if invoked by the script name alone) or Python 3.12.1 (if invoked by the "py" launcher). fwiw, yo

LeoJS - How To Print javascript Output?

2024-01-02 Thread Thomas Passin
This script apparently runs without error but nothing shows in the Output window: @language javascript console.log('this is another test'); Using print() doesn't work, of course, because there isn't a print() function. How can we get a visible output? -- You received this message because

Re: ✨LeoJS beta 0.2.8 Released!

2024-01-02 Thread Thomas Passin
I just installed VSCodium and leoJS on Linux Mint in a Virtual Machine. I followed the instructions here to install VSCodium. It all worked like a charm and I opened the Workbook without noticing anything unusual so far.

Re: ✨LeoJS beta 0.2.8 Released!

2024-01-02 Thread Thomas Passin
That would probably be hard for a developer to keep up with, I would think. I remember the first time I went to install leoJS I got a similar message, but VSC/odium upgraded in a flash so that I hardly knew what had happened. So it was a non-issue for me. On Tuesday, January 2, 2024 at

Re: Installing nim was easy!

2024-01-02 Thread Thomas Passin
So did I, but at one point my distro called "gcc.exe", so I had to add it to the path. On Tuesday, January 2, 2024 at 5:35:25 AM UTC-5 Edward K. Ream wrote: > On Monday, January 1, 2024 at 11:05:00 AM UTC-6 Thomas wrote: > > How did you install gcc? Using minGW? > > > where gcc reports

Re: ✨LeoJS beta 0.2.8 Released!

2024-01-01 Thread Thomas Passin
So far, so good - it updated and ran in both VSC and VSCodium. On Monday, January 1, 2024 at 10:38:21 PM UTC-5 Félix wrote: > Introducing LeoJS Beta 0.2.8 > LeoJS Beta 0.2.8 is here, bringing a substantial update filled with > enhancements and critical fixes. > [image:

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 12:26 PM, Mats Wichmann via Python-list wrote: On 1/1/24 07:11, Thomas Passin via Python-list wrote: Here's how to find out what program Windows thinks it should use to run a ".py" file.  In a console: C:\Users\tom>assoc .py .py=Python.File C:\Users\tom>f

Re: Installing nim was easy!

2024-01-01 Thread Thomas Passin
it can be used to build later versions of itself, and that's where the gcc compiler comes in. On Monday, January 1, 2024 at 2:10:13 PM UTC-5 Thomas Passin wrote: > I went a different route but didn't get nimble. I installed minGW from > the Nim Github site, then cloned the Nim

Re: Installing nim was easy!

2024-01-01 Thread Thomas Passin
I went a different route but didn't get nimble. I installed minGW from the Nim Github site, then cloned the Nim Github and followed the instructions as given on Nim . This gave me Nim 1.9.1. However, the build script also tries

Re: Installing nim was easy!

2024-01-01 Thread Thomas Passin
How did you install gcc? Using minGW? On Monday, January 1, 2024 at 10:27:25 AM UTC-5 Edward K. Ream wrote: > Apparently the malware warnings are spurious: See nim issue #23151 > . > > That said, there is no way I would open the .zip file without

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 8:19 AM, Thomas Passin via Python-list wrote: On 1/1/2024 6:02 AM, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 6:02 AM, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from. In fact I didn't say in my post that I always get Python

Re: mypy question

2023-12-30 Thread Thomas Passin via Python-list
On 12/30/2023 9:14 AM, Thomas Passin via Python-list wrote: On 12/29/2023 10:02 AM, Karsten Hilbert via Python-list wrote: I agree that mypy's grasp of my intent from queries:list[dict[str, str | list | dict[str, Any]]]=None, into "List[Dict[str, Union[str, List[Any], Dict[str

Re: mypy question

2023-12-30 Thread Thomas Passin via Python-list
On 12/29/2023 10:02 AM, Karsten Hilbert via Python-list wrote: Am Fri, Dec 29, 2023 at 07:49:17AM -0700 schrieb Mats Wichmann via Python-list: I am not sure why mypy thinks this gmPG2.py:554: error: Argument "queries" to "run_rw_queries" has incompatible type "List[Dict[str, str]]"; expected

Re: Aw: Re: mypy question

2023-12-30 Thread Thomas Passin via Python-list
On 12/30/2023 10:08 AM, Karsten Hilbert via Python-list wrote: Dear Thomas, thanks for taking the time to look into my issue. Maybe it helps if I explain what I want (sorry that my web mailer does not respect indentation, I will insert dots). I want a function to run SQL queries:

Re: Aw: Re: mypy question

2023-12-30 Thread Thomas Passin via Python-list
On 12/30/2023 10:08 AM, Karsten Hilbert via Python-list wrote: Dear Thomas, thanks for taking the time to look into my issue. Maybe it helps if I explain what I want (sorry that my web mailer does not respect indentation, I will insert dots). I want a function to run SQL queries:

Re: Issue #3710: EKR's last lecture

2023-12-30 Thread Thomas Passin
Looks like Nim can use a good range of scientific computing libraries, and there are some GUI libraries. So at this point the two compiled languages that would be if serious interest to me would be Nim and Julia. On Saturday, December 30, 2023 at 2:26:06 AM UTC-5 Edward K. Ream wrote: > On

Re: mypy question

2023-12-30 Thread Thomas Passin via Python-list
On 12/29/2023 10:02 AM, Karsten Hilbert via Python-list wrote: I agree that mypy's grasp of my intent from queries:list[dict[str, str | list | dict[str, Any]]]=None, into "List[Dict[str, Union[str, List[Any], Dict[str, Any" seems accurate. I just don't understand why

Re:  LeoInteg 1.0.17 Released

2023-12-29 Thread Thomas Passin
could follow the suggestion in the warning message from pip by creating a venv and installing Leo into it. On Friday, December 29, 2023 at 8:52:13 AM UTC-5 Thomas Passin wrote: > On Friday, December 29, 2023 at 8:49:18 AM UTC-5 Edward K. Ream wrote: > > On Fri, Dec 29, 2023 at 7:35 

Re:  LeoInteg 1.0.17 Released

2023-12-29 Thread Thomas Passin
On Friday, December 29, 2023 at 8:49:18 AM UTC-5 Edward K. Ream wrote: On Fri, Dec 29, 2023 at 7:35 AM Thomas Passin wrote: > I may be one of the few people who realizes how inconsistent the installation situation is because I run around 8 or 10 different distros and distro versions f

Re:  LeoInteg 1.0.17 Released

2023-12-29 Thread Thomas Passin
, 2023 at 8:26:39 AM UTC-5 Thomas Passin wrote: > On Friday, December 29, 2023 at 6:37:55 AM UTC-5 Edward K. Ream wrote: > > On Fri, Dec 29, 2023 at 3:44 AM Viktor Ransmayr > wrote: > > > tbp1...@gmail.com schrieb am Freitag, 29. Dezember 2023 um 00:54:50 UTC+1: > > You

Re:  LeoInteg 1.0.17 Released

2023-12-29 Thread Thomas Passin
On Friday, December 29, 2023 at 6:37:55 AM UTC-5 Edward K. Ream wrote: On Fri, Dec 29, 2023 at 3:44 AM Viktor Ransmayr wrote: tbp1...@gmail.com schrieb am Freitag, 29. Dezember 2023 um 00:54:50 UTC+1: You referring to needing to use *--break-system-packages*, is that right? Big sigh.

Re:  LeoInteg 1.0.17 Released

2023-12-28 Thread Thomas Passin
You referring to needing to use *--break-system-packages*, is that right? I don't see this as a Leo issue. You are installing Leo into the system's Python install, and the OS is touchy about that. Some package that the OS relies on might get updated in an incompatible way as part of the

Re: (share a post)Working With Discovery Trees

2023-12-27 Thread Thomas Passin
Here are two examples of genealogy trees I created with Leo scripts. The data is stored in a Leo outline that uses my Zettelkasten system. For the family history I used a few extra conventions for the keys of data items. One type of diagram is created using Graphviz, for the other my script

Re: (share a post)Working With Discovery Trees

2023-12-27 Thread Thomas Passin
, December 27, 2023 at 10:44:20 AM UTC-5 Edward K. Ream wrote: > On Tue, Dec 26, 2023 at 11:40 AM Thomas Passin wrote: > >> It's a nice way to display and balance out key information. The >> organization is basically parents and children. I didn't see any examples >> wh

Re: how to write tests in Leo?

2023-12-26 Thread Thomas Passin
I don't have much understanding of Leo's tests myself. I think that your case 1 would be handled by opening a NullGui. This will give you a working g, from which you can access a lot of Leo's functionality. I'm not sure how to deal with getting a commander with a null gui. But there must be

Re: how to write tests in Leo?

2023-12-26 Thread Thomas Passin
Take a look in the *leo-editor\leo\unittests* directory. For example, *test_gui.py* imports g. etc. Maybe that will be enough to get started. On Tuesday, December 26, 2023 at 9:44:46 PM UTC-5 iamap...@gmail.com wrote: > Hello, there, > > My intuitive thought is that there are two types of

Re: (share a post)Working With Discovery Trees

2023-12-26 Thread Thomas Passin
It's a nice way to display and balance out key information. The organization is basically parents and children. I didn't see any examples where a node had more than one parent. That means the diagram could be stored in a standard Leo tree. As usual, the hard part is creating a layout of

Re: LeoJS: What is the equivalent of LeoPyRef.leo?

2023-12-24 Thread Thomas Passin
Thanks, Felix. Now if we wanted to test out a code modification or addition, how would we incorporate that into an extension that VSC could load or install? On Sunday, December 24, 2023 at 12:15:08 PM UTC-5 Félix wrote: > Hi Thomas, > > Great question -- Thanks for asking! > > Since LeoJS is

Re: question about code organization issues for personal common libraries and multiple plug-ins

2023-12-24 Thread Thomas Passin
On Sunday, December 24, 2023 at 5:50:42 AM UTC-5 Edward K. Ream wrote: - Define a shared @command f1 node in your myLeoSetting.leo for your function f1. - Execute the function with: c.doCommandByName("f1"). That's how most of my custom things work. -- You received this message because you

Re: question about code organization issues for personal common libraries and multiple plug-ins

2023-12-23 Thread Thomas Passin
I don't have a large objection to creating a plugin. One thing you will have to decide is where the plugin should live. You don't want it to be in the Leo codebase since it's personal. Leo will load plugins from sys.path if you list them in the @enabled-plugins setting if you give the

LeoJS: What is the equivalent of LeoPyRef.leo?

2023-12-23 Thread Thomas Passin
IOW, where or how do we look at Leo's code? Locations like *g.app.leoDir* are undefined. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: question about code organization issues for personal common libraries and multiple plug-ins

2023-12-23 Thread Thomas Passin
It sounds more complex than necessary to me. I'm not sure what kind of functions you have in mind. But there are several ways to attach functions globally. One way is that g has a user dict, whose name I forget right now. Let's call it g.userdict, though that's probably not its real name.

Re: Does LeoJS have an equivalent to the minibuffer?

2023-12-23 Thread Thomas Passin
Aha! That was it - I didn't make sure that a leoJS panel was focused. Thanks. On Saturday, December 23, 2023 at 3:15:04 PM UTC-5 Félix wrote: > Hello Thomas and jkn :) > > Indeed, as stated in LeoJS *readme *at > https://github.com/boltex/leojs?tab=readme-ov-file#features the > keybindings

Does LeoJS have an equivalent to the minibuffer?

2023-12-23 Thread Thomas Passin
IOW, how can Leo commands be run if there isn't an ALT-x/minibuffer? I don't see one. Am I just missing it somehow? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Discuss: retire multiple body editors?

2023-12-23 Thread Thomas Passin
in leoJS, and I think it would be worth doing once the plugin mechanism is working. On Saturday, December 23, 2023 at 8:26:41 AM UTC-5 Thomas Passin wrote: > As a bonus Freewin can render ReStructuredText bodies. > > One point to remember is that Freewin's editor is not a full-fledged Le

Re: Discuss: retire multiple body editors?

2023-12-23 Thread Thomas Passin
As a bonus Freewin can render ReStructuredText bodies. One point to remember is that Freewin's editor is not a full-fledged Leo body editor. It only gives you key shortcuts that the underlying Qt widget gives you, for example. I find that is plenty good enough for the intended purpose. On

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:27 PM, Michael Torrie via Python-list wrote: On 12/22/23 07:02, Thomas Passin via Python-list wrote: On my Windows 10 machine, Python scripts run without a shebang line. Perhaps Windows 11 has added the ability to use one, but then you would need to use the actual location

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:19 PM, Barry wrote: On 23 Dec 2023, at 00:15, Thomas Passin via Python-list wrote: In neither case is the shebang line used. As i understand it, not in front of my windows box to check. The handler for .py file extension is set to be the py.exe It is py.exe

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 9:29 AM, Sibylle Koczian via Python-list wrote: Am 22.12.2023 um 14:13 schrieb Barry: On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list wrote: Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:36 AM, Sibylle Koczian via Python-list wrote: Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all users, - the Python Launcher is installed for all users, - the file types .py, .pyw etc. are associated with

leoJS Seems To Work With VSCodium

2023-12-22 Thread Thomas Passin
VSCodium is a version of VSCode that does not include Microsoft-specific additions like telemetry. It's the same code base so everything *ought* to work the same. I've installed VSCodium, and leoJS seems to be working the same as on VSCode. -- You received this message because you are

Re: ✨LeoJS beta 0.2.0 Released!

2023-12-21 Thread Thomas Passin
On Wednesday, December 20, 2023 at 11:13:38 PM UTC-5 Félix wrote: Viktor, About rst3: I've implemented all of the rst related code in LeoJS, (see leoRst.ts in the repository ) but there's a part that I could not transliterate.

Re: Leo, @auto-md, and Markdeep

2023-12-19 Thread Thomas Passin
On Tuesday, December 19, 2023 at 7:38:30 PM UTC-5 off...@riseup.net wrote: ... What has been pretty useful is also to have a web preview of the document running in localhost. Something similar, implemented with some minimal server, like Flask in Python's case or the equivalent for VS

Re: Félix Malboeuf is my GitHub successor

2023-12-19 Thread Thomas Passin
I'll echo the thanks. It's something I've been concerned about, the transition whenever that time comes. On Tuesday, December 19, 2023 at 4:51:39 AM UTC-5 Edward K. Ream wrote: > Félix Malboeuf has accepted the responsibility of being my GitHub > successor >

Re: Work on Leo will be slowing

2023-12-18 Thread Thomas Passin
On Monday, December 18, 2023 at 8:19:20 AM UTC-5 Edward K. Ream wrote: I'll continue to maintain Leo, but I am about to spend most of my programming time *using* Leo rather than *improving* Leo. I'm glad to read this. After all, it's what Leo is *for*, to be used. At this point, I'm

Re: Type hints - am I doing it right?

2023-12-13 Thread Thomas Passin via Python-list
On 12/13/2023 11:17 AM, Mats Wichmann via Python-list wrote: On 12/13/23 00:19, Frank Millman via Python-list wrote: I have to add 'import configparser' at the top of each of these modules in order to type hint the method. This seems verbose. If it is the correct way of doing it I can live

Re: IDLE editor suggestion.

2023-12-12 Thread Thomas Passin via Python-list
On 2023-12-12 08:22, Steve GS via Python-list wrote: > Maybe this already exists but > I have never seen it in any > editor that I have used. > > It would be nice to have a > pull-down text box that lists > all of the searches I have > used during this session. It > would make editing a lot >

Re: ✨LeoJS beta 0.2.0 Released!

2023-12-10 Thread Thomas Passin
On Sunday, December 10, 2023 at 10:53:00 PM UTC-5 Félix wrote: For the web version, you have to have at least a repo created with at least one commit. Creating a new repo and also adding an automatic readme file inside of it while you create it do work if I recall correctly. (Totally new and

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