<?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 Integration Not Sending Data Table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/300215#M55923</link>
    <description>&lt;P&gt;What version of JMP are you using?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 15:39:56 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2020-09-04T15:39:56Z</dc:date>
    <item>
      <title>Python Integration Not Sending Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/299743#M55915</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When running a JSL script and trying to send the variables into Python to run a script in the R console there, I get the following errors in the log:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/**********/
# Import the numpy module for array and matrix support
import numpy as _JMPnp
/**********/
/**********/
# Import the scipy module for scientific computing support
import scipy as _JMPsp
/**********/
/**********/
# Import the pandas module for Series/Data Frame support
import pandas as _JMPpd
/**********/
Unable to import the 'numpy' Python module
Unable to import the 'scipy' Python module
Unable to import the 'pandas' Python module

x = 1;
0&lt;/PRE&gt;
&lt;P&gt;This means that Python cannot read the open data from the JSL script. How do I get my data to open within Python. The JSL script is attached.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've even tried to change my system path to make sure it is running through anaconda:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Python Submit("\[
import sys
sys.path=['', 'C:\\Users\\mikha\\anaconda3\\python38.zip', 'C:\\Users\\mikha\\anaconda3\\DLLs', 'C:\\Users\\mikha\\anaconda3\\lib', 'C:\\Users\\mikha\\anaconda3', 'C:\\Users\\mikha\\AppData\\Roaming\\Python\\Python38\\site-packages', 'C:\\Users\\mikha\\anaconda3\\lib\\site-packages', 'C:\\Users\\mikha\\anaconda3\\lib\\site-packages\\win32', 'C:\\Users\\mikha\\anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\Users\\mikha\\anaconda3\\lib\\site-packages\\Pythonwin']
import numpy as _JMPnp
import scipy as _JMPsp
import pandas as _JMPpd
]\");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should be really simple function in reality ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:36:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/299743#M55915</guid>
      <dc:creator>MikeDereviankin</dc:creator>
      <dc:date>2023-06-09T23:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python Integration Not Sending Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/300215#M55923</link>
      <description>&lt;P&gt;What version of JMP are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 15:39:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/300215#M55923</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-09-04T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python Integration Not Sending Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/300255#M55927</link>
      <description>&lt;P&gt;JMP 15.1.0&lt;BR /&gt;&lt;BR /&gt;I really don't think the version number is the issue. JMP is not initiating numpy, pandas or scipy in python so there is no way the global variables can be exported.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 18:15:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/300255#M55927</guid>
      <dc:creator>MikeDereviankin</dc:creator>
      <dc:date>2020-09-04T18:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python Integration Not Sending Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/449244#M69600</link>
      <description>&lt;P&gt;If you are using Python.org's Python, you also need to install numpy, scipy, and pandas Python packages. These are not installed with JMP as they are packages that need to reside in your Python environment. You may not need scipy, it's not used internally, but you do need numpy and pandas. &amp;nbsp;The code to pass data tables back and forth between Python and JSL utilize a pandas data frame. Pandas depends on numpy so both are required. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using the pip ( or pip3 ) found in the directory(s) of the python you want to use with JMP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pip install numpy scipy pandas&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 18:35:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/449244#M69600</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2022-01-05T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python Integration Not Sending Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/481465#M72578</link>
      <description>&lt;P&gt;For Anaconda, and any virtual environment you&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;must&lt;/EM&gt;&lt;/STRONG&gt; utilize the Python Sys Path(), and Path() optional arguments to the Python Init(). (To have any reasonable chance of success). &amp;nbsp;Path is the path to the specific python3x.dll for your environment. The sys path argument takes the sys.path as a JSL list. &amp;nbsp;This should be the sys.path that you would get from the command line Python environment. &amp;nbsp;JMP 16.2 adds additional support for Anaconda on Windows by adding additional Anaconda specific library paths to JMP's LoadLibrary path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other, less recommended, way to get base Anaconda environment to work is to install Anaconda on the PATH for ALL users. &amp;nbsp;Two things that the Anaconda installer recommends not doing. &amp;nbsp;Then the modules needed would need to be installed in base, not some other virtual environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 15:09:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Python-Integration-Not-Sending-Data-Table/m-p/481465#M72578</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2022-04-22T15:09:11Z</dc:date>
    </item>
  </channel>
</rss>

