more on UsePythonVersion("3.6"), just in case it's useful....
this line does not work when JMP is first opened...
Python Init(Use Python Version( "3.6" ), InitTrace( "True" ));
Here's what the log shows from the InitTrace()...
Processing OpPythonInit operator
Starting JMP to Python interface initialization
Query HKEY_CURRENT_USER
Reading hKey=0XFFFFFFFF80000001 kname=SOFTWARE\Python\PythonCore bits=64
Found hKey=0xFFFFFFFF80000001 kname=SOFTWARE\Python\PythonCore bits=64
# of subkeys=1
Retrieving subkey #=0
subkey=3.6 length=3
Opening subkey=3.6
Opening key=3.6 subkey=InstallPath
Query value key=3.6 subkey=InstallPath
Query value key=3.6 subkey=InstallPath value=C:\Users\12470\AppData\Local\Continuum\anaconda3
Opening key=3.6 subkey=PythonPath
Query value key=3.6 subkey=PythonPath
Building path to version=3.6 of the Python DLL
An installation of Python cannot be found on this system. JMP Python support requires Python version 3.0 or higher. in access or evaluation of 'Python Init' , Python Init/*###*/(Use Python Version( "3.6" ), InitTrace( "True" ))
This happens repeatedly if I run the line over and over but if I do this version without UsePythonVersion...
Python Init(InitTrace( "True" ));
Not only does it work, but after that the original version with UsePythonVersion("3.6") argument starts working too, while this JMP session is open. Here's what the log shows from that init trace in that case. path showing there look same and correct to me in both cases....
Query HKEY_CURRENT_USER
Reading hKey=0XFFFFFFFF80000001 kname=SOFTWARE\Python\PythonCore bits=64
Found hKey=0xFFFFFFFF80000001 kname=SOFTWARE\Python\PythonCore bits=64
# of subkeys=1
Retrieving subkey #=0
subkey=3.6 length=3
Opening subkey=3.6
Opening key=3.6 subkey=InstallPath
Query value key=3.6 subkey=InstallPath
Query value key=3.6 subkey=InstallPath value=C:\Users\12470\AppData\Local\Continuum\anaconda3
Opening key=3.6 subkey=PythonPath
Query value key=3.6 subkey=PythonPath
Building path to version=3.6 of the Python DLL
Python DLL path=C:\Users\12470\AppData\Local\Continuum\anaconda3\python36.dll
sys.path entry.jstr:C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\Lib
sys.path entry.jstr:C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\DLLs
BEFORE:
/**********/
print(_JMPsys.path)
/**********/
['C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\python36.zip', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\Lib', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\DLLs', 'C:\\Program Files\\SAS\\JMP\\14', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\Babel-2.5.0-py3.6.egg', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\win32', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\Pythonwin']
AFTER:
/**********/
print(_JMPsys.path)
/**********/
['', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\python36.zip', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\Lib', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\DLLs', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\win32', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\Users\\12470\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\Pythonwin']