- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago - last edited a month ago
Hi,
I am running some code which fits a linear model via Statsmodel. Everytime I run the .fit function it generates the error: "Error displaying widget: undefined".
I can reproduce the error via the simple code below.
I am not sure what is causing this issue and I cannot find any similar issues online. Is anybody aware of the issue causing this error?
Node type: Standard_DS3_v2
Databricks runtime version: 15.1 ML
Statsmodel version: 0.14.0
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @JU1,
The issue is likely related to an issue with the ipywidgets library, which is used for rendering interactive widgets in Jupyter notebooks. This issue has been observed in compatibility problems between different versions of ipywidgets and other libraries.
Can you run this command and send the output?
import ipywidgets as widgets
print(widgets.__version__)
Also can you try on another DBR version like 14.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
It was indeed the DBR which caused the issue. I changed it to 16.1 and the widgets now load.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @JU1,
The issue is likely related to an issue with the ipywidgets library, which is used for rendering interactive widgets in Jupyter notebooks. This issue has been observed in compatibility problems between different versions of ipywidgets and other libraries.
Can you run this command and send the output?
import ipywidgets as widgets
print(widgets.__version__)
Also can you try on another DBR version like 14.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
It was indeed the DBR which caused the issue. I changed it to 16.1 and the widgets now load.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Awesome, which DBR were you using before?

