DRAFT help

Scripting Guide > Python > Working with JMP Data Tables > Using JSL Commands in the Python Script Editor
Publication date: 07/08/2024

Using JSL Commands in the Python Script Editor

The run_jsl() function enables Python to directly run JSL scripts, facilitating the use of JMP platforms, tools, and more within Python.

The following example opens a data table in JMP and sets the display width of two columns with the jmp.run_jsl() function.

import jmp
 
dt = jmp.open(jmp.SAMPLE_DATA + 'Big Class.jmp')
 
jmp.run_jsl('''
dt = Python Get(dt);
dt:name << Set Display Width( 150 );
dt:age << Set Display Width( 125 );
''')
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).