<?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 .jsl Script call from Python in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206295#M41799</link>
    <description>&lt;P&gt;I prepared a data in python and call jsl script from python and use the output in python again. How can I do that.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 11:27:59 GMT</pubDate>
    <dc:creator>Rajat</dc:creator>
    <dc:date>2019-05-10T11:27:59Z</dc:date>
    <item>
      <title>.jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206295#M41799</link>
      <description>&lt;P&gt;I prepared a data in python and call jsl script from python and use the output in python again. How can I do that.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 11:27:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206295#M41799</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-05-10T11:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206319#M41802</link>
      <description>JMP documentation on OLE Automation points to a .PDF file that documents examples on calling JMP from external programs.  The PDF can be found the install directory structure for your JMP install&lt;BR /&gt;     …...JMP/14/Documentation</description>
      <pubDate>Fri, 10 May 2019 13:25:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206319#M41802</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-10T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206433#M41803</link>
      <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;.&lt;BR /&gt;It's a detailed document on OLE Automation but still I am not able to run my jsl script .&lt;BR /&gt;I have a jsl script which will generate plots and save to a particular location. I want to call this script from python and in back-end, it will run the script in JMP and save the plots. Can tell me command for the same in python.&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 10 May 2019 15:56:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/206433#M41803</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-05-10T15:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/207526#M41832</link>
      <description>&lt;P&gt;As was mentioned, driving JMP using automation. &amp;nbsp;From Python you would need to load one of the Python to COM packages to allow interoperating with JMP's COM automation layer. &amp;nbsp;Second, would be to launch a JMP process from Python, as if you were launching from the command line with the .jsl script as a command line parameter (I believe this should work, but have not tested). &amp;nbsp;And lastly you could write a JSL script that listens on a socket and lets you send commands to JMP across the socket. &amp;nbsp;However you couldn't just send the JSL, since JSL isn't multi-threaded, and it's your script that's maintaining the socket. &amp;nbsp;Your socket handling script would have parse the recieved data and issues the jsl commands from within it's script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Python support is currently only one way. &amp;nbsp;JMP can acess python modules and pass data to the running python script and retrieve that data, because it is accessing data in the JMP launched python interpreter. &amp;nbsp;At present there is no&lt;/P&gt;
&lt;P&gt;import jmp&amp;nbsp;&lt;/P&gt;
&lt;P&gt;functionality which would allow you to call into JMP from a seperately launched Python instance.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 15:00:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/207526#M41832</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2019-05-13T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/207995#M41855</link>
      <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7172"&gt;@Paul_Nelson&lt;/a&gt;.&lt;BR /&gt;I wish if this could be future enhancement to call JMP from python.</description>
      <pubDate>Tue, 14 May 2019 05:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/207995#M41855</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-05-14T05:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/207996#M41856</link>
      <description>Please add this request to the JMP Wish List</description>
      <pubDate>Tue, 14 May 2019 06:01:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/207996#M41856</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-14T06:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/267421#M52069</link>
      <description>&lt;P&gt;+ 1 I would like this to be added as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 15:23:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/267421#M52069</guid>
      <dc:creator>vchivukula</dc:creator>
      <dc:date>2020-05-18T15:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/267539#M52087</link>
      <description>&lt;P&gt;Add and vote here:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/idb-p/jmp-wish-list" target="_blank"&gt;https://community.jmp.com/t5/JMP-Wish-List/idb-p/jmp-wish-list&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:46:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/267539#M52087</guid>
      <dc:creator>nascif_jmp</dc:creator>
      <dc:date>2020-05-18T20:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: .jsl Script call from Python</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/267576#M52098</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;gt;&amp;gt;&amp;gt; import subprocess
&amp;gt;&amp;gt;&amp;gt; subprocess.call(['C:\\space\\SAS\\JMP\\15\\jmp.exe', 'C:\\Users\\v1\\Desktop\\test.jsl'])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The test.jsl file should&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;read a file that your Python program wrote before the call to get data&lt;/LI&gt;&lt;LI&gt;process&lt;/LI&gt;&lt;LI&gt;write a file of answers&lt;/LI&gt;&lt;LI&gt;quit();&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;the Python program can read the file after the call returns. You might want to use CSV files in both directions; JMP and Python can read and write them.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 00:19:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-Script-call-from-Python/m-p/267576#M52098</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-05-19T00:19:55Z</dc:date>
    </item>
  </channel>
</rss>

