<?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: Python send() command is not working in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/449278#M69604</link>
    <description>&lt;P&gt;So JMP 15.2 shouldn't be used for python processing?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 19:59:41 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2022-01-05T19:59:41Z</dc:date>
    <item>
      <title>Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383209#M63382</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to test that my computer is able to run JSL scripts that use Python, I found two pieces of codes&amp;nbsp;in the JMP help and I ran them using JMP 15. The following piece of code is working fine, It includes the python submit().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Python Init();
Python Submit( "\[
basket = ['apple', 'orange', 'pear']
print(basket)
print(basket[0])
print(basket[1])
]\" );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the following piece of code did not work. The code was supposed to print the value of the variables, x, s and M. However, it printed the statement (print (x)) , (print(s)) and (print(M)) instead. it looks like the python send() command is not working. I hope you can help figure it out. This is the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Python Init();
X = 1;
Python Send( X );
S = "Report Title";
Python Send( S );
M = [1 2 3, 4 5 6, 7 8 9];
Python Send( M );
Python Submit( "\[
print(X)
print(S)
print(M)

]\" );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this is the output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1.0
Report Title

/**********/

print(X)
print(S)
print(M)

/**********/

0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:46:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383209#M63382</guid>
      <dc:creator>IceBreaker</dc:creator>
      <dc:date>2023-06-09T19:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383226#M63383</link>
      <description>&lt;P&gt;Running Windows 10, with JMP 16, I get the following results when running your sample code&lt;/P&gt;
&lt;PRE&gt;1.0
Report Title
[[1. 2. 3.]
 [4. 5. 6.]
 [7. 8. 9.]]

0&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 May 2021 14:55:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383226#M63383</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-07T14:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383229#M63384</link>
      <description>&lt;P&gt;Do you have all required libraries installed &lt;A href="https://www.jmp.com/support/help/en/16.0/index.shtml#page/jmp/install-python.shtml" target="_self"&gt;JMP Help - Install Python&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which version of JMP15 are you using? I think JMP15.2 or something broke Python Send() but it was fixed in 15.2.1.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/notes/41/addl/fusion_41004_20_releasenotes_1521.pdf" target="_self"&gt;Release Notes for JMP 15.2.1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using &lt;/SPAN&gt;&lt;SPAN class=""&gt;Python Send()&lt;/SPAN&gt;&lt;SPAN class=""&gt; to send data tables to JMP no longer&lt;/SPAN&gt;&lt;SPAN class=""&gt; generates an unsupported data type &lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 14:59:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383229#M63384</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-05-07T14:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383240#M63385</link>
      <description>&lt;P&gt;No, I have not installed the libraries in the JMP help. I am using JMP 15.1.0. I will install them and try it again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 15:10:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/383240#M63385</guid>
      <dc:creator>IceBreaker</dc:creator>
      <dc:date>2021-05-07T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/449243#M69599</link>
      <description>&lt;P&gt;You need to have numpy installed, as the get/send() code for arrays depends on numpy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was a single version of JMP that slipped through that broke the send(). Code was added to support passing of bool and None, but a single missing '}' &amp;nbsp;broke a chain of if then else logic. &amp;nbsp;All the command processing for send() below that point broke. If that's the case with your version, updating to a newer version is the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 18:27:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/449243#M69599</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2022-01-05T18:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/449278#M69604</link>
      <description>&lt;P&gt;So JMP 15.2 shouldn't be used for python processing?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 19:59:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/449278#M69604</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2022-01-05T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/481464#M72577</link>
      <description>&lt;P&gt;If you need full functionality of the send() function then that's correct, avoid 15.2. &amp;nbsp;Use either 15.1 or 15.2.1 and newer.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 14:58:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/481464#M72577</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2022-04-22T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python send() command is not working</title>
      <link>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/582403#M78893</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems that I have the same problem - Submit with Python (3.11) in generall works (including pandas &amp;amp; numpy) but Send is not passing an object. I'm using JMP Pro 17.0.&lt;/P&gt;&lt;P&gt;When using JMP Pro 16.2 its working nicely. Do you know how to fix this issue with JMP 17?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 09:44:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-send-command-is-not-working/m-p/582403#M78893</guid>
      <dc:creator>moeckelr</dc:creator>
      <dc:date>2022-12-16T09:44:11Z</dc:date>
    </item>
  </channel>
</rss>

