Databricks Notebook Rendering Issue: IPython.lib.display.IFrame

SR_71
New Contributor II

Similar issue here: https://stackoverflow.com/questions/71336374/randomforestclassifier-explainer-dashboard-output-in-da...

Actual output – Databricks Notebookimage 

Expected Output – Jupyter Notebookimage 

Reproducible Code Example

#pip install explainerdashboard

from sklearn.ensemble import RandomForestClassifier

from explainerdashboard import ClassifierExplainer, ExplainerDashboard

from explainerdashboard.datasets import titanic_survive, feature_descriptions

X_train, y_train, X_test, y_test = titanic_survive()

model = RandomForestClassifier(n_estimators=50, max_depth=10).fit(X_train, y_train)

explainer = ClassifierExplainer(model, X_test, y_test,

                              cats=[''Deck', 'Embarked'],

                              descriptions=feature_descriptions,

                              labels=['Not survived', 'Survived'])

ExplainerDashboard(explainer, mode = 'inline',

                  importances=False,

                  model_summary=False,

                  contributions=True,

                  whatif=False,

                  shap_dependence=False,

                  shap_interaction=False,

                  decision_trees=False).run()