Hi everyone,
I have a custom python package which uses GUIs for getting the user input. I now want to execute this package from within JMP18.
PY_SCRIPT = "
from mydummy.util import jmp
from mydummy.request import this_data
df = this_data().GUI()
jmp_source = jmp.df2jmp(df, 'MY DT')
";
EXECUTE = Python Execute({}, {jmp_source}, PY_SCRIPT);
If(EXECUTE == 0,
DT = Eval(Parse(jmp_source));
,
DT = New Table();
);
In general this script works. It creates the GUI, processes the data in python, converts it to a JMP-Table-Script and from there on i can use JSL as usual for data anylsis/graphics.
However, Python Execute (as well as Run Programm) allways freezes everything in JMP. So, when the GUI is open and the python code is running I can't do anything in JMP anymore. Is there a way to start a new instance of the '~JMP\JMPPRO\18\jmp_python.exe' instance?
I also tried a python script using subprocess.Popen. If i wait for the return I do have the same issues.
My GUI needs the main thread, so threading is also not possible - somehow I need to create a new ~jmp_python.exe instance or jsl can handle it.
Any suggestions? Is that possible?
Thx