show_model_definition

Project.show_model_definition(model_name: str, syntax: str | None = None) MarkdownStr[source]

Show model definition file content with syntax highlighting.

Parameters:
  • model_name (str) – The name of the model.

  • syntax (str | None) – Syntax used for syntax highlighting. Defaults to None which means that the syntax is inferred based on the file extension. Pass the value "" to deactivate syntax highlighting.

Returns:

Model definition file content with syntax highlighting to render in ipython.

Return type:

MarkdownStr