<?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: Create an add-in to run a python script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854336#M102600</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Hello, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm using JMP18 and I'm probably doing this wrong.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm creating a new add-on and, from the "Menu Items" tab. Then I select "&lt;/SPAN&gt;&lt;/SPAN&gt;add command", in action window there is only "Run JSL in this file" or "Run this JSL".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have selected my python script but as expected it fails.&lt;/P&gt;
&lt;P&gt;So how to have in action list Run PY in this file? is there another way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhmedMetroEM_0-1742893089670.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74221i03D5FE5419C4AC36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AhmedMetroEM_0-1742893089670.png" alt="AhmedMetroEM_0-1742893089670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 08:59:16 GMT</pubDate>
    <dc:creator>AhmedMetroEM</dc:creator>
    <dc:date>2025-03-25T08:59:16Z</dc:date>
    <item>
      <title>Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/848995#M102477</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2742"&gt;@martindemel&lt;/a&gt; for the advice, so I will repost my questions.&lt;/P&gt;
&lt;P&gt;I would like to create an add-in to run a python script, can you please help ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 13:45:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/848995#M102477</guid>
      <dc:creator>AhmedMetroEM</dc:creator>
      <dc:date>2025-03-21T13:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/849005#M102478</link>
      <description>&lt;P&gt;What issues are you having? If you have JMP18 it won't really differ that much from running JSL (outside of the possible python package management).&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 13:49:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/849005#M102478</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-21T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/849090#M102492</link>
      <description>&lt;P&gt;I agree with Jarmo, it might be that you first need to assure the package you are using is known to JMP.&amp;nbsp; Would be good to understand where you have issues. Under view-&amp;gt;log you may get warnings or error messages which can help to identify the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 15:30:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/849090#M102492</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2025-03-21T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854336#M102600</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Hello, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm using JMP18 and I'm probably doing this wrong.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm creating a new add-on and, from the "Menu Items" tab. Then I select "&lt;/SPAN&gt;&lt;/SPAN&gt;add command", in action window there is only "Run JSL in this file" or "Run this JSL".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have selected my python script but as expected it fails.&lt;/P&gt;
&lt;P&gt;So how to have in action list Run PY in this file? is there another way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhmedMetroEM_0-1742893089670.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74221i03D5FE5419C4AC36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AhmedMetroEM_0-1742893089670.png" alt="AhmedMetroEM_0-1742893089670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 08:59:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854336#M102600</guid>
      <dc:creator>AhmedMetroEM</dc:creator>
      <dc:date>2025-03-25T08:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854341#M102604</link>
      <description>&lt;P&gt;By using Run JSL, I logically have syntax issues because it is a python scrip.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhmedMetroEM_1-1742893415760.png" style="width: 491px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74222iBB687433D521E239/image-dimensions/491x73?v=v2" width="491" height="73" role="button" title="AhmedMetroEM_1-1742893415760.png" alt="AhmedMetroEM_1-1742893415760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 09:05:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854341#M102604</guid>
      <dc:creator>AhmedMetroEM</dc:creator>
      <dc:date>2025-03-25T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854342#M102605</link>
      <description>&lt;P&gt;Create JSL file which is able to run your Python code and test that it is working. Then use that JSL file in the add-in while making sure all files are in correct locations for it to run properly.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 09:51:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854342#M102605</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-25T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854358#M102608</link>
      <description>&lt;P&gt;And here you can watch a session on python scripting within JMP with several ways from last years scripters club meeting:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Scripters-Club-Recording-Running-Python-Code-within-JSL/m-p/767254" target="_blank" rel="noopener"&gt;Running-Python-Code-within-JSL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition Jarmo presented a poster at Discovery Summit Europe in Berlin this March:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Abstracts/JMPyFacade-Bridging-JMP-and-Python-for-Seamless-Engaging/ev-p/822866" target="_blank" rel="noopener"&gt;JMPyFacade-Bridging-JMP-and-Python-for-Seamless-Engaging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 11:02:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854358#M102608</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2025-03-25T11:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create an add-in to run a python script</title>
      <link>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854748#M102633</link>
      <description>&lt;P&gt;We are still working at improving the Python integration across JMP. &amp;nbsp;JMP's integration knows the directory that the JSL script is running from. &amp;nbsp;At present the code needs to be keyed off of a JSL script which can call the Python. &amp;nbsp;You can create JSL User Defined functions that are implemented in Python &lt;A href="https://community.jmp.com/t5/JMPer-Cable/Creating-JSL-functions-implemented-in-Python/" target="_blank"&gt;https://community.jmp.com/t5/JMPer-Cable/Creating-JSL-functions-implemented-in-Python/&lt;/A&gt;, Python Submit File("your_code.py"); and if the .py file is in the same directory as the JSL script, something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Python Submit("\[
import your_code
results = your_code.function( )
]\");
Python Get( "results");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Should also work&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 20:39:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-an-add-in-to-run-a-python-script/m-p/854748#M102633</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2025-03-25T20:39:29Z</dc:date>
    </item>
  </channel>
</rss>

