Associate-script-object
Origin also provides the ability to add a button to a graph or worksheet, and then execute LabTalk script by pushing that button. This allows for script to be saved with a specific project or window.
type -b "Hello World";
For more information, see Running LabTalk Script From Graphical Objects
import pandas as pd import originpro as op data = {'Name':['Tom', 'Jack', 'Mike', 'Alice'], 'Grade':[99, 98, 95, 90]} df = pd.DataFrame(data) wks = op.find_sheet() wks.from_df(df)
For more information, see Running Python from Graphical Objects