google / yggdrasil-decision-forests

A library to train, evaluate, interpret, and productionize decision forest models such as Random Forest and Gradient Boosted Decision Trees.
https://ydf.readthedocs.io/
Apache License 2.0
498 stars 53 forks source link

rich reports not rendering graphs in vscode #74

Closed mocher72 closed 9 months ago

mocher72 commented 9 months ago

When running the example code in vscode .ipynb the graphs do not render. I am using the cade the same as the tutorial. https://ydf.readthedocs.io/en/latest/tutorial/getting_started/ After the evaluation cell no graphs are displayed. When I try the same file in Jupyter lab backend with browser this is rendering OK.

I have tried this on both wsl and Macos arm64 and it is happening with both.

Is there any special setting i need to set?

rstz commented 9 months ago

Thanks for reporting. Looks like the plotly library is not loaded correctly, maybe for the reasons described here https://github.com/microsoft/vscode-jupyter/issues/13361

mocher72 commented 9 months ago

I had a look into the renderer and have found if I uninstall the Jupyter Notebook Renderers extension, the graphs are now rendered! https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-renderers

I can confirm that this works on both wsl and macos arm64.

rstz commented 9 months ago

Cool, thank you for looking into it!