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.
Python Init();
x = [1 2 3];
Python Send( x );
y = [4 5 6];
Python Send( y );
Python Submit( "\[
]\" );
p = Python Get( p );
Show( p );
Python Term();
Python Init(); // initiate the Python connection
qbx = "The right stuff";
Python Send( qbx );
Python Send( dt );
Close( dt, nosave );
qbx = Python Get( qbx );
df = Python Get( dt );
Python Term();
Show( qbx );
df << New Data View;
Wait( 10 );
Close( df, nosave );
Python Term();
Optional. Performs an Eval Insert() on the Python code before submission.
Python Init(); // initiate the Python connection
";
Python Submit( commands );
Python Term();