I would like to run python script from SAS JMP environment using JSL. What are the options?
use python procees to run this command "jmp.exe *. jsl" and that would open jmp and run the *. jsl script and then you can import whatever you generate from jmp back in to python.
Running a JSL script outside of a projectOpen a Script Editor window by selecting File > New > Script. Paste and run the following script: dt = Open( "$SAMPLE_DATA/Big Class. jmp" );
The JMP-Python integration allows JMP users to interact with a large amount of scientific, statistical, and data analysis tools written in Python. JMP implements this capability by loading the Python shared library into the running JMP process.
In JMP, File -> Open for files of type JMP Scripts (*. JSL), the OPEN button has options for Open and Run. If the JSL file begins with \\!, Open and Run both run the JSL wiout an option of editing the file without running it first.
Please look at SAS communities - that would be better source of information.
Some search shows that you can call python script from JSL. Here are two examples:
https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-to-execute-a-Python-script-in-SAS-Enterprise-Miner/ta-p/223761
https://community.jmp.com/t5/Discussions/Best-method-to-get-a-python-object-into-JMP/td-p/15158
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With