Skip to content

Commit

Permalink
updated demo to contain export interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
dorisjlee committed Feb 2, 2020
1 parent ad8c467 commit 2a4f029
Showing 1 changed file with 51 additions and 14 deletions.
65 changes: 51 additions & 14 deletions examples/short_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"/Users/dorislee/Desktop/Research/vizdatasci/lux\n"
"/Users/dorislee/Desktop/Research/lux/lux\n"
]
}
],
Expand Down Expand Up @@ -177,7 +177,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "85e6cd9efa3b413f8a5f995e50badb40",
"model_id": "92d22b8f62e1455faad1d4f27200a82f",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -214,12 +214,14 @@
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "64e05db50d8c431da26f06cca0881b2a",
"model_id": "d880062940df4de2b0e998c8fc8f7528",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -235,7 +237,28 @@
"dobj = lux.DataObj(dataset,[lux.Column(\"Acceleration\",dataModel=\"measure\"),\n",
" lux.Column(\"Horsepower\",dataModel=\"measure\")])\n",
"result = dobj.showMore()\n",
"result.display()"
"widget = result.display()\n",
"widget "
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Displacement', 'Weight', 'Cylinders']"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"[vis[\"encoding\"][\"color\"][\"field\"] for vis in widget.selectedVisLst[0][\"vspec\"]]"
]
},
{
Expand All @@ -254,13 +277,13 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "aa9a378ff60d45a7bf8d4a103189182d",
"model_id": "fa5e51534ebd414eb5461ffaa98b7fa6",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -286,7 +309,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -388,7 +411,7 @@
"331 2420 12.5 1980 Japan "
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -400,7 +423,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -488,7 +511,7 @@
"325 2950 19.9 1980 Europe "
]
},
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -499,7 +522,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -516,13 +539,13 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fcb3df8affbe400daae297c50c65a04e",
"model_id": "b6ba281df3424afe987d493a1a5d078d",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -539,6 +562,20 @@
"dobj.display()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 2a4f029

Please sign in to comment.