Skip to content

Commit

Permalink
clear outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed May 19, 2023
1 parent 9cd1f5e commit 506def4
Showing 1 changed file with 26 additions and 127 deletions.
153 changes: 26 additions & 127 deletions notebooks/introduction.ipynb
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -12,6 +13,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -22,27 +24,11 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e0c3c63d3e1c4d88a71bb7bbc6ae45e0",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"LayoutWidget(Layout(ContextProvider(<function context at 0x7f7986b10cc0>)))"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from reactpy import component, html\n",
"\n",
Expand All @@ -56,6 +42,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -68,27 +55,11 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a87baeb77dcc44e1a29ab154df1dd8a7",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"LayoutWidget(Layout(ContextProvider(<function context at 0x7f7986b10cc0>)))"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from reactpy import component, html\n",
"\n",
Expand Down Expand Up @@ -125,6 +96,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -137,27 +109,11 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "920e5f89aba644528257e20deae25f2e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"LayoutWidget(Layout(ContextProvider(<function context at 0x7f7986b10cc0>)))"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"import json\n",
"from pathlib import Path\n",
Expand Down Expand Up @@ -197,6 +153,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -207,25 +164,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "67cb81abf4ce4c9e991a9771607b9d5e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"LayoutWidget(Layout(ContextProvider(<function context at 0x7f7986b10cc0>)))"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from reactpy_jupyter import from_widget\n",
"from ipywidgets import IntSlider\n",
Expand All @@ -237,6 +178,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -245,7 +187,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -276,6 +218,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -284,34 +227,19 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c586a0f0fe0b44a3bab173ccb9fa52d8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"LayoutWidget(Layout(ContextProvider(<function context at 0x7f7986b10cc0>)))"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from ipywidgets import IntSlider\n",
"\n",
"SliderObserver(IntSlider(readout=False))"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -320,27 +248,11 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a0180ea4781b4dda9f77d1be75fbcad3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Box(children=(IntSlider(value=0, readout=False), LayoutWidget(Layout(ContextProvider(<function context at 0x7f…"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from ipywidgets import Box\n",
"from reactpy_jupyter import to_widget\n",
Expand All @@ -352,6 +264,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -360,25 +273,9 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "abeb4c3af2164e00927b317e5dfb6569",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Box(children=(LayoutWidget(Layout(ContextProvider(<function context at 0x7f7986b10cc0>))), LayoutWidget(Layout…"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"slider = IntSlider(readout=False)\n",
"slider_observer_constructor = to_widget(SliderObserver)\n",
Expand All @@ -389,6 +286,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -424,6 +322,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down

0 comments on commit 506def4

Please sign in to comment.