Re: Images In Leo Nodes?

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

Re: installation problems on Ubuntu 20.04

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

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

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

Re: Images In Leo Nodes?

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

Re: Images In Leo Nodes?

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

Plugin xsltWithNodes.py Can no longer work

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

Re: Is npyscreen still alive?

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

Formal Verification - TLA+

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

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

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

Re: Impressive ChatGPT responses

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

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

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

Re: Pycharm IDE

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

Re: Python-pickle error

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

Re: Pycharm IDE

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

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

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

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

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

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

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

Re: Pycharm IDE

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

Re: Pycharm IDE

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

Re: Impressive ChatGPT responses

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

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

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

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

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

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

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

Re: PR #3277 has been merged into devel

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

Re: VR3 can now be opened in a tab

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

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

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

Re: Impressive ChatGPT responses

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

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

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

Re: Fwd: pip is not installed

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

Re: Cannot install pkg_resources using pip

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

Re: Creating Qt Apps That Run In A Tab

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

Re: Cannot install pkg_resources using pip

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

Re: Cannot install pkg_resources using pip

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

Re: Cannot install pkg_resources using pip

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

Re: tksheet - Copy and Paste with headers

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

Re: Example of me using chatGPT

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

Re: Example of me using chatGPT

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

Re: Example of me using chatGPT

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

Re: Weak Type Ability for Python

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

Re: Problem with Matplotlib example

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

Re: Weak Type Ability for Python

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

Re: Creating Qt Apps That Run In A Tab

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

Re: Creating Qt Apps That Run In A Tab

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

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

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

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

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

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

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

Re: Creating Qt Apps That Run In A Tab

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

Re: Example of me using chatGPT

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

Re: Weak Type Ability for Python

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

Re: Weak Type Ability for Python

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

Re: Christoph Gohlke and compiled packages

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

Re: Dataclasses, immutability(?), and ChatGPT

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

Re: Eye surgery tommorrow

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

Re: Christoph Gohlke and compiled packages

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

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

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

Re: Need help please

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

Pydantic - Type Hints For Validating Data

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

Re: Leo 6.7.3 coming soon

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

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

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

Re: VR3 can now be opened in a tab

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

Re: Creating Qt Apps That Run In A Tab

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

Re: Discuss: what should path expressions contain?

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

Re: Discuss: what should path expressions contain?

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

Re: Discuss: what should path expressions contain?

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

Re: Discuss: what should path expressions contain?

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

Re: VR3 can now be opened in a tab

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

Re: Discuss: what should path expressions contain?

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

Re: VR3 can now be opened in a tab

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

Re: Discuss: what should path expressions contain?

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

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

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

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

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

VR3 can now be opened in a tab

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

Re: How To Install Leo Dependencies From a Git Clone

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

How To Install Leo Dependencies From a Git Clone

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

Re: Paste image from clipboard.

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

Re: Qt 6.5 LTS Released

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

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

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