Scripting Guide > Python > Working with JMP Data Tables > Using JSL Commands in the Python Script Editor
发布日期: 03/04/2025

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 );
''')
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).