on GitHub

RPC

An @db.rpc is a Python function the page calls with live arguments from a control, and its result is queryable in SQL like any other table. This one re-fits a scikit-learn k-means over the Iris dataset on the server every time you change a control below.

Controls

k-means clustering of the Iris dataset (scikit-learn), re-fit on the server each time a control changes. Points are colored by cluster.

Clusters
Loading…