# tfdf.model_plotter.plot_model_in_colab

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/model_plotter/model_plotter.py#L83-L98) |

Plots a model structure in colab.

    tfdf.model_plotter.plot_model_in_colab(
        model: InferenceCoreModel, **kwargs
    )

### Used in the notebooks

| Used in the guide | Used in the tutorials |
|---|---|
| - [Migration examples: Canned Estimators](https://www.tensorflow.org/guide/migrate/canned_estimators) | - [Inspect and debug decision forest models](https://www.tensorflow.org/decision_forests/tutorials/advanced_colab) - [Getting started](https://www.tensorflow.org/decision_forests/tutorials/beginner_colab) - [Learning to Rank with Decision Forests](https://www.tensorflow.org/decision_forests/tutorials/ranking_colab) |

See "plot_model" for the available options.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `model` | The model to plot. |
| `**kwargs` | Arguments passed to "plot_model". |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A Colab HTML element showing the model. ||

<br />