cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
AT
AT
Level VI

How do you Pass Arguments from JMP to Python script?

Hi,

I like to pass a string (file name) to a Python Script using RunProgram. Here is the script:

 

 

file = "mtest.py abc.pdf";

 

RunProgram(executable("/usr/bin/python"),options({file}),readfunction("text"));

 

I appreciate your help. Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to Pass Arguments from JMP to Python script?

You need to pass two different arguments through RunProgram as a list, because you are actually passing two arguments to python.  I do not have a mac, but on windows this python script:

import sys
print(sys.argv[1])

 

and this jsl script:

RunProgram(
	executable("C:\path to\python.exe"),
	options({"C:/path to/pythonscript.py", "hi"}),
	readfunction("text")
);

 

returns:

"hi
"

View solution in original post

nascif_jmp
Level VI

Re: How to Pass Arguments from JMP to Python script?

Keep an eye out for JMP 14.0 and the new Python Submit() command.

It will allow you to call Python code directly from JSL, passing and receiving data structures - no RunProgram() required.

View solution in original post

4 REPLIES 4
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to Pass Arguments from JMP to Python script?

You need to pass two different arguments through RunProgram as a list, because you are actually passing two arguments to python.  I do not have a mac, but on windows this python script:

import sys
print(sys.argv[1])

 

and this jsl script:

RunProgram(
	executable("C:\path to\python.exe"),
	options({"C:/path to/pythonscript.py", "hi"}),
	readfunction("text")
);

 

returns:

"hi
"
AT
AT
Level VI

Re: How to Pass Arguments from JMP to Python script?

Thanks. I will give it a try.

nascif_jmp
Level VI

Re: How to Pass Arguments from JMP to Python script?

Keep an eye out for JMP 14.0 and the new Python Submit() command.

It will allow you to call Python code directly from JSL, passing and receiving data structures - no RunProgram() required.

AT
AT
Level VI

Re: How to Pass Arguments from JMP to Python script?

 


Thanks. It is good to know.

Recommended Articles