Home » Community » Newbie corner » U++ and Python
|
Re: U++ and Python [message #60587 is a reply to message #60586] |
Thu, 23 May 2024 08:31 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/648.jpg) |
koldo
Messages: 3378 Registered: August 2008
|
Senior Veteran |
|
|
Hello Luigi
From U++ to Python is easier, but from Python to U++...
So far I haven't had the need, but at some point I have thought about what you say, if the application supports it, U++ generates some files and calls a Python binary. This opens the files, does the jobs, and generates other files that U++ uses later. I know this is not very brilliant, but in some situations it can save the day.
Of course, if the script is not relatively large, you can convert it relying on ChatGPT. It's not perfect, you'll have to check everything, the code won't be brilliant, but it will take a lot of work off your hands. ChatGPT knows a lot about U++. If you use matrix algebra, you can also tell it to use Eigen as well.
Best regards
IƱaki
[Updated on: Thu, 23 May 2024 08:33] Report message to a moderator
|
|
|
Re: U++ and Python [message #60591 is a reply to message #60587] |
Fri, 24 May 2024 17:58 ![Go to previous message Go to previous message](theme/default/images/up.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/112.jpg) |
forlano
Messages: 1196 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
koldo wrote on Thu, 23 May 2024 08:31Hello Luigi
So far I haven't had the need, but at some point I have thought about what you say, if the application supports it, U++ generates some files and calls a Python binary. This opens the files, does the jobs, and generates other files that U++ uses later. I know this is not very brilliant, but in some situations it can save the day.
Hi Koldo,
this is the solution (a). I am moving in this direction as the easiest.
Luckily Pyinstaller produces exe from script.
Best regars,
Luigi
|
|
|
Goto Forum:
Current Time: Sat Jul 27 03:23:39 CEST 2024
Total time taken to generate the page: 0.01056 seconds
|