<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Pass Arguments from JMP to Python script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/50571#M28748</link>
    <description>&lt;P&gt;Keep an eye out for JMP 14.0 and the new Python Submit() command.&lt;/P&gt;
&lt;P&gt;It will allow you to call Python code directly from JSL, passing and receiving data structures - no RunProgram() required.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 18:25:13 GMT</pubDate>
    <dc:creator>nascif_jmp</dc:creator>
    <dc:date>2018-02-01T18:25:13Z</dc:date>
    <item>
      <title>How do you Pass Arguments from JMP to Python script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/49620#M28224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I like to pass a string (file name) to a Python Script using RunProgram. Here is the script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;file = &lt;/SPAN&gt;"mtest.py abc.pdf"&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;RunProgram&lt;/SPAN&gt;(executable(&lt;SPAN class="s3"&gt;"/usr/bin/python"&lt;/SPAN&gt;),options({file}),readfunction(&lt;SPAN class="s3"&gt;"text"&lt;/SPAN&gt;));&lt;/P&gt;
&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;I appreciate your help. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 18:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/49620#M28224</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2018-02-21T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Arguments from JMP to Python script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/49636#M28239</link>
      <description>&lt;P&gt;You need to pass two different arguments through RunProgram as a list, because you are actually passing two arguments to python.&amp;nbsp; I do not have a mac, but on windows this python script:&lt;/P&gt;&lt;PRE&gt;import sys
print(sys.argv[1])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this jsl script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;RunProgram(
	executable("C:\path to\python.exe"),
	options({"C:/path to/pythonscript.py", "hi"}),
	readfunction("text")
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns:&lt;/P&gt;&lt;PRE&gt;"hi
"&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Jan 2018 15:44:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/49636#M28239</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2018-01-13T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Arguments from JMP to Python script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/49644#M28240</link>
      <description>&lt;P&gt;Thanks. I will give it a try.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 03:41:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/49644#M28240</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2018-01-14T03:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Arguments from JMP to Python script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/50571#M28748</link>
      <description>&lt;P&gt;Keep an eye out for JMP 14.0 and the new Python Submit() command.&lt;/P&gt;
&lt;P&gt;It will allow you to call Python code directly from JSL, passing and receiving data structures - no RunProgram() required.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:25:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/50571#M28748</guid>
      <dc:creator>nascif_jmp</dc:creator>
      <dc:date>2018-02-01T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Arguments from JMP to Python script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/50574#M28751</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks. It is good to know.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:26:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-Pass-Arguments-from-JMP-to-Python-script/m-p/50574#M28751</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2018-02-01T19:26:05Z</dc:date>
    </item>
  </channel>
</rss>

