Skip to content

Commit

Permalink
using cgm2 0.5.17 with improved dendrogram permanent tooltip behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cornhundred committed Feb 2, 2020
1 parent dbb008a commit 21f2b4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 236 deletions.
239 changes: 4 additions & 235 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">> clustergrammer2 backend version 0.5.15\n"
">> clustergrammer2 backend version 0.5.16\n"
]
}
],
Expand Down Expand Up @@ -338,22 +338,7 @@
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "112c6d2adca94f5bab4b112b4f18c38f",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='Tissue Location', style=ButtonStyle()), Button(description='UMAP', style=Bu…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"from IPython.display import display\n",
"location_button = widgets.Button(description=\"Tissue Location\")\n",
Expand All @@ -380,13 +365,13 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "34c62ad29a1d41f5bd8116618aca1447",
"model_id": "deddcd07894a48b58e7a886cdacf0ce6",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -404,222 +389,6 @@
"right_box = widgets.VBox([net.widget_instance])\n",
"widgets.HBox([left_box, right_box])"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2c658a650ad24d14a1577064a6a53411",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Figure(animation_duration=2000, axes=[Axis(scale=LinearScale(max=4000.0, min=0.0)), Axis(orient…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# HBox([fig, net.widget_instance])"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"# scatter.y = df_meta['plot-y']\n",
"# scatter.x = df_meta['plot-x']"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"# scatter.y = df_meta['umap-y'] * 150 + 1500\n",
"# scatter.x = df_meta['umap-x'] * 150 + 1900"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
"# scatter.x = np.random.rand(df_meta.shape[0])* 6000\n",
"# scatter.y = np.random.rand(df_meta.shape[0])* 6000"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
"# HBox([loc_button, loc_button])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
"# dropdown_year = widgets.Dropdown(options =['one', 'two'])"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
"# widgets.Select(\n",
"# options=['Linux', 'Windows', 'OSX'],\n",
"# value='OSX',\n",
"# # rows=10,\n",
"# description='OS:',\n",
"# disabled=False\n",
"# )"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
"# button = widgets.Button(description='Click here')\n",
"# slider = widgets.IntSlider()\n",
"# stacked = widgets.Stacked([button, slider])\n",
"# stacked # will show only the button"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
"# widgets.__version__"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
"# loc_button = widgets.Button(\n",
"# description='Location',\n",
"# disabled=False,\n",
"# button_style='', # 'success', 'info', 'warning', 'danger' or ''\n",
"# # tooltip='Click me',\n",
"# # icon='check' # (FontAwesome names without the `fa-` prefix)\n",
"# value='location'\n",
"# )"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"# HBox([loc_button, loc_button])"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
"# def switch_to_location(button_data):\n",
"# print(button_data)"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
"# loc_button.on_click(switch_to_location)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
"# mylink = widgets.jslink()"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
"# a = widgets.Text()\n",
"# display(a)\n",
"# mylink = widgets.jslink((a, 'value'), (net.widget_instance, 'value'))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pandas
scikit-learn
ipywidgets
matplotlib
clustergrammer2==0.5.15
clustergrammer2==0.5.17

0 comments on commit 21f2b4a

Please sign in to comment.