Integrate Python into JMP: Step-by-Step Guide

How-to basics · Updated November 23, 2026

Integrating Python into JMP lets you run Python scripts, use Python libraries like pandas and scikit-learn, and pass data between JMP and Python—all from within JMP’s interface. This guide walks you through the setup and usage, from installing Python to running your first script.

What You’ll Need

  • A 64-bit version of JMP (14 or later for basic integration; JMP 15+ recommended for full features).
  • Python 3.x installed on your system (JMP 16+ supports Python 3.6+; JMP 17+ supports up to 3.11).
  • Administrator rights on your computer (to install Python and JMP integration packages).
  • Optional: A Python package manager like pip (comes with Python).

Step-by-Step

  1. Install Python – If you don’t have Python, download it from python.org. During installation, check Add Python to PATH. Verify by opening a terminal (Command Prompt) and typing python --version. You should see a version number.
  2. Install the JMP-Python integration package – JMP uses a package called jmp (the Python package) to communicate with JMP. Open a terminal and run: pip install jmp. This installs the necessary bridge.
  3. Launch JMP and open the Python integration – In JMP, go to File > Preferences (or JMP > Preferences on Mac). Under Python, set the path to your Python executable if it’s not automatically detected. On Windows, it’s often C:\Python3x\python.exe. On Mac, it’s usually /usr/local/bin/python3.
  4. Test the connection – In JMP, go to Help > Sample Data and open a data table like Big Class.jmp. Then go to File > New > Script (or press Ctrl+J on Windows, Cmd+J on Mac) to open a script window. Type: Python Init(); and run it (Ctrl+R on Windows, Cmd+R on Mac). If you see a message like “Python is ready”, the connection works.
  5. Run a simple Python script – In the same script window, type:
    Python Submit("print('Hello from Python')");

    Run it. You should see the output in the JMP log (View > Log).

  6. Pass data from JMP to Python – To send a JMP data table to Python, use the Python Send function. For example:
    dt = Current Data Table();
    Python Send(dt);
    Python Submit("import pandas as pd\npd.DataFrame(dt)");

    This sends the current table to Python as a pandas DataFrame.

  7. Get data back from Python to JMP – Use Python Get to retrieve a Python object. For example:
    Python Submit("result = [1,2,3,4,5]");
    res = Python Get("result");
    Show(res);

    This creates a JMP list from the Python list.

  8. Use Python in JMP formulas – You can call Python functions directly in column formulas using Python() function. For example, create a new column and set its formula to:
    Python("len(str(x))", {x: :Name})

    This calculates the length of each name in the column.

  9. Save your Python integration as a JSL script – You can save the script as a .jsl file for reuse. Go to File > Save As and choose .jsl format.

Common Mistakes

  • Python not on PATH – JMP may not find Python if it wasn’t added to PATH during installation. Reinstall Python and check the box, or manually set the path in JMP preferences.
  • Using 32-bit Python – JMP requires 64-bit Python. If you have 32-bit, uninstall and install 64-bit.
  • Forgetting to run Python Init() – You must initialize Python in each new JMP session before using Python Submit or Python Send.
  • Incorrect Python version – JMP 16 only supports Python 3.6–3.9; JMP 17 supports up to 3.11. Check your JMP version and install a compatible Python.
  • Not using the jmp package – The jmp Python package is essential for data transfer. Without it, Python Submit may fail.

Tips

  • Use Python in JMP’s Formula Editor – You can embed Python code directly in formulas for complex transformations, but keep it simple to avoid slowdowns.
  • Manage Python environments – If you use virtual environments, set the Python path in JMP preferences to the specific environment’s executable.
  • Debug with print statements – Use print() in Python and check JMP’s log to see outputs and errors.
  • Leverage pandas for data manipulation – Once you have a DataFrame, you can use pandas’ powerful functions for cleaning and analysis, then send results back to JMP.
  • Use the Python Package Installer – In JMP, you can go to File > Python Package Installer to install Python packages without leaving JMP.

Troubleshooting

  • “Python is not initialized” error – Run Python Init() first. If it fails, check that your Python path is correct in Preferences.
  • “ModuleNotFoundError: No module named ‘jmp'” – Install the jmp package via pip: pip install jmp. Ensure you’re using the same Python interpreter that JMP is configured to use.
  • Data types not matching – When sending JMP data to Python, missing values become None in Python, and Python None becomes missing in JMP. Check for unexpected None values.
  • Python script runs but no output – Make sure you’re checking the JMP Log (View > Log). Output from print() appears there, not in a popup.
  • JMP crashes on Python Submit – This can happen with incompatible Python versions or memory issues. Try restarting JMP and Python, or run a simpler script to isolate the problem.
  • Cannot find Python in Preferences – On Windows, the path might be C:\Users\YourName\AppData\Local\Programs\Python\Python3x\python.exe. On Mac, use which python3 in Terminal to find the path.

Frequently Asked Questions

  • Can I use Python with JMP 13 or earlier? – No, Python integration was introduced in JMP 14. Upgrade to JMP 14 or later.
  • Do I need to install Anaconda? – No, but Anaconda can simplify package management. If you use Anaconda, set the Python path to the Anaconda python.exe.
  • Can I run Python scripts from JMP without opening a script window? – Yes, you can save a JSL script that includes Python Submit and run it via File > Open, or assign it to a button in a dashboard.
  • How do I pass a JMP data table to Python and get a new table back? – Use Python Send to send the table, process it in Python, then use Python Get to retrieve a list or DataFrame and convert it to a JMP table using As Table().
  • Is there a performance overhead? – Yes, each Python Submit call has some overhead. For large datasets, it’s more efficient to send data once, process in Python, and get results back once.
  • Can I use Python libraries like scikit-learn in JMP? – Yes, as long as the library is installed in the Python environment JMP uses. You can call any Python function from JSL.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.