该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


The following example sends the JMP x and y variables to Python, executes the Python statement z <- x * y, and then gets the Python z variable and returns it to JMP.
x = [1 2 3];
y = [4 5 6];
]\" );
p = Python Get( p );
Show( p );
Python Init(); // initiate the Python connection
qbx = "The right stuff";
Python Send( qbx );
dt = Open( "$SAMPLE_DATA/Animals.jmp" );
Close( dt, nosave );
qbx = Python Get( qbx );
df = Python Get( dt );
Show( qbx );
df << New Data View;
Wait( 10 );
Close( df, nosave );
Optional. Performs an Eval Insert() on the Python code before submission.
Python Init(); // initiate the Python connection
";
Python Submit( commands );