Scripting Guide > Extending JMP > Work with Python > JMP Scoping Operators and Python
Publication date: 08/13/2020

JMP Scoping Operators and Python

A JMP object sent to Python with Python Send() uses the same JMP reference as the name of the Python object that gets created. For example, sending the JMP variable dt to Python creates a Python object named dt.

The colon and double colon JSL scoping operators (: and ::) are not valid in Python object names, so the colons are converted as follows:

A single colon scoping operator is replaced with an underscore (_).

For example, sending nsref:dt to Python creates a corresponding Python object named nsref_dt.

A double colon scoping operator (designating a global variable) is ignored.

For example, sending ::dt to Python creates a corresponding Python object named dt.

Note: The Python Name option for Python Send() has a quoted string argument that contains a valid Python object name. The JMP object sent to Python becomes a Python object with the specified name.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).
.