{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# ipyregulartable\n", "https://github.com/finos/ipyregulartable\n", " " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import ipyregulartable as rt" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "03233747cc0342c3b695aff39e8c0ae1", "version_major": 2, "version_minor": 0 }, "text/plain": [ "RegularTableWidget()" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "w = rt.RegularTableWidget(rt.NumpyDataModel())\n", "w" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "6d1f0984c4b94363b6ff5f115bbaf717", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Output()" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import ipywidgets as ipy\n", "out = ipy.Output()\n", "out" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "def on_click(widget, coords):\n", " with out:\n", " print(\"clicked: ({},{})\".format(coords[0], coords[1]))\n", " \n", "w.on_click(on_click)\n", " " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.8" } }, "nbformat": 4, "nbformat_minor": 4 }