Skip to content

Commit

Permalink
working on making new release of clustergrammer-gl with widget model …
Browse files Browse the repository at this point in the history
…and callback functionality - run callback function that is exposed to cgm on defined interactions
  • Loading branch information
cornhundred committed Jun 27, 2019
1 parent cf529c3 commit 651ae45
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/introduction_nb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "aede3b369a784e2c83d7f7307548629b",
"model_id": "fcb8c04140b7479ea0adc27fb14c9779",
"version_major": 2,
"version_minor": 0
},
Expand Down
42 changes: 37 additions & 5 deletions examples/widget-dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,48 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"scatter_1.colors=['black']"
"import time"
]
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
"colors = ['red', 'blue', 'yellow', 'green', 'white', 'black', 'purple', 'orange', 'brown', 'pink']\n",
"for i in range(10):\n",
" inst_color = colors[i]\n",
" time.sleep(1)\n",
" scatter_1.colors=[inst_color]\n",
" scatter_1.default_opacities = [float(i/20) + 0.1]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"scatter_1.colors=['red']"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"scatter_1.opacity = [1]"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -81,15 +113,15 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 15,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8418ae247bca42c2aaeff6a31e88376e",
"model_id": "5873f09228f04f459b0af843a0975e48",
"version_major": 2,
"version_minor": 0
},
Expand Down

0 comments on commit 651ae45

Please sign in to comment.