From 01d828d470e69372a89b9265219e908a9df30ce9 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Tue, 12 Nov 2024 15:52:52 -0500 Subject: [PATCH] Update example notebook. --- docs/PlotlyViewerExample.ipynb | 139 ++------ docs/assets/img/PlotlyViewerExample.ipynb | 375 ---------------------- 2 files changed, 25 insertions(+), 489 deletions(-) delete mode 100644 docs/assets/img/PlotlyViewerExample.ipynb diff --git a/docs/PlotlyViewerExample.ipynb b/docs/PlotlyViewerExample.ipynb index 1bc281c..c0fe49c 100644 --- a/docs/PlotlyViewerExample.ipynb +++ b/docs/PlotlyViewerExample.ipynb @@ -19,7 +19,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "75a31f1b-a32a-42ba-a016-f324faa9f3a7", "metadata": {}, "outputs": [], @@ -40,28 +40,10 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "0746adc6-dbe1-4f85-8690-da24458667c0", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['ipyvolume:lasso', 'ipyvolume:circle', 'ipyvolume:rectangle']\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/jon/opt/mambaforge/envs/glue-plotly/lib/python3.11/site-packages/glue_qt/viewers/common/tool.py:5: UserWarning:\n", - "\n", - "glue.viewers.common.tool is deprecated, use glue.viewers.common.tool instead\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "app = jglue()\n", "session = app.session\n", @@ -78,7 +60,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "id": "95d749da-73c8-432a-9a23-85d37e1b6fb5", "metadata": {}, "outputs": [], @@ -86,7 +68,7 @@ "from random import randint\n", "x = [randint(0, 100) for _ in range(100)]\n", "y = [randint(300, 400) for _ in range(100)]\n", - "data = app.load_data(\"~/dev/glue/data/airplane/planes_truncated.csv\")\n", + "data = Data(label='data', x=x, y=y)\n", "dc.append(data)\n", "data.style.color = \"#0000ff\"\n", "data.style.markersize = 6" @@ -94,7 +76,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "92745ee0-25bf-455a-b022-045059fa8e19", "metadata": {}, "outputs": [], @@ -119,25 +101,10 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "id": "cf42768e-6d31-4375-90ee-facd8d19800a", "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "a086592611844e8d94a1c6623d35cb5a", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "LayoutWidget(controls={'toolbar_selection_tools': BasicJupyterToolbar(template=Template(template='