<?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 configure Python for JMP 14? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83581#M37617</link>
    <description>&lt;P&gt;I thought that the Python interface wasn't available until JMP 14.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 16:17:08 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2018-11-16T16:17:08Z</dc:date>
    <item>
      <title>How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68150#M34779</link>
      <description>&lt;P&gt;I'm very new to Python so this is hopefully an easy question.&amp;nbsp; I have Python version 3.6 and 3.7 installed.&amp;nbsp; I installed numpy, matplotlib, scipy and pdfkit in both versions.&amp;nbsp; However I get errors in the log window when trying to run examples from the scripting index.&lt;/P&gt;
&lt;P&gt;For the Python Get example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Python Init();
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt; New Data View;
Close( dt1 );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the following errors:&lt;/P&gt;
&lt;PRE&gt;//:*/
Names Default To Here( 1 );
Python Init();
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt; New Data View;
Close( dt1 );
Python Term();
/*:

/**********/
# Read a binary file containing doubles into an ndarray
x1 = _JMPnp.fromfile("C:\\Users\\pmroz\\AppData\\Local\\Temp\\eacac6a7-dd5e-4ceb-dcbd0248455fb787.csv", dtype=_JMPnp.float64, count=-1, sep="")
/**********/
Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
NameError: name '_JMPnp' is not defined

x1 = [1, 2, 3];
x2 = .;
/**********/
# Import a JMP exported .csv file into a Data Frame
dt1 = _JMPpd.read_csv("C:\\Users\\pmroz\\AppData\\Local\\Temp\\8b6475be-aaf0-408b-d1cae4522f253881.csv")
/**********/
Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
NameError: name '_JMPpd' is not defined

Send Expects Scriptable Object in access or evaluation of 'Send' , dt2 &amp;lt;&amp;lt;  /*###*/New Data View/*###*/

In the following script, error marked by /*###*/
Names Default To Here( 1 );
Python Init();
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt;  /*###*/New Data View/*###*/;
Close( dt1 );
Python Term();&lt;/PRE&gt;
&lt;P&gt;What am I missing?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:29:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68150#M34779</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-08-15T19:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68277#M34789</link>
      <description>I have JMP Pro 14.0 and Anaconda 1.8.7 installed and can get that code to run. the _JMPxx, refers to numpy: np, pandas: pd and matplotlib.pyplot: pp. It seems pandas may be a dependency.&lt;BR /&gt;&lt;BR /&gt;I get a warning about "Unable to import the 'matplotlib.pyplot' Python module", the first time I run the first 6 lines of code, but if I rerun them, no error appears in the log.</description>
      <pubDate>Thu, 16 Aug 2018 07:54:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68277#M34789</guid>
      <dc:creator>stephen_pearson</dc:creator>
      <dc:date>2018-08-16T07:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68405#M34820</link>
      <description>&lt;P&gt;First I want to apologize for the trouble you are having with JMP's python support.&amp;nbsp; The original developer of the Python feature retired at the end of JMP 14's development cycle. I am working my way through the code to fix the outstanding issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are issues with JMP's ability to locate Python.&amp;nbsp; If&amp;nbsp;JMP finds it by itself you are good to go, usually if you only have one version of Python on your system you will be fine.&amp;nbsp; When it fails, it is difficult to work around the issue in current JMP releases. Additionally there are differences between Windows and Mac in how well or how poor it is at finding Python. I have uncovered a couple of bugs in the code that is supposed to let you specify where your instance of Python is located.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the Python sys path( {"",...} ) within Python Init() works on JMP for Mac v14.1 or newer, but is broken on JMP 14.0, 14.1 for Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windows JMP does not handle it well if there is more than one version of Python on the system. You need to specify the version of Python to use within the Python Init ( Use Python Version("3.6")); &amp;nbsp; for example to select the 3.6 version.&amp;nbsp; Even with this specified you still may get errors to the log on locating modules that JMP tries to load to provide interoperability.&amp;nbsp; On the Mac JMP 14.0 will have issues if there is more than 1 version of Python3.&amp;nbsp; Mac JMP 14.1 fixes this by using the highest version of Python 3, rather than bailing out if there is more than one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On my Mac where Python 3.6 is installed in /Library/Frameworks/Python.framework, my Python Init() statement is:&lt;/P&gt;
&lt;P&gt;Python Init( Path("/Library/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib"), Use Python Version("3.6") );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Path() statetment works on Mac, but not Windows...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On my Windows 10 desktop I have installed Anaconda with Python 3.6 in my C:\local\anaconda3 directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following script runs for me, even though it kicks out the warnings of not finding the modules. To solve the module loading issue, the first thing I do after the init is to import the sys module and then set sys.path to the path value that would be returned if you do the following within the python interpreter, then load those modules within my script before continuing on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Locating your sys.path from the python interpreter.&lt;/P&gt;
&lt;PRE&gt;C:\local\anaconda3&amp;gt;.\python.exe
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; print (sys.path)
['', 'C:\\local\\anaconda3\\python36.zip', 'C:\\local\\anaconda3\\DLLs', 'C:\\local\\anaconda3\\lib', 'C:\\local\\anaconda3', 'C:\\local\\anaconda3\\lib\\site-packages', 'C:\\local\\anaconda3\\lib\\site-packages\\win32', 'C:\\local\\anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\local\\anaconda3\\lib\\site-packages\\Pythonwin']
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My modified script:&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(Use Python Version("3.6"));
Python Submit("\[
import sys
sys.path=['', 'C:\\local\\anaconda3\\python36.zip', 'C:\\local\\anaconda3\\DLLs', 'C:\\local\\anaconda3\\lib', 'C:\\local\\anaconda3', 'C:\\local\\anaconda3\\lib\\site-packages', 'C:\\local\\anaconda3\\lib\\site-packages\\win32', 'C:\\local\\anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\local\\anaconda3\\lib\\site-packages\\Pythonwin']
import numpy as _JMPnp
import scipy as _JMPsp
import pandas as _JMPpd
import sqlite3 as _JMPsq
]\");
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt; New Data View;
Close( dt1 );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the following output in the log&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
/**********/
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
ModuleNotFoundError: No module named 'numpy'
/**********/
# Import the scipy module for scientific computing support
import scipy as _JMPsp
/**********/
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
ModuleNotFoundError: No module named 'scipy'
/**********/
# Import the pandas module for Series/Data Frame support
import pandas as _JMPpd
/**********/
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
ModuleNotFoundError: No module named 'pandas'
/**********/
# Import the matplotlib module for 2D plotting
import matplotlib as _JMPmpl
/**********/
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
ModuleNotFoundError: No module named 'matplotlib'
/**********/
# Import the matplotlib.pyplot module for plots
import matplotlib.pyplot as _JMPpp
/**********/
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
ModuleNotFoundError: No module named 'matplotlib'
/**********/
# Set the matplotlib.pyplot interactive flag to false
_JMPpp.interactive(False)
/**********/
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;
NameError: name '_JMPpp' is not defined
Unable to import the 'numpy' Python module
Unable to import the 'scipy' Python module
Unable to import the 'pandas' Python module
Unable to import the 'matplotlib' Python module


x1 = [1, 2, 3];
x2 = [1, 2, 3];
0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tested against JMP 14.1 and current development. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again on behalf of JMP Development, I apologize for the raw state of the Python support.&amp;nbsp; Please bear with us as we continue to fix and improve this important feature. Please &lt;A href="mailto:support@jmp.com" target="_self"&gt;report problems&lt;/A&gt; you find and suggestions for new features. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 19:45:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68405#M34820</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2019-05-03T19:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68414#M34826</link>
      <description>&lt;P&gt;Of course, after I post I find a better way, but it involves setting an environment variable.&amp;nbsp; JMP 14 is looking for an environment variable.&amp;nbsp; It is the sys.path that I described in the previous post, however you need to set to be a JSL List of paths.&amp;nbsp; On Windows 10, you need to go to system properties, Advanced System Settings, Environment Variables and create a new Environment Variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Variable Name: &amp;nbsp;&amp;nbsp; Python sys path
Variable Value: &amp;nbsp;&amp;nbsp; {"", "C:\\local\\anaconda3\\python36.zip", "C:\\local\\anaconda3\\DLLs", 
"C:\\local\\anaconda3\\lib", "C:\\local\\anaconda3", "C:\\local\\anaconda3\\lib\\site-packages", 
"C:\\local\\anaconda3\\lib\\site-packages\\win32", 
"C:\\local\\anaconda3\\lib\\site-packages\\win32\\lib", 
"C:\\local\\anaconda3\\lib\\site-packages\\Pythonwin"}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which then allows this script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Python Init(Use Python Version("3.6"));
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt; New Data View;
Close( dt1 );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To give the expected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;x1 = [1, 2, 3];
x2 = [1, 2, 3];
0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PythonSysPath.JPG" style="width: 653px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14607i7248384B8C4F2688/image-size/large?v=v2&amp;amp;px=999" role="button" title="PythonSysPath.JPG" alt="PythonSysPath.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 19:42:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/68414#M34826</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2019-05-03T19:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83580#M37616</link>
      <description>&lt;P&gt;Hi Paul,&lt;BR /&gt;Thanks for your work, unfortunately I just have JMP version 13.0. And I work with Python version 3.7.1 without Anaconda.&lt;BR /&gt;I have all the libraries needed ( numpy, scipy, matplotlib, panda... ).&lt;BR /&gt;I am on windows 10, I did your "variable name" trick (that is well explained by the way) but with this piece of code I'm struggling...&lt;BR /&gt;Have a look at it instead :&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(Use Python Version("3.7.1"));
/*Python Submit("\[
import sys
sys.path=['', 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python37-32\\python37.zip',
'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs',
'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python37-32\\lib',
'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python37-32',
'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages']
import numpy as _JMPnp
import scipy as _JMPsp
import pandas as _JMPpd
import sqlite3 as _JMPsq
]\");
*/
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt; New Data View;
Close( dt1 );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Remark : Python Init is not in blue font.&lt;BR /&gt;&lt;BR /&gt;The log window displays :&lt;BR /&gt;&lt;BR /&gt;Name Unresolved: Python Init in access or evaluation of 'Python Init' , Python Init( Use Python Version( "3.7.1" ) ) /*###*/&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;In the following script, error marked by /*###*/
Names Default To Here( 1 );
Python Init( Use Python Version( "3.7.1" ) ) /*###*/;
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 &amp;lt;&amp;lt; New Data View;
Close( dt1 );
Python Term();&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for reading :)&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 19:43:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83580#M37616</guid>
      <dc:creator>Rob128</dc:creator>
      <dc:date>2019-05-03T19:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83581#M37617</link>
      <description>&lt;P&gt;I thought that the Python interface wasn't available until JMP 14.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:17:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83581#M37617</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-11-16T16:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83582#M37618</link>
      <description>&lt;P&gt;I though it is, because my .py which is just a print of Hello world works with this jsl :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
txt  = runprogram(executable("C:\Users\username\AppData\Local\Programs\Python\Python37-32\python.exe"), 
        options({"C:\Users\username\PycharmProjects\FormationPython\tp1.py"}), 
        readfunction("text"));
//pythconn&amp;lt;&amp;lt;Get Version;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And the log&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;//:*/
dt = current data table();
txt = runprogram(executable("C:\Users\username\AppData\Local\Programs\Python\Python37-32\python.exe"),
options({"C:\Users\username\PycharmProjects\FormationPython\tp1.py"}),
readfunction("text"));
//pythconn&amp;lt;&amp;lt;Get Version;

/*:
"Hello World
"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 19:44:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83582#M37618</guid>
      <dc:creator>Rob128</dc:creator>
      <dc:date>2019-05-03T19:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83583#M37619</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12254"&gt;@Rob128&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Use of a full 2-way connection to Python&amp;nbsp;&lt;EM&gt;via&lt;/EM&gt; a&amp;nbsp;local install of Python which allows JMP to&amp;nbsp;send data to Python, execute Python code from a JSL script,&amp;nbsp;&lt;BR /&gt;return data and results from Python programs, and interactively explore Python results in JMP was introduced in JMP 14.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you have demostrated using JMP 13 (with Run Program) you can control an external program using stdin and stdout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The comments from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7172"&gt;@Paul_Nelson&lt;/a&gt;&amp;nbsp;are referring to the JMP 14 implementation of the full 2-way connection to Python and not&amp;nbsp;&lt;EM&gt;via&lt;/EM&gt; Run Program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:29:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/83583#M37619</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2018-11-16T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/84055#M37746</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just trying to send a datatable to Python. However, all columns end up in one string column with the actual columns separated by \t (see picture). Any idea what goes wrong here? Do you need a special pandas version (or a special matplotlib version, as this also causes an error)?&lt;/P&gt;&lt;P&gt;Regarding the configuration of Python it would be great if one could select a conda environment which should be used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP_Python.PNG" style="width: 787px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14510i792E04B44E9C266D/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP_Python.PNG" alt="JMP_Python.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gerd&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 11:49:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/84055#M37746</guid>
      <dc:creator>GM1</dc:creator>
      <dc:date>2018-11-23T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/84530#M37844</link>
      <description>&lt;P&gt;You need to set your Python Init(), and/or &amp;nbsp;your system environment variables, to point ot the conda installation. &amp;nbsp;See the earlier responses to this community posting. There are examples of both setting the parameters withing the Python Init(), and setting environment variables to point to you python installation.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 16:21:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/84530#M37844</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2018-11-27T16:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/85749#M38284</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I already got it to work (at least on one PC, on the other it there is an error when I want to import numpy). I wanted to suggest that, when you work on this topic, you could set it up in a way which allows to choose easily between different Conda environments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the problem with the transfer of the Data Table to pandas a known issue or am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gerd&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 12:06:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/85749#M38284</guid>
      <dc:creator>GM1</dc:creator>
      <dc:date>2018-12-13T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/222358#M44359</link>
      <description>Hi, I also started to learn Python from CETPA INFOTECH. I have not much knowledge yet but whatever I know and used I share here :&lt;BR /&gt;Follow the link to download the zipped source code available for Unix/Linux.&lt;BR /&gt;Download and extract files.&lt;BR /&gt;Editing the Modules/Setup file if you want to customize some options.&lt;BR /&gt;run ./configure script.&lt;BR /&gt;make.&lt;BR /&gt;make install.&lt;BR /&gt;After reading Paul answer I understand briefly and I agree with his solution.</description>
      <pubDate>Tue, 20 Aug 2019 09:34:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/222358#M44359</guid>
      <dc:creator>ananyagupta</dc:creator>
      <dc:date>2019-08-20T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/285734#M55145</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you actually see anything you wubmit to python in python from a JSL file? I dont have any experience doing this but when I send x1 as the example you have and I go to a python scripting window x1 isn't stored. Do you have some kind of step by step documentation on this?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 14:28:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/285734#M55145</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2020-08-13T14:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/285854#M55172</link>
      <description>&lt;P&gt;There a couple things going on here to make use of JMP and Python.&lt;BR /&gt;&lt;BR /&gt;1. JMP has a scripting language and log for JSL.&lt;BR /&gt;* Seeing values in JSL, you can evaluate them and see them in the log, you can create or put them in data tables, you can put them in databases or even draw graphic output yourself.&lt;BR /&gt;* You can write values to a file.&lt;BR /&gt;2. Python is it’s own environment, a and b above hold true in python as well, but by using python statements and programs. Just like JSL’s show displays a JSL value, python’s print( ) statement will print a python variable.&lt;BR /&gt;In the Python Send() example in the scripting guide&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Python Init();
x = [1, 2, 3];
Python Send( x );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt );
Close( dt );
Python Submit( "print(x)" );
Python Submit( "print(dt)" );
Python Term();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The Python Submit (“print(x)”); // is executing the python code (“print(x)”) and printing the value of x as seen by Python, it is a separate variable from the JSL x. and until the Python Send(x) there is no variable x on the Python side, only the JSL x&lt;BR /&gt;&lt;BR /&gt;So if by example the above code was&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Python Init();
x = [1, 2, 3];
Python Send( x );
x = [3,2,1];
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt );
Close( dt );
Python Submit( "print(x)" );
Python Submit( "print(dt)" );
Python Term();
Show( x );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;You will get from the Python Submit(“print(x)”) the x being 1, 2 ,3&lt;BR /&gt;But from the Show (x);&lt;BR /&gt;You would get the 3, 2, 1 you have to remember you operating across two different scripting environments.&lt;BR /&gt;&lt;BR /&gt;I would suggest you get familiar with exploring the capabilities of JSL without python, there are tons of JSL samples and lots of materials to understand working with JSL. And, exploring programming in Python outside of JMP again there are examples too numerous to count on the internet including tutorial sites. Having good familiarity with each, will give you insight into the strengths and weaknesses of each language. Because you need to decide where you want to do which computations. You can do everything in python, passing only initial data and returning results, or you can do most everything in JSL, calling out to python to do some computation or processing that’s easier to accomplish in Python than JSL, or any mix in between.&lt;BR /&gt;&lt;BR /&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 00:55:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-configure-Python-for-JMP-14/m-p/285854#M55172</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2020-08-14T00:55:43Z</dc:date>
    </item>
  </channel>
</rss>

