Hi All,
I am trying to test that my computer is able to run JSL scripts that use Python, I found two pieces of codes in the JMP help and I ran them using JMP 15. The following piece of code is working fine, It includes the python submit().
Names Default To Here( 1 );
Python Init();
Python Submit( "\[
basket = ['apple', 'orange', 'pear']
print(basket)
print(basket[0])
print(basket[1])
]\" );
Python Term();
However, the following piece of code did not work. The code was supposed to print the value of the variables, x, s and M. However, it printed the statement (print (x)) , (print(s)) and (print(M)) instead. it looks like the python send() command is not working. I hope you can help figure it out. This is the code:
Names Default To Here( 1 );
Python Init();
X = 1;
Python Send( X );
S = "Report Title";
Python Send( S );
M = [1 2 3, 4 5 6, 7 8 9];
Python Send( M );
Python Submit( "\[
print(X)
print(S)
print(M)
]\" );
Python Term();
and this is the output:
1.0
Report Title
/**********/
print(X)
print(S)
print(M)
/**********/
0
Thank you in advance