The variable() function is obsolete as of v0.1.0. Please use the defineState() function, which is more flexible and more versatile.
Morph allows variables to be defined in Python functions and SQL files, but variables can also be used when executing from MDX files.For more information on using variables in Python and SQL files, see how to use variables.
When passing to a component, pass the name of the variable in the Python or SQL file as a key, in object form.In the example below, start_date and end_date are used as variables in the Python file, so they are passed as keys.