{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# plotly\n", "from plotly.graph_objs import FigureWidget\n", "from plotly.callbacks import Points, InputDeviceState\n", "\n", "# pandas\n", "import pandas as pd\n", "\n", "# numpy\n", "import numpy as np\n", "\n", "# scikit learn\n", "from sklearn import datasets\n", "\n", "# ipywidgets\n", "from ipywidgets import HBox, VBox, Button\n", "\n", "# functools\n", "from functools import partial" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | sepal_length | \n", "sepal_width | \n", "petal_length | \n", "petal_width | \n", "
---|---|---|---|---|
0 | \n", "5.1 | \n", "3.5 | \n", "1.4 | \n", "0.2 | \n", "
1 | \n", "4.9 | \n", "3.0 | \n", "1.4 | \n", "0.2 | \n", "
2 | \n", "4.7 | \n", "3.2 | \n", "1.3 | \n", "0.2 | \n", "
3 | \n", "4.6 | \n", "3.1 | \n", "1.5 | \n", "0.2 | \n", "
4 | \n", "5.0 | \n", "3.6 | \n", "1.4 | \n", "0.2 | \n", "