data_designer.config.utils.misc
data_designer.config.utils.misc
data_designer.config.utils.misc
Raises an error if the template cannot be parsed.
Returns True if running inside a Jupyter/IPython notebook.
Returns True if Data Designer can be run locally, False otherwise.
Extract all keywords from a valid Jinja2 template.
Convert a list of column names to a JSON string if the list is long.
This function helps keep Data Designer’s repr output clean and readable.
Parameters:
List of column names.
Indentation for the JSON string.
Returns:
list[str] | str | None
A list of column names or a JSON string if the list is long.