<?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 How to return a list of strings from a python script to JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-return-a-list-of-strings-from-a-python-script-to-JSL/m-p/958226#M110146</link>
    <description>&lt;P&gt;Hi I've got a small python script that has some user entry fields and uses to create some SQL scripts, I want these to then be run through jmp.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the JSL file is:&lt;/P&gt;
&lt;P&gt;Python Submit File( "python.py" );&lt;BR /&gt;query_list = Python Get( list&amp;nbsp;);&lt;BR /&gt;show(query_list)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The python script is running as intended as if I print (list) in python it'll show the list of queries in the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also tried&amp;nbsp;turning the list (in python) to a dataframe and a jmp.datatable&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2026 08:09:19 GMT</pubDate>
    <dc:creator>LambdaHedgehog4</dc:creator>
    <dc:date>2026-07-13T08:09:19Z</dc:date>
    <item>
      <title>How to return a list of strings from a python script to JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-return-a-list-of-strings-from-a-python-script-to-JSL/m-p/958226#M110146</link>
      <description>&lt;P&gt;Hi I've got a small python script that has some user entry fields and uses to create some SQL scripts, I want these to then be run through jmp.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the JSL file is:&lt;/P&gt;
&lt;P&gt;Python Submit File( "python.py" );&lt;BR /&gt;query_list = Python Get( list&amp;nbsp;);&lt;BR /&gt;show(query_list)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The python script is running as intended as if I print (list) in python it'll show the list of queries in the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also tried&amp;nbsp;turning the list (in python) to a dataframe and a jmp.datatable&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 08:09:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-return-a-list-of-strings-from-a-python-script-to-JSL/m-p/958226#M110146</guid>
      <dc:creator>LambdaHedgehog4</dc:creator>
      <dc:date>2026-07-13T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a list of strings from a python script to JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-return-a-list-of-strings-from-a-python-script-to-JSL/m-p/958325#M110149</link>
      <description>&lt;P&gt;This is handled automatically, Python Get( variable_name ) retrieves the variable from the Python environment. &amp;nbsp;A Python list is returned as a JSL List. &amp;nbsp;'list' is a Python keyword.&lt;/P&gt;
&lt;P&gt;python.py&lt;/P&gt;
&lt;P&gt;import &lt;SPAN&gt;jmp&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;my_list&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;'query1'&lt;SPAN&gt;,&lt;/SPAN&gt;'query2'&lt;SPAN&gt;,&lt;/SPAN&gt;'query3'&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

Python Submit File("python.py");
query_list = Python Get(my_list);
show(query_list);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Results:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;query_list = Python Get(my_list);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;show(query_list);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;/*:&lt;/P&gt;
&lt;P&gt;query_list = {"query1", "query2", "query3"};&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 15:31:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-return-a-list-of-strings-from-a-python-script-to-JSL/m-p/958325#M110149</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2026-07-13T15:31:17Z</dc:date>
    </item>
  </channel>
</rss>

