Has anyone experimented with using Python within LC?

Hakan@exformedia.se hakan at exformedia.se
Sat Jul 22 10:50:33 EDT 2023


Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. 

> 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
> 
> Out of curiosity, what can be done in in Python that cannot be done in LC Script?
> 
> Sent from my iPhone
> 
>> On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi Geoff
>> 
>> Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld:
>> 
>> 
>> on runPythonScript pScript
>>  put the tempname &".py" into tFile
>>  put pScript into URL ("binfile:" & tFile)
>>  put shell("<path_to_python>" && tFile) into fld "output"
>> end runPythonScript
>> 
>> Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused...
>> 
>> cheers
>> Alan
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list