<?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 write .jmp files with JMP python in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952208#M109940</link>
    <description>&lt;P&gt;CSV for large files is painful. &amp;nbsp;My suggestion is to write out the files in parquet format, then import pyarrow in JMP, load the parquet file, it can be converted to a pandas dataframe with almost no time cost, JMP can directly read pandas columns in building a data table and has a jmp.from_dataframe( df ) capability. &amp;nbsp;If you are using pandas 3.0 or greater they have started some deprecation warnings, but those have been take care of in development versions of JMP by directly using the pyarrow PyCapsule interface. &amp;nbsp;CSV also has the issue of not being an exact format. &amp;nbsp;Check your decimal points. Conversion from string to double can have small differences especially since it's from numeric to CSV and then back again.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2026 20:35:46 GMT</pubDate>
    <dc:creator>Paul_Nelson</dc:creator>
    <dc:date>2026-06-03T20:35:46Z</dc:date>
    <item>
      <title>How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/951967#M109924</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; &amp;nbsp;I am using JMP19.1.1&lt;/P&gt;
&lt;P&gt;I see examples of how to use JMP or JSL to open files, add jsl scripts for plotting and then run them.&lt;/P&gt;
&lt;P&gt;Are there examples to use JMP Python to open csv files and write .jmp files with charts in them?&amp;nbsp; &amp;nbsp;What do people do?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 17:31:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/951967#M109924</guid>
      <dc:creator>AdrianBWeissman</dc:creator>
      <dc:date>2026-06-02T17:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/951986#M109925</link>
      <description>&lt;P&gt;Saving can be done with &lt;STRONG&gt;save&lt;/STRONG&gt; method of &lt;STRONG&gt;DataTable&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1780425137594.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/105579i8DEEFD725F1A34F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1780425137594.png" alt="jthi_0-1780425137594.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To add table scripts you can use either &lt;STRONG&gt;run_jsl&lt;/STRONG&gt; or &lt;STRONG&gt;scripts&lt;/STRONG&gt; with jmp&lt;STRONG&gt;.Expression&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1780425229292.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/105580iEB7575F8FE802392/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1780425229292.png" alt="jthi_1-1780425229292.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 18:34:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/951986#M109925</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-06-02T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952001#M109926</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for responding.&amp;nbsp; I am talking about not using the jmp libraries.&amp;nbsp; &amp;nbsp;I am talking about using python code that is processing data, that spits out csv files.&amp;nbsp; &amp;nbsp;I want to switch to writing .jmp files.&amp;nbsp; &amp;nbsp;Is there a way to do this?&amp;nbsp; &amp;nbsp;i.e.&amp;nbsp; Pandas dataframe directly to .jmp ?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 19:50:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952001#M109926</guid>
      <dc:creator>AdrianBWeissman</dc:creator>
      <dc:date>2026-06-02T19:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952026#M109929</link>
      <description>&lt;P&gt;To my knowledge no. You would need to run the Python inside JMP.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 04:26:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952026#M109929</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-06-03T04:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952147#M109933</link>
      <description>&lt;P&gt;Here is what I try to run:&lt;/P&gt;
&lt;P&gt;from pathlib import Path&lt;BR /&gt;import jmp&lt;/P&gt;
&lt;P&gt;csv_path = Path(r"C:\Work\debug\jmp_debug\CT_Pro_PRO0CV2_pass_fail_05302026.csv")&lt;BR /&gt;out_path = Path(r"C:\Work\debug\jmp_debug\CT_Pro_PRO0CV2_pass_fail_05302026.jmp")&lt;/P&gt;
&lt;P&gt;print("Opening:", csv_path)&lt;/P&gt;
&lt;P&gt;dt = jmp.open(str(csv_path))&lt;/P&gt;
&lt;P&gt;print("Saving:", out_path)&lt;/P&gt;
&lt;P&gt;dt.save(str(out_path))&lt;/P&gt;
&lt;P&gt;print("Done")&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run it this way:&amp;nbsp; &amp;amp; "C:\Program Files\JMP\JMP\19\jmp.exe" -R "C:\Work\debug\jmp_debug\jmp_csv_to_jmp_simple.py" in powershell.&amp;nbsp; &amp;nbsp;The problem is this pops up three windows.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Do you know if there is anyway to run JMP in a headless fashion?&amp;nbsp; &amp;nbsp; I.e.&amp;nbsp; Run it and not have a collage of windows pop open ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 14:26:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952147#M109933</guid>
      <dc:creator>AdrianBWeissman</dc:creator>
      <dc:date>2026-06-03T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952148#M109934</link>
      <description>&lt;P&gt;The main reason to go directly to .jmp is these files are 4-10 GB in csv format.&amp;nbsp; So this is painful.&amp;nbsp; &amp;nbsp;Ideally, we could pass a pandas dataframe to the jmp table and write it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 14:31:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952148#M109934</guid>
      <dc:creator>AdrianBWeissman</dc:creator>
      <dc:date>2026-06-03T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952149#M109935</link>
      <description>&lt;P&gt;This is really painful.&amp;nbsp; It appears there is no real way to make this run in a headless fashion.&amp;nbsp; This is really surprising.&amp;nbsp; &amp;nbsp;I must me wrong and not have the right documenation.&amp;nbsp; If someone has information on how to run jmp in a headless fashion, this would be really helpful.&amp;nbsp; I.e.&amp;nbsp; I can run this in a script and not get three to four new windows popping open.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 14:44:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952149#M109935</guid>
      <dc:creator>AdrianBWeissman</dc:creator>
      <dc:date>2026-06-03T14:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952159#M109936</link>
      <description>&lt;P&gt;In JMP 19.1.3, and plain vanilla Python 3.13.3 (Non JMP), I got the following improvement.&amp;nbsp; This only pops up the .jmp table being created.&amp;nbsp; So this is close to a solution.&amp;nbsp; &amp;nbsp;I would really still like to know if there is headless information ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from pathlib import Path&lt;BR /&gt;import time&lt;/P&gt;
&lt;P&gt;import win32com.client&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;def jsl_quote(path_or_text) -&amp;gt; str:&lt;BR /&gt;text = str(path_or_text)&lt;BR /&gt;text = text.replace("\\", "\\\\").replace('"', '\\"')&lt;BR /&gt;return f'"{text}"'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;csv_path = Path(r"C:\Work\debug\jmp_debug\05302026.csv")&lt;BR /&gt;out_path = Path(r"C:\Work\debug\jmp_debug\05302026.jmp")&lt;/P&gt;
&lt;P&gt;jmp = win32com.client.Dispatch("JMP.Application")&lt;/P&gt;
&lt;P&gt;# Try False first. If nothing works, set True while debugging.&lt;BR /&gt;jmp.Visible = False&lt;/P&gt;
&lt;P&gt;jsl = f"""&lt;BR /&gt;Names Default To Here( 1 );&lt;/P&gt;
&lt;P&gt;dt = Open({jsl_quote(csv_path)},Invisible);&lt;/P&gt;
&lt;P&gt;dt &amp;lt;&amp;lt; Save As( {jsl_quote(out_path)} );&lt;/P&gt;
&lt;P&gt;Close( dt, No Save );&lt;BR /&gt;"""&lt;/P&gt;
&lt;P&gt;print("Running JSL...")&lt;BR /&gt;jmp.RunCommand(jsl)&lt;/P&gt;
&lt;P&gt;# Give JMP a moment if RunCommand returns before save completes.&lt;BR /&gt;time.sleep(2)&lt;/P&gt;
&lt;P&gt;print("Saved?", out_path.exists(), out_path)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 15:17:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952159#M109936</guid>
      <dc:creator>AdrianBWeissman</dc:creator>
      <dc:date>2026-06-03T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to write .jmp files with JMP python</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952208#M109940</link>
      <description>&lt;P&gt;CSV for large files is painful. &amp;nbsp;My suggestion is to write out the files in parquet format, then import pyarrow in JMP, load the parquet file, it can be converted to a pandas dataframe with almost no time cost, JMP can directly read pandas columns in building a data table and has a jmp.from_dataframe( df ) capability. &amp;nbsp;If you are using pandas 3.0 or greater they have started some deprecation warnings, but those have been take care of in development versions of JMP by directly using the pyarrow PyCapsule interface. &amp;nbsp;CSV also has the issue of not being an exact format. &amp;nbsp;Check your decimal points. Conversion from string to double can have small differences especially since it's from numeric to CSV and then back again.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 20:35:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-jmp-files-with-JMP-python/m-p/952208#M109940</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2026-06-03T20:35:46Z</dc:date>
    </item>
  </channel>
</rss>

