Description
Hi! I was very pleasant to find out that Colab supports third-party widgets now! But then I find out that the widget of CatBoost package still doesn't work.
Simple script to reproduce:
!pip install --user --upgrade catboost
!pip install --user --upgrade ipywidgets
!pip install sklearn
!jupyter nbextension enable --py widgetsnbextension
from google.colab import output
output.enable_custom_widget_manager()
from catboost import CatBoostRegressor
from sklearn.datasets import make_regression
X, y = make_regression()
model = CatBoostRegressor(iterations=10)
model.fit(X, y, plot=True)
It gives me strange output without plots:
And with error in console:
After some investigation I thought that the problem is that catboost-widget package at CDN doesn't have dist/index.js
file. I've found in this repository the code tha
58DE
t builds url for widget source. I've tried to specify another file by changing this line to:
_model_module = Unicode('catboost-widget/src/index.js').tag(sync=True)
.
But it didn't help. The error message has been changed respectively to:
Wheel with this "fix" for python3.7 can be downloaded by the link: https://disk.yandex.ru/d/TfBf6uCNw4Wfyw
Please, help me to find out which changes I should make in CatBoost to make the widget works.