cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lala
Level VIII

Is there a list of python library names in JMP18.0.0?

I know it is possible to see a list of installed python libraries for JMP

jmputils.jpip('list')


But I would like to know the list of uninstalled python libraries that JMP software already includes
For example I want JMP python to copy the result to the paste board and whether it wants to be installed 

 

it can't

jmputils.jpip('install','pyperclip')

 

Thanks Experts!

13 REPLIES 13
jthi
Super User

Re: Is there a list of python library names in JMP18.0.0?

There are also some example scripts you can find from JMP installation folder

-Jarmo
lala
Level VIII

Re: Is there a list of python library names in JMP18.0.0?

Thanks!

I have seen these, but my ability to read English is limited, and have only tried the following similar methods, but none of them succeeded.

 

So I had to turn to the experts again.Thank you very much!

Python Submit("\[
import pandas as pd
import numpy as np
import sys
 
# adding folder with python code to the system path, then import ZIG0
sys.path.insert(1, mypath)
from ZIG0 import zigmain
 
zigmain(filepath)
 
]\");


 

I just need to call python through JSL. 

Re: Is there a list of python library names in JMP18.0.0?

Adding a path to sys.path should only be necessary if the Python code lies in a different directory than the executing JSL file.  And if you used either Python Install Packages() or jmputils.jpip() to install ZIG0, then that package should be within the JMP specific site-packages/ folder.  During script execution, (JSL or Python) JMP changes its current working directory to the directory of the script file.  So other JSL or .py files should be able to found without any issues if they are in the same location.  I'm not familiar with ZIG0, if ZIG0 is just ZIG0.py, make sure it is in the same directory as the .JSL script..

lala
Level VIII

Re: Is there a list of python library names in JMP18.0.0?

I have been consulting ChatGPT, some libraries are still not available in JMP.

 

Ask the experts what went wrong?

Thanks!

2024-09-09_22-34-16.png