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

Re: problems in using libraries

2023-04-03 Thread Thomas Passin
On 4/3/2023 1:25 PM, pranavbhardwaj...@gmail.com wrote: Sent from [1]Mail for Windows Why can't I able to use python libraries in my python 3.11.2. It always throw an error such as and and many more. I installed python from python official website and I

Re: Problem in using libraries

2023-04-03 Thread Thomas Passin
On 4/3/2023 12:43 PM, Pranav Bhardwaj wrote: Why can't I able to use python libraries such as numpy, nudenet, playsound, pandas, etc in my python 3.11.2. It always through the error "import 'numpy' or any other libraries could not be resolved". You need to realize that no one can help you

Re: OT? Beware of ChatGPT

2023-04-03 Thread Thomas Passin
pretty good job, but it's hard to predict when it's going to fail. On Thursday, March 30, 2023 at 12:09:02 PM UTC-4 Thomas Passin wrote: > Here's a really good book covering the basics of neural nets, fuzzy logic, > and the relationship between them. It's rather old so it predates GPT a

Re: New Leo "Package" File Format?

2023-04-02 Thread Thomas Passin
Now this is interesting! I wasn't considering huge image files, most just "ordinary" ones like photos, screenshots, or graphs that would be common images to want to include with, for example, a markdown document. I'll read up on your links. Thanks! On Sunday, April 2, 2023 at 5:18:24 PM

Re: New Leo "Package" File Format?

2023-04-02 Thread Thomas Passin
That's good to know. It seems to me that the main challenge would be for Leo to know just what to have in the package. External files would be easy, but for example image files - how to know about them could be a real challenge. I'm thinking that an outline could contain an @resources node,

Can Leointeg Achieve Near Parity With Leo?

2023-04-02 Thread Thomas Passin
I've need thinking about leointeg and how I've been using Leo. This has generated some thought and questions, so I thought I'd air them here. Felix has done magnificent work with creating leointeg, no doubt about it, and I hope he will post some of his thinking here. One topic is about

Re: How can I keep md-content in Leo instead of importing it?

2023-04-02 Thread Thomas Passin
I use ReST more than MD, but they should work the in a similar way. For Leo trees that are intended to be used by Sphinx, I just make the headline of the top node start with @rst. Otherwise I just put @language rest in the body of the top node of the tree. The rst3 command creates a ReST

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 5:11 PM, Barry Scott wrote: On 1 Apr 2023, at 18:47, Igor Korot wrote: I suggest going with wxPython/wxGlade. I ported all my wxPython code to PyQt and have not regretted it. wxPython was (its been a while so may not be an issue now) far to hard to make consistent across OS,

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 1:28 PM, Thomas Passin wrote: On 4/1/2023 1:21 PM, Jim Schwartz wrote: Are there any ide’s that will let me design the screen and convert it to python?  I doubt it because it was mentioned that this is time consuming. Depends on what you mean by "let me design the s

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 1:21 PM, Jim Schwartz wrote: Are there any ide’s that will let me design the screen and convert it to python? I doubt it because it was mentioned that this is time consuming. Depends on what you mean by "let me design the screen", but Pyside (which I think is now called Pyside2)

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 7:59 AM, Jim Schwartz wrote: I have another question. I have an app written in python, but I want to add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that? WxWindows, Tk, and PyQt are some of the common ones. Be aware that GUI

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Thomas Passin
On 4/1/2023 5:24 AM, Jim Schwartz wrote: I am writing an app but I’m not sure I’ll sell it yet. I have it in a private GitHub location and GitHub prompts me for a license. I don’t really understand licenses so I just picked Apache 2.0. Maybe I’m going too far with my worry about which license

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
On 3/31/2023 5:16 PM, Jim Schwartz wrote: What license do I have to choose so people can't use my code? I don't know this stuff. It would help if you would explain what you want to accomplish and why. Do you expect to make money off your software? If not, why do want so badly to protect

Re: Python not showing correct version

2023-03-31 Thread Thomas Passin
On 3/31/2023 2:18 PM, Eryk Sun wrote: On 3/31/23, Sumeet Firodia wrote: One more thing is that pip --version also refers to python 3.10 C:\Users\admin>pip --version pip 23.0.1 from C:\Users\admin\AppData\Local\Packages \PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
On 3/31/2023 10:14 AM, jkn wrote: On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source

Re: Python not showing correct version

2023-03-31 Thread Thomas Passin
On 3/31/2023 8:27 AM, Sumeet Firodia wrote: Hi Barry, This is getting more complicated. As per the command you shared, below is the output C:\Users\admin>py -3.8 -m pip --version pip 19.2.3 from C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\pip (python 3.8) For pip

Re: Python not showing correct version

2023-03-30 Thread Thomas Passin
On 3/30/2023 10:17 AM, Sumeet Firodia wrote: Hi Team, I have installed Python 3.8 for Snowpark but when I check the version in command prompt it shows me Python 3.10.10. C:\Users\admin>python --version Python 3.10.10 Also when I try to uninstall 3.10 it says no such version is installed.

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Thomas Passin
On 3/30/2023 5:15 AM, Andreas Eisele wrote: I sometimes make use of the fact that the built-in pow() function has an optional third argument for modulo calculation, which is handy when dealing with tasks from number theory, very large numbers, problems from Project Euler, etc. I was

Re: OT? Beware of ChatGPT

2023-03-30 Thread Thomas Passin
not about programming at all. Neural Networks and Fuzzy Systems: A Dynamical Systems Approach to Machine Intelligence Bart Kosko I wish I knew where my own copy of it is. I think it may be buried in a box in a storage locker. On Thursday, March 30, 2023 at 11:37:34 AM UTC-4 Thomas Passin wrote

Re: OT? Beware of ChatGPT

2023-03-30 Thread Thomas Passin
I'm a little ambivalent. I'd certainly like to play around with the stuff, and apparently the code in this post is set up to use actual GPT trained coefficients. But what I'm most interested just now is training with other specialized data sets, except that the ones I want don't exist, or I

Re: OT? Beware of ChatGPT

2023-03-29 Thread Thomas Passin
GPT in 60 lines of Python - GPT in 60 lines <https://jaykmody.com/blog/gpt-from-scratch/#what-is-a-gpt?> On Tuesday, January 31, 2023 at 10:17:26 AM UTC-5 Thomas Passin wrote: > Here is an interesting link that among other things shows how ChatGPT has > major weaknesses in m

Re: Ole version set as default

2023-03-29 Thread Thomas Passin
On 3/29/2023 12:46 PM, Pranav Bhardwaj wrote: Dear sir, I am Pranav Bhardwaj and I stuck in a problem. My problem is that in my system I have python 3.11.2 but when I type python in my command prompt, my command prompt show that python version 2.7.13 as a default. And I can't be

New Leo "Package" File Format?

2023-03-29 Thread Thomas Passin
There is a perennial problem when one wants to give a Leo outline to someone else. It happens when an outline contains external files, or images to display, or any other data files that might be needed. For example, an article written with the Viewrendered3 plugin in mind, or for a Sphinx

Re: Standard class for time *period*?

2023-03-29 Thread Thomas Passin
On 3/29/2023 2:17 AM, Loris Bennett wrote: I am glad to hear that I am not alone :-) However, my use-case is fairly trivial, indeed less complicated than yours. So, in truth I don't really need a Period class. I just thought it might be a sufficiently generic itch that someone else with a

Re: Images In Leo Nodes?

2023-03-29 Thread Thomas Passin
 AM UTC-4 Edward K. Ream wrote: > 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

Re: New undo methods for multiple headline changes on branch 'boltex/issue3219'

2023-03-28 Thread Thomas Passin
Without a PR, it's hard to review the code without knowing what has been changed. On Tuesday, March 28, 2023 at 10:46:42 PM UTC-4 Félix wrote: > If you'd like to test out some new proposed methods to undo/redo commands > that alter many headlines at once: >

Re: Images In Leo Nodes?

2023-03-28 Thread Thomas Passin
On Tuesday, March 28, 2023 at 8:59:01 PM UTC-4 gates...@gmail.com wrote: Not what you’re really looking for, but Leo already supports @svg nodes. Of course, those are just the image in a node, viewable in VR — no text around them in the same node, to my knowledge. Right, and VR3 has even

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread Thomas Passin
On 3/28/2023 1:50 PM, a a wrote: On Tuesday, 28 March 2023 at 18:12:40 UTC+2, Thomas Passin wrote: On 3/28/2023 8:47 AM, a a wrote: Ok, I can export bookmarks to html file and open it in Firefox to get a long list of clickable urls but icon of the bookmarked web page is missing. When I open

Images In Leo Nodes?

2023-03-28 Thread Thomas Passin
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. You can put an image into a ReST, MD, or Asciidoc node and view it with VR3 or by creating Sphinx output. But

Re: Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
Here's a script to reverse the effects of the change body script. On Tuesday, March 28, 2023 at 12:01:18 PM UTC-4 Edward K. Ream wrote: > On Tue, Mar 28, 2023 at 9:56 AM Thomas Passin wrote: > >> It would be easy to have a companion script that eliminates the >> font

Re: Standard class for time *period*?

2023-03-28 Thread Thomas Passin
On 3/28/2023 12:13 PM, Grant Edwards wrote: On 2023-03-28, Dennis Lee Bieber wrote: So far, you seem to be the only person who has ever asked for a single entity incorporating an EPOCH (datetime.datetime) + a DURATION (datetime.timedelta). It seems to me that tuple of two timdate objects

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

2023-03-28 Thread Thomas Passin
On 3/28/2023 12:56 AM, Yogesh Tirthkar wrote: Hi Team, Could you please advise on the scenario in windows 10 machine : Where we need to uninstall/remove python from user profile A (installed by user A in its own profile folder) - via an admin user or system account. Currently when we try to

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread Thomas Passin
On 3/28/2023 8:47 AM, a a wrote: Ok, I can export bookmarks to html file and open it in Firefox to get a long list of clickable urls but icon of the bookmarked web page is missing. When I open Bookmarks as right a side-bar I can view and identify an individual Boomarks by icon, so I would like

Re: Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
It would be easy to have a companion script that eliminates the font-changing behavior. If people say they want it, I'll work one up and post it. On Tuesday, March 28, 2023 at 10:45:14 AM UTC-4 Thomas Passin wrote: Nearly all Leo themes use a monospaced typeface for the body font

Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
Nearly all Leo themes use a monospaced typeface for the body font. This is what you want for programming, but for documentation and other non-code writing, many people would prefer a non-monospaced font. Some might event wish for a serif style typeface. The attached script installs a global

Re: ENB: About headline numbers

2023-03-28 Thread Thomas Passin
On Tuesday, March 28, 2023 at 9:08:01 AM UTC-4 Edward K. Ream wrote: PR #3227 contains a draft implementation of issue #3121 : headline numbers. While working on this PR, several

Re: PR #3224: mod_autosave is ready for review

2023-03-28 Thread Thomas Passin
When verbose mode is on, then when autosave happens the Log pane switches to the Log tab to write the message. This can be really annoying if you are working in another tab at the time. Another reason for the verbose mode setting. On Monday, March 27, 2023 at 8:10:02 PM UTC-4 Edward K. Ream

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 8:37 PM, a a wrote: I can select All Opened Tabs (as from the given link) and get 1,000+ Opened Tabs ( I am afraid, this is s number of all saved bookmarks in the past) I go to menu, Bookmarks, Manage Boomarks and copy Tabs and

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 8:37 PM, a a wrote: To save the tabs, right click any one of them and select the "Select All Tabs" item. They will all highlight. Right click on one of them and select the "Bookmark Tabs" item. A dialog box will open with an entry lone for the Name to use (like "Tabset1") and a

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 4:02 PM, Thomas Passin wrote: On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference

Re: New Way To Expand/Contract Leo Trees

2023-03-27 Thread Thomas Passin
I did forget to uncomment the line, but I *thought* I had caught that with a later PR. Sorry! On Monday, March 27, 2023 at 4:40:47 AM UTC-4 Edward K. Ream wrote: On Mon, Mar 27, 2023 at 2:00 AM lewis wrote: I added *@bool **use-mouse-expand-gestures** - True* to myLeoSetttings.leo but the

Re: Standard class for time *period*?

2023-03-27 Thread Thomas Passin
On 3/27/2023 11:34 AM, rbowman wrote: On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote: I need to deal with what I call a 'period', which is a span of time limited by two dates, start and end. The period has a 'duration', which is the elapsed time between start and end. The

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened  This sounds

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
I agree that making Leo do autosave smoothly every few seconds or at least often could be hard. I certainly wouldn't want it to freeze for a short (or sometimes longer) time while it saved. OTOH, I'm never sure I really want autosave. I've had plenty of times where I don't save on purpose

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 10:53:47 AM UTC-4 Edward K. Ream wrote: On Sun, Mar 26, 2023 at 9:43 AM Thomas Passin wrote: I just now got repeated crashes when trying to do a particular operation - it started happening every time. My script goes out to the internet and tries to download

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
Mar 26, 2023 at 8:06 AM Thomas Passin wrote: > >> I think it's a crash from Qt, but not from this new UI code. > > > Imo the new UI code isn't off the hook yet. Qt should never crash, but > Leo's tree drawing code has crashed Qt many times in the past. > > Edward >

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 10:21:21 AM UTC-4 al...@laerios.com wrote: > @paolomi thinks it should not be in ~/ so as to reduce clutter in the > user's home directory. On 26.3.2023 07:25, Edward K. Ream wrote: > - The home directory is a natural place for this data. > - The home directory

Re: Devel reverts recent UI work

2023-03-26 Thread Thomas Passin
I don't think it's the new code, as I said on the other thread. I think there are some Qt problems in general, but I don't think they are from this. I've submitted a new PR that has a setting that needs to be set to True to enable the new behavior. The code did require something new, and I

Re: Patrick Sheehan: Major Issues with Python

2023-03-26 Thread Thomas Passin
On 3/25/2023 4:03 PM, Patrick Sheehan wrote: Hello, I have been working with the attached book (See photo) Photos do not come through on this list, so don't bother to attach any. Type or copy-paste any useful text. to try to learn Python and so far it has been a complete nightmare trying to

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
I think it's a crash from Qt, but not from this new UI code. That's because I have been getting hard crashes for weeks at least. I did not used to get them, so I'm thinking it's something about a particular version of Qt, or a Windows update (In fact, I had an update recently). I think it's

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 6:25:34 AM UTC-4 Edward K. Ream wrote: On Sat, Mar 25, 2023 at 8:36 PM Thomas Passin wrote: @paolomi has requested that Leo's user's home directory be moved - on Linux - from the location it has always had to a new one. The current location is ~/.leo. @paolomi

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-25 Thread Thomas Passin
Thanks for your thoughts, Felix. XDG is one of those not-quite-standards that is supposed to promote interoperability and "sane" locations for various kinds of system files and others. I'm no expert but it seems to me that some major distros follow it less strictly for user locations than

Move Location Of ~/.leo File For Future Installs?

2023-03-25 Thread Thomas Passin
@paolomi has requested that Leo's user's home directory be moved - on Linux - from the location it has always had to a new one. The current location is ~/.leo. @paolomi thinks it should not be in ~/ so as to reduce clutter in the user's home directory. Existing installations would not be

New Way To Expand/Contract Leo Trees

2023-03-25 Thread Thomas Passin
Just merged into the devel branch is a new way to expand or contract nodes using the mouse. When you hold the CTRL key and move the mouse over a node, it will expand. When you hold down the SHIFT key instead, the node will contract. In practice, this means that you can just wave the mouse

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Thomas Passin
On 3/23/2023 3:38 PM, Mats Wichmann wrote: On 3/23/23 09:48, Thomas Passin wrote: I didn't realize that Christoph Gohlke is still maintaining this site. Unless the the last-changed stuff stopped working, it's in a static state: by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC I

Python Infrequently Asked Questions

2023-03-23 Thread Thomas Passin
I bookmarked this years ago and just came across it again. An oldie but goodie! http://norvig.com/python-iaq.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Thomas Passin
On 3/18/2023 3:05 PM, Thomas Passin wrote: downloaded and run HWiNFO and AVE not supported, not greened out That's too bad; you may be out of luck. It's possible that someone has compiled the .pyd library in such a way that it does not need the instruction set extensions. I'm sorry but I

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-22 Thread Thomas Passin
On 3/22/2023 8:09 AM, a a wrote: On Saturday, 18 March 2023 at 20:12:22 UTC+1, Thomas Passin wrote: On 3/17/2023 11:52 AM, a a wrote: On Friday, 17 March 2023 at 16:32:53 UTC+1, a a wrote: On Friday, 17 March 2023 at 16:03:14 UTC+1, Thomas Passin wrote: On 3/16/2023 8:07 PM, a a wrote

Re: Debugging reason for python running unreasonably slow when adding numbers

2023-03-20 Thread Thomas Passin
On 3/20/2023 11:21 AM, Edmondo Giovannozzi wrote: def sum1(): s = 0 for i in range(100): s += i return s def sum2(): return sum(range(100)) Here you already have the numbers you want to add. Actually using numpy you'll be much faster in this case: §

Re: How to get get_body() to work? (about email)

2023-03-19 Thread Thomas Passin
On 3/18/2023 10:49 PM, Peng Yu wrote: Hi, https://docs.python.org/3/library/email.parser.html It says "For MIME messages, the root object will return True from its is_multipart() method, and the subparts can be accessed via the payload manipulation methods, such as get_body(), iter_parts(),

Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 10:52 PM, Gisle Vanem via Python-list wrote: Thomas Passin wrote: So please, try to think out how your questions will seem to the reader, and be clear about what you are asking.  You may not know the terminology that some other people use, but don't let that stop you from being

Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 4:05 PM, Chris Angelico wrote: On Sun, 19 Mar 2023 at 06:35, Gisle Vanem via Python-list wrote: Thomas Passin wrote: Are you trying to troll here? You just showed how you got an error with this construction, so why are you asking how to get an error with this construction

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread Thomas Passin
On 3/17/2023 11:52 AM, a a wrote: On Friday, 17 March 2023 at 16:32:53 UTC+1, a a wrote: On Friday, 17 March 2023 at 16:03:14 UTC+1, Thomas Passin wrote: On 3/16/2023 8:07 PM, a a wrote: Crash report: Problem Caption: Problem Event Name: APPCRASH Application name: python.exe Application

Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 2:02 PM, Gisle Vanem via Python-list wrote: I accidentally used 'argparse' like this in my Python 3.9 program:   parser.add_argument ("-c, --clean",  dest="clean", action="store_true")   parser.add_argument ("-n, --dryrun", dest="dryrun", action="store_true") instead of:  

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread Thomas Passin
On 3/17/2023 11:32 AM, a a wrote: On Friday, 17 March 2023 at 16:03:14 UTC+1, Thomas Passin wrote: It would be worth trying to downgrade the multiarray version to an earlier one and see if that fixes the problem. Thank you Thomas for your kind reply. I am fully aware to be living on an old

Re: Unable to create Leo's Documentation locally

2023-03-18 Thread Thomas Passin
On Saturday, March 18, 2023 at 1:28:05 PM UTC-4 viktor@gmail.com wrote: Hello Thomas I used a slightly simpler version, since I did not want to add any dependency & make it non-windows specific: import sys import subprocess pyexe = sys.executable cmd = [pyexe, '-m', 'sphinx', '-C',

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Thomas Passin
On 3/18/2023 8:15 AM, Peter J. Holzer wrote: On 2023-03-18 08:46:42 +, Alan Gauld wrote: On 17/03/2023 17:55, Thomas Passin wrote: I used Delphi and Smalltalk/V which both pretty much only exist within their own IDEs and I used their features extensively. Back when Delphi first came out

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Thomas Passin
On 3/18/2023 4:46 AM, Alan Gauld wrote: On 17/03/2023 17:55, Thomas Passin wrote: I used Delphi and Smalltalk/V which both pretty much only exist within their own IDEs and I used their features extensively. Back when Delphi first came out, when I first used it, I don't remember any IDE; one

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-17 Thread Thomas Passin
On 3/17/2023 1:13 PM, Alan Gauld wrote: Oops! I meant to send this to the group not just Dave. Forwarded Message On 16/03/2023 22:55, dn via Python-list wrote: Do you make use of your IDE's expansionist tendencies, and if-so, which ones? When I'm writing Java/C++/C# yes,

Re: Please test PR #3150: @font and @color bugs

2023-03-17 Thread Thomas Passin
I'm very confused here. On Friday, March 17, 2023 at 10:55:27 AM UTC-4 Edward K. Ream wrote: PR #3150 fixes problems with `@color` and `@font` settings. Apparently @font settings have not been working for a year or more. In that sense, the

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-17 Thread Thomas Passin
On 3/16/2023 8:07 PM, a a wrote: Crash report: Problem Caption: Problem Event Name: APPCRASH Application name: python.exe Application version: 3.8.7150.1013 Application time signature: 5fe0df5a Error module name: _multiarray_umath.cp38-win32.pyd Version of the module with

Re: Friday finking: IDE 'macro expansions'

2023-03-17 Thread Thomas Passin
On 3/17/2023 9:38 AM, Simon Ward wrote: On Fri, Mar 17, 2023 at 02:05:50PM +0100, Roel Schroeven wrote: Even better than simply highlighting is (IMO) a thing called "Rainbow Braces" or "Bracket Pair Colorization" I recently learned about: both braces of a matching pair get the same color,

Re: Unable to create Leo's Documentation locally

2023-03-17 Thread Thomas Passin
The following script will build everything except the slides. Either it needs to be run from the *leo/doc* directory or the path needs to be added to the script instead of the "." in the last line: #see https://github.com/leo-editor/leo-editor/issues/1566 import sys import subprocess

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