squaredtechnologies / thread

AI-powered Jupyter Notebook — use local AI to generate and edit code cells, automatically fix errors, and chat with your data
https://www.thread.dev
GNU Affero General Public License v3.0
974 stars 49 forks source link

ipywidgets don't render #17

Closed amihaiOff closed 1 week ago

amihaiOff commented 1 week ago

When trying to use ipywidgets the notebook doesn't render the widgets, rather it just displays the widget class in text

import ipywidgets as widgets
from IPython.display import display

button = widgets.Button(description='yo')
display(button)

Displays

Button(description='yo', style=ButtonStyle())
samisahn commented 1 week ago

Thanks for raising this. We're looking into supporting iPyWidgets shortly!

samisahn commented 1 week ago

IPyWidgets are now supported in v0.1.13 with this commit. 🎉

https://github.com/squaredtechnologies/thread/assets/26368245/285d8e7c-354c-4caf-a8a7-e8f3925a2992

Closing this out because it's working - please feel free to give it a try and raise any additional issues! This one was a bit of a doozy and there may be areas we need to revisit for truly full support.