Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 22 Next »

ORG-10840 - Getting issue details... STATUS

Sample Files Can Be Found in Product:  \Samples\Python\

ORG-9039Integrate Python into Origin as a scripting language
LabTalk Script1
run.Python(%(str$), #); // # = 32(or 33) for setting path, 16 for suppress dump output, 2 for file, 1 for expression, 0 for statement

Or

LabTalk Script2
run -py %(str$);  // Run Python script
run -pye %(str$); // Evaluate Python Expression
run -pyf %(str$); // Run Python file
 Supported Version: Python 2.7 and 3.3
By default we support Python 3.3, to switch the Python version to Python 2.7, please run the script below in Script Window
@pyv=2; //set to use python 2.7, while @pyv=3 to use python 3.3
ORG-10779Execution mode in Script Window to run Python scripts
 Access Origin in Python by PyOrigin module 


 

  • No labels