drawdata-sklearn / README.md
maartenbreddels's picture
initial commit
0449aa7
metadata
title: Drawdata Sklearn
emoji: 🌍
colorFrom: indigo
colorTo: gray
sdk: docker
pinned: false
license: mit

drawdata - demo using solara

Drawdata is an ipywidget library build using anywidget.

All ipywidgets (and also anywidget) run in the Jupyter notebook, but also in Solara server.

Solara server can run Python code and notebooks, and display regular widgets, or for more production quality code, solara components.

Demo 1 - Original with classic widgets

This demonstrates solara server can execute the (almost unmodified) notebook.

Since ipywidgets lacks lifetime management, the widgets in this tab are kept alive and reused when moved back to this tab (try drawing, and switch tabs).

This demo shows how drawdata can be used exploring how different sklearn algorithm perform on datasets draw by hand (YouTube video)

Demo 2 - Fancy demo using components

For larger apps and dynamic UI's it pays off using components and creating elements instead of directly creating widgets. This makes it possible to create very dynamic UIs (try changing the layout using the top right button in the app bar) and have proper life cycle management (widgets get cleaned up when changing tabs, freeing memory - very important in larger applications)