Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
AM Thomas Passin wrote: > > Yes, one step closer to literate programming without weave, etc. Often I >> use << named sections >> as a kind of pseudo-code to clarify what's going >> on. I'd like it if we could have organizer nodes like this in external >> fi

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Thomas Passin
On 2/1/2023 12:36 PM, אורי wrote: Thank you all. I'm not familiar with snap update but I did `sudo apt update` & `sudo apt upgrade`, but about one or two months ago. אורי u...@speedy.net You can probably install it from the deadsnakes repository: sudo add-apt-repository ppa:deadsnakes/ppa

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
Yes, one step closer to literate programming without weave, etc. Often I use << named sections >> as a kind of pseudo-code to clarify what's going on. I'd like it if we could have organizer nodes like this in external files, too. On Wednesday, February 1, 2023 at 11:14:20 AM UTC-5 Edward K.

Re: evaluation question

2023-01-31 Thread Thomas Passin
On 1/31/2023 6:18 PM, Greg Ewing wrote: On 1/02/23 7:33 am, Stefan Ram wrote: Thomas Passin writes:    Some people say it is a function now so that you can redefine it. Hmm, I didn't write these quotes. Maybe someone got confused by the depth of the nested replies in this thread. Easy

Viewrendered3 Improvements

2023-01-31 Thread Thomas Passin
The viewrendered3 plugin has a command *vr3-open-markup-in-editor* . In the case of plain text (*@language text* and *@language plain*) nodes, this used to export only the selected node, not the entire subtree, even if the *Entire Tree* option was selected. This has been corrected. In

Re: CTRL-Click Can Now Navigate To Import Statements

2023-01-31 Thread Thomas Passin
On the list of CTRL-click actions, I forgot navigating to function definitions. On Tuesday, January 31, 2023 at 2:36:15 PM UTC-5 Thomas Passin wrote: > The CTRL-Click feature has been extended so that if you CTRL-Click on a > line that starts with import module or from module impor

CTRL-Click Can Now Navigate To Import Statements

2023-01-31 Thread Thomas Passin
The CTRL-Click feature has been extended so that if you CTRL-Click on a line that starts with import module or from module import, Leo will navigate to an external file whose filename is *module.py* or *module.pyw*, if it is the same outline. This also works if the import statement includes

Re: evaluation question

2023-01-31 Thread Thomas Passin
On 1/31/2023 4:24 AM, mutt...@dastardlyhq.com wrote: On Tue, 31 Jan 2023 12:57:33 +1300 Greg Ewing wrote: On 30/01/23 10:41 pm, mutt...@dastardlyhq.com wrote: What was the point of the upheaval of converting the print command in python 2 into a function in python 3 if as a function print()

Re: OT? Beware of ChatGPT

2023-01-31 Thread Thomas Passin
January 29, 2023 at 11:25:38 PM UTC-5 Thomas Passin wrote: > Humans probably have a level of abstraction that is most susceptible to > manipulation. It would perhaps differ between people to an extent, and > also perhaps with the kind of subject being manipulated. I suspect that

Re: evaluation question

2023-01-29 Thread Thomas Passin
On 1/29/2023 4:15 PM, elvis-85...@notatla.org.uk wrote: On 2023-01-28, Louis Krupp wrote: On 1/27/2023 9:37 AM, mutt...@dastardlyhq.com wrote: eval("print(123)") 123 Does OP expect the text to come from the eval or from the print? x = print( [i for i in range(1, 10)] ) [1, 2, 3, 4,

Re: OT? Beware of ChatGPT

2023-01-29 Thread Thomas Passin
Humans probably have a level of abstraction that is most susceptible to manipulation. It would perhaps differ between people to an extent, and also perhaps with the kind of subject being manipulated. I suspect that it is at a level that would correspond to "species" or the next higher

Re: Evaluation of variable as f-string

2023-01-29 Thread Thomas Passin
On 1/29/2023 6:09 AM, Christian Gollwitzer wrote: Am 28.01.23 um 02:56 schrieb Thomas Passin: On 1/27/2023 5:10 PM, Christian Gollwitzer wrote: Am 27.01.23 um 21:43 schrieb Johannes Bauer: I don't understand why you fully ignore literally the FIRST example I gave in my original post

Re: Evaluation of variable as f-string

2023-01-28 Thread Thomas Passin
On 1/28/2023 2:50 PM, Johannes Bauer wrote: Am 28.01.23 um 02:51 schrieb Thomas Passin: This is literally the version I described myself, except using triple quotes. It only modifies the underlying problem, but doesn't solve it. Ok, so now we are in the territory of "Tell us wha

Re: Im out of the hospital and feeling better

2023-01-28 Thread Thomas Passin
What I have found over the years (It's been 30 years since I had my first stone episode) is that from time to time I would get some of the symptoms - it's an unmistakable pattern except that so much time passes in between that I forget. When I realize I'm working up to another episode, I drink

Re: Im out of the hospital and feeling better

2023-01-28 Thread Thomas Passin
I'm glad to hear you are home again. I've been in the hospital twice for a kidney stone, so I have an idea of what you've been going through. Once my stones made it to the bladder, I felt much better. On Saturday, January 28, 2023 at 10:37:01 AM UTC-5 Félix wrote: > It was a kidney stone

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
I see - rc_fn = 'pylint-leo-rc.txt' table = ( os.path.abspath(os.path.join(home_dir, '.leo', rc_fn)), os.path.abspath(os.path.join(base_dir, 'leo', 'test', rc_fn)), ) On Friday, January 27, 2023 at 8:59:49 PM UTC-5 Thomas Passin wrote: > What, you can't set a comm

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
What, you can't set a command line option to point the the file? OK, I'll go on a hunt. On Friday, January 27, 2023 at 7:32:29 PM UTC-5 Edward K. Ream wrote: > On Fri, Jan 27, 2023 at 4:27 PM Thomas Passin wrote: > >> >> >> On Friday, January 27, 2023 at 4:33:45 PM UT

Re: Evaluation of variable as f-string

2023-01-27 Thread Thomas Passin
On 1/27/2023 5:10 PM, Christian Gollwitzer wrote: Am 27.01.23 um 21:43 schrieb Johannes Bauer: I don't understand why you fully ignore literally the FIRST example I gave in my original post and angrily claim that you solution works when it does not: x = { "y": "z" } s = "-> {x['y']}"

Re: Evaluation of variable as f-string

2023-01-27 Thread Thomas Passin
On 1/27/2023 3:33 PM, Johannes Bauer wrote: Am 25.01.23 um 20:38 schrieb Thomas Passin: x = { "y": "z" } s = "-> {target}" print(s.format(target = x['y'])) Stack overflow to the rescue: No. Search phrase:  "python evaluate string as fstring" h

Re: Evaluation of variable as f-string

2023-01-27 Thread Thomas Passin
On 1/27/2023 5:54 PM, Rob Cliffe via Python-list wrote: Whoa! Whoa! Whoa! I appreciate the points you are making, Chris, but I am a bit taken aback by such forceful language. I generally agree with asking for what the intent is. In this case it seems pretty clear that the OP wants to use

Re: In hospital for severe abdominal pains

2023-01-27 Thread Thomas Passin
Feel better soon, from all of us. On Friday, January 27, 2023 at 6:30:31 PM UTC-5 Félix wrote: > Got some tests done, its not apendicite... Being treated and received pain > killers. > > Worst is behind now . Feeling better . > > Thanks to all leonistas who support Leointeg and leojs! > >

Re: Custom help format for a choice argparse argument

2023-01-27 Thread Thomas Passin
On 1/27/2023 4:53 PM, Ivan "Rambius" Ivanov wrote: Hello Cameron, On Fri, Jan 27, 2023 at 4:45 PM Cameron Simpson wrote: On 27Jan2023 15:31, Ivan "Rambius" Ivanov wrote: I am developing a script that accepts a time zone as an option. The time zone can be any from pytz.all_timezones. I have

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
On Friday, January 27, 2023 at 4:33:45 PM UTC-5 Edward K. Ream wrote: Did you update your *active* copy of pylint-leo-rc.txt? You shouldn't be seeing these complaints. I don't know what you mean. The new version is in its place in leo/test. What else needs to be done to make it "active"?

Re: Thomas: Rev d89b7c adds pylint suppressions. Only VR3 affected

2023-01-27 Thread Thomas Passin
As you probably remember, VR3 inherited lots of code from VR2, which inherited from VR. And some new code I worked up more or less followed similar code from those earlier versions. I've been hoping to avoid restructuring any of that code, but maybe I should consider it at last. With this

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 6:39 PM, Barry wrote: On 26 Jan 2023, at 17:32, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 10:32 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: 2. "What is Tjunction max temperature?" Tjunction max is the maximum thermal junction temperature that a processor will allow prior to using internal thermal control mechanisms to re

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 5:00 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: Did you get a warning, or did you just decide to stop the test? (At least) one of the utilities, I forget which one, did show the temperature in a danger zone. I'm very curious as to which

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 12:57 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if I let test program continue) running this test program. Define "overheat&quo

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:02 AM, Grant Edwards wrote: On 2023-01-26, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can

Re: OT? Beware of ChatGPT

2023-01-26 Thread Thomas Passin
Here's an interesting post on Large Language Models, ChatGPT, and AI more generally - Janus' Simulators <https://astralcodexten.substack.com/p/janus-simulators> On Monday, January 23, 2023 at 12:24:44 PM UTC-5 Edward K. Ream wrote: > On Mon, Jan 23, 2023 at 9:10 AM Thomas Pass

Re: Interesting Post On Ultra-fast Pattern Matching, m Go, and Git/Github

2023-01-26 Thread Thomas Passin
Oops! Ongoing . On Thursday, January 26, 2023 at 9:41:32 AM UTC-5 Edward K. Ream wrote: > On Thursday, January 26, 2023 at 8:33:17 AM UTC-6 tbp1...@gmail.com wrote: > A post by Tim Bray on his "Ongoing" blog. It centers on his

Interesting Post On Ultra-fast Pattern Matching, m Go, and Git/Github

2023-01-26 Thread Thomas Passin
A post by Tim Bray on his "Ongoing" blog. It centers on his superfast pattern-matching software. Tim used to work for AWS, hence the references to it. There's a link at the bottom to a blog about using Git/Github. Probably worth reading for GitHub users. -- You received this message

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/25/2023 11:23 PM, Dino wrote: On 1/25/2023 3:27 PM, Dino wrote: On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! the more I learn about Locust and I tinker with it, the more I

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 8:36 PM, Chris Angelico wrote: On Thu, 26 Jan 2023 at 12:06, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can handle. Frankly, if you can overheat a server by hitting it with HTTP requests

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 3:29 PM, Dino wrote: On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. Great

Re: Languages working together

2023-01-25 Thread Thomas Passin
On 1/25/2023 2:21 PM, avi.e.gr...@gmail.com wrote: [...] Sharing can come at many levels. I am fairly certain many very different languages may still share libraries written ages ago and written in C or FORTRAN and thus external to other languages and just need some way to interface to them.

Re: Evaluation of variable as f-string

2023-01-25 Thread Thomas Passin
On 1/25/2023 1:26 PM, Antoon Pardon wrote: Op 23/01/2023 om 17:24 schreef Johannes Bauer: Hi there, is there an easy way to evaluate a string stored in a variable as if it were an f-string at runtime? I.e., what I want is to be able to do this: x = { "y": "z" } print(f"-> {x['y']}") This

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 10:53 AM, Dino wrote: Hello, I could use something like Apache ab in Python ( https://httpd.apache.org/docs/2.4/programs/ab.html ). The reason why ab doesn't quite cut it for me is that I need to define a pool of HTTP requests and I want the tool to run those (as opposed to

Re: Improved find-all command now in devel

2023-01-25 Thread Thomas Passin
Thanks for this hard work! The new results format is certainly a big improvement! And the new code reads better, too. I would probably have tried to move make_result_from_matches() outside _find_all_helper()and let it be called separately after the matches are returned, but at least this way

Re: bool and int

2023-01-25 Thread Thomas Passin
On 1/25/2023 6:53 AM, 2qdxy4rzwzuui...@potatochowder.com wrote: They used Java at my last job (as in, the last job I had before I retired), and it was absolutely awful, for any number of reasons, the gymnastics (on many levels) required to support "primitive types" being one of them. In my one

Re: Help with 'find-all' !!

2023-01-24 Thread Thomas Passin
On Tuesday, January 24, 2023 at 6:46:54 PM UTC-5 Edward K. Ream wrote: . For example, find-all could return a list of dicts of the form: { 'gnx': , 'head': list of indices of matches in the v.h, 'body': list of indices of matches in the v.b, } Given this data, the find-all could easily

Re: Help with 'find-all' !!

2023-01-24 Thread Thomas Passin
On Tuesday, January 24, 2023 at 11:09:59 AM UTC-5 Edward K. Ream wrote: On Tue, Jan 24, 2023 at 7:21 AM Thomas Passin wrote: Since *Find* can find all the matches one at a time, I'm thinking the problem has something to do with the way that results are collected. Right. The culprit is find

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-24 Thread Thomas Passin
On 1/24/2023 10:13 AM, Mike Baskin wrote: Can you stop please It's way past time, isn't it! Sent from Yahoo Mail for iPhone <https://overview.mail.yahoo.com/?.src=iOS> On Tuesday, January 24, 2023, 10:12 AM, Thomas Passin wrote: On 1/23/2023 9:12 PM, Chris Angelico

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-24 Thread Thomas Passin
On 1/23/2023 9:12 PM, Chris Angelico wrote: On Tue, 24 Jan 2023 at 13:09, Jach Feng wrote: Chris Angelico 在 2023年1月24日 星期二清晨5:00:27 [UTC+8] 的信中寫道: On Tue, 24 Jan 2023 at 07:47, Cameron Simpson wrote: But for Jach Feng: the "--" is really expected as something the user does when they

Re: Leo now shows an svg splash screen

2023-01-24 Thread Thomas Passin
Turns out that the Wayland display server has a long-standing problem with splash screens - Centered/Splash shell surfaces <https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/67> On Tuesday, January 24, 2023 at 9:39:23 AM UTC-5 Thomas Passin wrote: > Maybe

Re: Leo now shows an svg splash screen

2023-01-24 Thread Thomas Passin
339) On Tuesday, January 24, 2023 at 4:46:28 AM UTC-5 Edward K. Ream wrote: > On Mon, Jan 23, 2023 at 11:01 PM Thomas Passin wrote: > >> The fix (adding sleep()) works on all my VMs except Ubuntu. OTOH, Leo >> loads so fast on my Ubuntu VM that I don't really miss the splash scree

Re: Help with 'find-all' !!

2023-01-24 Thread Thomas Passin
Since *Find* can find all the matches one at a time, I'm thinking the problem has something to do with the way that results are collected. On Tuesday, January 24, 2023 at 5:23:11 AM UTC-5 Edward K. Ream wrote: > On Mon, Jan 23, 2023 at 9:49 PM Félix wrote: > > i'm having some trouble with the

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
- -yes So maybe the splash screen doesn't show on systems with a Wayland display server? At this point, I'm not inclined tp spend any more time on this. I'll put in a PR with the sleep() added and call it a day for now. On Monday, January 23, 2023 at 11:01:59 PM UTC-5 Thomas Passin wrote

Re: Help with 'find-all' !!

2023-01-23 Thread Thomas Passin
I can confirm your results. On the second node body, only three of the five matches are reported. When I step through using F3 in the Find tab, it does find all five (one at a time). On Monday, January 23, 2023 at 10:49:28 PM UTC-5 Félix wrote: > i'm having some trouble with the 'find-all'

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
ely painting, then closing or possibly getting moved to their final position. With the sleep(), those windows show up behind the splash screen. I'm not inclined to try to diagnose this behavior. On Monday, January 23, 2023 at 10:06:01 PM UTC-5 Thomas Passin wrote: > I've got four Gnome-bas

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
a points that I hope might help. > > The splash screen does appear (and looks quite lovely now, in vector form > and without the watermark!) on my Windows 10 install. > > Jake > > On Mon, Jan 23, 2023 at 7:41 PM Thomas Passin wrote: > >> Now I'm bummed. The splash

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
Now I'm bummed. The splash screen displays properly on Manjaro, a Linux distro using XFCE. But on two Gnome systems, Mint and Debian, it acts the same as before I added the repaint() call. This will take some more digging. On Monday, January 23, 2023 at 6:25:17 PM UTC-5 Edward K. Ream

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
I found a simple fix. It's now in a pending PR. You have to repaint() the splash screen after show()ing it. It looks like the splash screen may never have been visible on Linux(!). On Monday, January 23, 2023 at 4:36:18 PM UTC-5 Thomas Passin wrote: > Hmm, I forgot to check with Linux. I

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
grade to PyQt v6? I seem to remember I had > pain in that direction... > > Regards, J^n > > > On Monday, January 23, 2023 at 2:46:50 PM UTC Edward K. Ream wrote: > >> On Mon, Jan 23, 2023 at 8:24 AM Thomas Passin wrote: >> >>> This is good to see.

Re: Work is nearly complete on Leo's website

2023-01-23 Thread Thomas Passin
Hmm, the old splash screen image doesn't seem to display. It does download, though. The Google Groups software doesn't want to include the image's file tyep (.ico). On Monday, January 23, 2023 at 2:03:14 PM UTC-5 Thomas Passin wrote: > I have been reworking the splash screen code to s

Re: OT? Beware of ChatGPT

2023-01-23 Thread Thomas Passin
The thing about ChatGPT and similar neural network systems is that they know how to string words and phrases together based on probability densities estimated during training, but they don't know about the underlying concepts. They don't know math but they can *sound* like they know math. So

Re: Leo now shows an svg splash screen

2023-01-23 Thread Thomas Passin
This is good to see. I would like the splash screen to be smaller than 600 X 600. It seems much larger than the old screen, and also looks pixelated, a surprise for an SVG image. The SVG image opens at 804 pixels, according to Irfanview; trying half that looked about the right size for a

Leo 6.7.1 From PyPi Failing On Linux Fedora

2023-01-22 Thread Thomas Passin
This is with python3.11.1 on a new Fedora virtual machine. Upgrading from PyQt5 to PytQ6 did not change anything. Symptoms: Leo window opens, tips window opens, ask-create-myLeoSettings dialog opens. After closing those windows, Leo is frozen with no error messages on the terminal. CTRL-C

Re: tree representation of Python data

2023-01-22 Thread Thomas Passin
On 1/21/2023 10:03 AM, Dino wrote: I have a question that is a bit of a shot in the dark. I have this nice bash utility installed: $ tree -d unit/ unit/ ├── mocks ├── plugins │   ├── ast │   ├── editor │   ├── editor-autosuggest │   ├── editor-metadata │   ├── json-schema-validator │   │  

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-22 Thread Thomas Passin
On 1/22/2023 10:45 AM, Peter J. Holzer wrote: Notice that this file is in its first release, version 0.0.1 - the metadata that says it's 'Development Status :: 5 - Production/Stable' seems to be bogus. So it may very well be buggy. It is at least too incomplete to be useful. It handles only

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-21 Thread Thomas Passin
On 1/21/2023 10:11 PM, Jach Feng wrote: Fail on command line, e:\Works\Python>py infix2postfix.py "-4^2+5.3*abs(-2-1)/2" usage: infix2postfix.py [-h] [infix] infix2postfix.py: error: unrecognized arguments: -4^2+5.3*abs(-2-1)/2 Also fail in REPL, e:\Works\Python>py Python 3.8.8

PEP-8, Line Length, And All That

2023-01-20 Thread Thomas Passin
In another thread ("Improvement to imports, what is a better way ?") there was a lot of talk about line length, PEP-8, etc. I realized that one subject did not really come up, yet it can greatly affect the things we were talking about. I'm referring to the design of the functions, methods,

Re: Status report 2: Leo's new website

2023-01-20 Thread Thomas Passin
The splash screen still uses the old bitmaps, doesn't it? if sys.platform.startswith('win'): table = ('SplashScreen.jpg', 'SplashScreen.png', 'SplashScreen.ico') else: table = ('SplashScreen.xpm',) (after updating to the most recent changeset in devel). On Friday,

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
Comcast, FWIW. On Friday, January 20, 2023 at 11:22:12 AM UTC-5 Edward K. Ream wrote: > On Fri, Jan 20, 2023 at 9:49 AM Thomas Passin wrote: > >> Hmm, I tried two different browsers and used CTRL-F5 to force a re-read. >> I wonder what the difference is? >> > >

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
Hmm, I tried two different browsers and used CTRL-F5 to force a re-read. I wonder what the difference is? On Friday, January 20, 2023 at 10:27:48 AM UTC-5 Edward K. Ream wrote: > On Friday, January 20, 2023 at 9:07:36 AM UTC-6 tbp1...@gmail.com wrote: > I think what I'm seeing is that Speed's

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
I think what I'm seeing is that Speed's redirect of leoeditor.com is not in effect yet. I wonder how long it takes for a redirect to ripple through the system. On Friday, January 20, 2023 at 10:00:02 AM UTC-5 Thomas Passin wrote: > The Github README.md file on Github still has its li

Re: Status report: Leo's new website

2023-01-20 Thread Thomas Passin
The Github README.md file on Github still has its links pointing to leoeditor.com. The links have been changed in devel, but master is what people will land on when coming to the site. On Friday, January 13, 2023 at 5:08:03 AM UTC-5 Edward K. Ream wrote: > On Thursday, January 12, 2023 at

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Thomas Passin
chowder.com Sent: Thursday, January 19, 2023 1:30 PM To: python-list@python.org Subject: Re: Improvement to imports, what is a better way ? On 2023-01-19 at 12:59:21 -0500, Thomas Passin wrote: Well, it's an art, not a science [...] +1 # Create a plot g2 = ( ggplot(df2, aes('Days

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Thomas Passin
On 1/19/2023 1:30 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2023-01-19 at 12:59:21 -0500, Thomas Passin wrote: Well, it's an art, not a science [...] +1 # Create a plot g2 = ( ggplot(df2, aes('Days Since Jan 22', # Comments can clarify these params

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
On 1/19/2023 10:21 AM, Dan Kolis wrote: Hello ! Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. I ran your test program here and it generates 25 windows on my machine, and I can click "run" at

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Thomas Passin
On 1/19/2023 11:55 AM, Roel Schroeven wrote: Op 19/01/2023 om 11:32 schreef Stefan Ram: dn writes: >The longer an identifier, the more it 'pushes' code over to the right or >to expand over multiple screen-lines. Some thoughts on this are behind >PEP-008 philosophies, eg line-limit.   

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
20 Ulyana /Cinnamon 3.07 GB Linux kernel 5.4.0-137-generic tk: 0.1.0 On 1/19/2023 10:06 AM, Thomas Passin wrote: Works fine through 10 "go" button presses on my Windows 10 machine.  You might want to run pylint and pyflakes on it On 1/19/2023 7:34 AM, Weatherby,Gerard wrote: W

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
Works fine through 10 "go" button presses on my Windows 10 machine. You might want to run pylint and pyflakes on it On 1/19/2023 7:34 AM, Weatherby,Gerard wrote: Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9

New Fast Python Memory Profiler

2023-01-19 Thread Thomas Passin
Maybe of interest to some devs, Scalene, a newish Python memory profiler, was mentioned in a message on the *python-list* discussion list. Scalene >From the GitHub readme: "Scalene is a high-performance CPU, GPU *and* memory profiler for Python that

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Thomas Passin
On 1/18/2023 11:46 PM, Thomas Passin wrote: On 1/18/2023 8:56 PM, Michael Torrie wrote: On 1/18/23 18:01, Dan Kolis wrote: Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few windows

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Thomas Passin
On 1/18/2023 8:56 PM, Michael Torrie wrote: On 1/18/23 18:01, Dan Kolis wrote: Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few windows Repeated. Not sure what you mean by

Re: Please help me edit Leo's wikipedia page

2023-01-18 Thread Thomas Passin
I'd be willing to contribute some funds if need be. BTW, the Wikipedia entry now reads in part: " The GUI uses the Qt toolkit; the syntax-aware editor is based on Scintilla ." In what way is the editor now based on Scintilla? On Wednesday, January 18, 2023 at 7:20:48 AM UTC-5 Edward K. Ream

Re: IDLE "Codepage" Switching?

2023-01-18 Thread Thomas Passin
orderings%20are%20possible).coding-in-vs-code-on-ubuntu-leading-to-unicode-error/62652695#62652695 Stephen Tucker. On Wed, Jan 18, 2023 at 9:41 AM Peter J. Holzer wrote: On 2023-01-17 22:58:53 -0500, Thomas Passin wrote: On 1/17/2023 8:46 PM, rbowman wrote: On Tue, 17 Jan 2023 12:47:29 +

Re: IDLE "Codepage" Switching?

2023-01-17 Thread Thomas Passin
On 1/17/2023 8:46 PM, rbowman wrote: On Tue, 17 Jan 2023 12:47:29 +, Stephen Tucker wrote: 2. Does the IDLE in Python 3.x behave the same way? fwiw Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license()" for more information.

Re: Curious to know if any Leonistas tried out ChatGPT?

2023-01-17 Thread Thomas Passin
I haven't been able to open the chatGPT page in two different browsers: ERR_TOO_MANY_REDIRECTS How are others managing to do it? I hope not needing to use AI... -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and

Re: Curious to know if any Leonistas tried out ChatGPT?

2023-01-17 Thread Thomas Passin
Now try it again with the beautifier ( PR #3057 ) you just worked on... On Tuesday, January 17, 2023 at 6:25:11 AM UTC-5 Edward K. Ream wrote: > On Monday, January 16, 2023 at 1:51:34 AM UTC-6 Edward K. Ream wrote: > > I tried the following

Re: Please help me edit Leo's wikipedia page

2023-01-16 Thread Thomas Passin
If you had, it would have been pixelated to hell and gone. On Monday, January 16, 2023 at 6:58:05 PM UTC-5 Edward K. Ream wrote: > On Mon, Jan 16, 2023 at 4:08 PM jkn wrote: > > BTW if it turns out it's a matter of $10 i am happy to pay for it as a >> thanks for Leo ;-) >> > > Thanks! > > also

Re: Fast lookup of bulky "table"

2023-01-16 Thread Thomas Passin
On 1/16/2023 11:56 AM, rbowman wrote: On 16 Jan 2023 15:14:06 GMT, Stefan Ram wrote: When none of those reasons matter, one can use dictionaries in Python as well. And then what Chandler Carruth showed us applies: I am missing something. Where is the data in your dictionary coming

Re: Fast lookup of bulky "table"

2023-01-16 Thread Thomas Passin
On 1/16/2023 10:14 AM, Stefan Ram wrote: However, operating systems and databases also try to cache information in main memory that is estimated to be accessed often. Yes, and you can only know by testing, when that's possible. Also, if you know that you have the same queries repeated

Re: Please help me edit Leo's wikipedia page

2023-01-15 Thread Thomas Passin
Dreamstime has a page on license terms, and it has this section that seems as if it might apply - "Limited Royalty Free Licenses (RF-LL) for using Media downloaded within the Free section of the website Dreamstime offers a free section, fully searchable and constantly updated. Its use may be

Re: Fast lookup of bulky "table"

2023-01-15 Thread Thomas Passin
On 1/15/2023 4:49 PM, Stefan Ram wrote: dn writes: Some programmers don't realise that SQL can also be used for calculations, eg the eponymous COUNT(), which saves (CPU-time and coding-effort) over post-processing in Python. Yes, I second that! Sometimes, people only re-invent things

Re: Fast lookup of bulky "table"

2023-01-15 Thread Thomas Passin
On 1/15/2023 2:39 PM, Peter J. Holzer wrote: On 2023-01-15 10:38:22 -0500, Thomas Passin wrote: On 1/15/2023 6:14 AM, Peter J. Holzer wrote: On 2023-01-14 23:26:27 -0500, Dino wrote: Anyway, my Flask service initializes by loading a big "table" of 100k rows and 40 columns or

Re: Fast lookup of bulky "table"

2023-01-15 Thread Thomas Passin
On 1/15/2023 6:14 AM, Peter J. Holzer wrote: On 2023-01-14 23:26:27 -0500, Dino wrote: Hello, I have built a PoC service in Python Flask for my work, and - now that the point is made - I need to make it a little more performant (to be honest, chances are that someone else will pick up from

Re: Viewrendered3 plugin may not render nodes for some linux distros

2023-01-12 Thread Thomas Passin
6.4.0 PyQt6-WebEngine And possibly PyQt6-WebEngine-Qt6 if it didn't get installed by the previous packages. On Thursday, January 12, 2023 at 11:27:09 PM UTC-5 Thomas Passin wrote: > I have been spinning up several new Linux virtual machines, and I > discovered that VR3

Viewrendered3 plugin may not render nodes for some linux distros

2023-01-12 Thread Thomas Passin
I have been spinning up several new Linux virtual machines, and I discovered that VR3 isn't rendering visibly. It's still working, since you can export the rendering to the browser, but nothing is painted on the VR3 panel. All these VMs use a recent version of Python3 with PyQt5. The PyQt5

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
the dictionary. After all that, Leo's spell checker is working. On Wednesday, January 11, 2023 at 10:22:23 AM UTC-5 Thomas Passin wrote: > Don't know yet. I don't have a git clone on the VM in question, I just > spun it up and it needs some more provisioning. > > On Wednesday, January 1

Re: Please help me edit Leo's wikipedia page

2023-01-11 Thread Thomas Passin
" Well, this is a bizarre new policy." I don't think it's that new. Wikipedia has been trying hard to prevent misrepresentation by interested parties who want to make themselves look good, or others to look bad. So you often can't fix errors about yourself even if you know for sure they are

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
Don't know yet. I don't have a git clone on the VM in question, I just spun it up and it needs some more provisioning. On Wednesday, January 11, 2023 at 9:54:21 AM UTC-5 Edward K. Ream wrote: > > > On Wed, Jan 11, 2023 at 8:35 AM Thomas Passin wrote: > >> ...it looks lik

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
o the trick to get this working on Manjaro, as it > did on my Arch installs. > > Jake > > On Wed, Jan 11, 2023 at 8:47 AM Thomas Passin wrote: > >> No, unfortunately it didn't. There is something else wrong in the >> pyenchant package or the enchant support

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
> On Tuesday, January 10, 2023 at 10:53:40 PM UTC-5 Thomas Passin wrote: >> >>> I created a new virtual machine for a Linux distro new to me - Manjaro. >>> Although pyenchant is installed, and the system's package manager claims >>> that the Enchant libraries

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-10 Thread Thomas Passin
Of course, one solution is to uninstall pyenchant. I did that and now Leo can run. On Tuesday, January 10, 2023 at 10:53:40 PM UTC-5 Thomas Passin wrote: > I created a new virtual machine for a Linux distro new to me - Manjaro. > Although pyenchant is installed, and the system's p

Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-10 Thread Thomas Passin
I created a new virtual machine for a Linux distro new to me - Manjaro. Although pyenchant is installed, and the system's package manager claims that the Enchant libraries are installed, they aren't playing together. I installed Leo but it won't start because pyenchant isn't working. I don't

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2023-01-10 Thread Thomas Passin
Don't worry, leoeditor.com is in the Wayback Machine going back to 2013 - On Tuesday, January 10, 2023 at 5:48:12 PM UTC-5 Edward K. Ream wrote: > On Tue, Jan 10, 2023 at 3:10 PM George Zipperlen > wrote: > >> I don't know how long

<    5   6   7   8   9   10   11   12   13   14   >