<?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 edit folder path in jsk using python in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-edit-folder-path-in-jsk-using-python/m-p/809836#M99129</link>
    <description>&lt;P&gt;Some design thoughts:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do you need to use Python to get the updated server paths, or can you do that from JSL using the http request capabilities in JSL?
&lt;UL&gt;
&lt;LI&gt;If you have to use Python, I would suggest creating a JSL user defined function, and use JSL Python Execute() to implement a JSL function whose functionality is written in Python. ( in the Python Execute ). &amp;nbsp;Python Execute() allows you pass in a JSL list of input variables and pass in a list of output variables for the results. &amp;nbsp;Either just explicitly pass in all the variables or use Associated Array in JSL which becomes a Python Dictionary across the Python Send() / Get APIs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regardless I would be making your JSL script the controlling script with variables for the folder paths. &amp;nbsp;Getting the information from the server either via JSL or Python into some data structure, (like list or associative array ), and iterating on the returned data to fill in the path variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scripting index under the Help menu contains documentation and runnable sample code for the scripting features available within JMP. &amp;nbsp;In my opinion, it should be everybody's primary go-to source for JMP scripting information. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP 18 makes things dramatically better for running Python scripts within JMP and interoperating with JMP and JSL structures.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 21:01:13 GMT</pubDate>
    <dc:creator>Paul_Nelson</dc:creator>
    <dc:date>2024-11-06T21:01:13Z</dc:date>
    <item>
      <title>How to edit folder path in jsk using python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-edit-folder-path-in-jsk-using-python/m-p/809658#M99071</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using JMP 17 Pro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have jsl with folder names which needs to be changed dynamically. I want to use python to make this change, which receives new folder paths info from server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to open jsl using python and printing python variable in jsl using below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/td-p/379251" target="_blank"&gt;https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/td-p/379251&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can I use python to edit a folder path in JSL?? This will allow to both make changes to jsl folder path and run jsl directly using python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 09:40:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-edit-folder-path-in-jsk-using-python/m-p/809658#M99071</guid>
      <dc:creator>vharibal</dc:creator>
      <dc:date>2024-11-05T09:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit folder path in jsk using python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-edit-folder-path-in-jsk-using-python/m-p/809836#M99129</link>
      <description>&lt;P&gt;Some design thoughts:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do you need to use Python to get the updated server paths, or can you do that from JSL using the http request capabilities in JSL?
&lt;UL&gt;
&lt;LI&gt;If you have to use Python, I would suggest creating a JSL user defined function, and use JSL Python Execute() to implement a JSL function whose functionality is written in Python. ( in the Python Execute ). &amp;nbsp;Python Execute() allows you pass in a JSL list of input variables and pass in a list of output variables for the results. &amp;nbsp;Either just explicitly pass in all the variables or use Associated Array in JSL which becomes a Python Dictionary across the Python Send() / Get APIs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regardless I would be making your JSL script the controlling script with variables for the folder paths. &amp;nbsp;Getting the information from the server either via JSL or Python into some data structure, (like list or associative array ), and iterating on the returned data to fill in the path variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scripting index under the Help menu contains documentation and runnable sample code for the scripting features available within JMP. &amp;nbsp;In my opinion, it should be everybody's primary go-to source for JMP scripting information. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP 18 makes things dramatically better for running Python scripts within JMP and interoperating with JMP and JSL structures.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 21:01:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-edit-folder-path-in-jsk-using-python/m-p/809836#M99129</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2024-11-06T21:01:13Z</dc:date>
    </item>
  </channel>
</rss>

