Skip to content

Commit

Permalink
Fix missing altair import for tooltip caught by treon in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Apr 26, 2024
1 parent a3acb44 commit 07412ee
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions speculative_reading/HemingwayBorrowing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 2,
"metadata": {
"id": "q81hUE1mUVIf"
},
Expand All @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -228,7 +228,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -358,7 +358,7 @@
"5643 1925-10-12 to 1925-10-27 15 "
]
},
"execution_count": 26,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -401,7 +401,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 8,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand All @@ -415,13 +415,13 @@
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-b04944e9c6ac4348b88cfd17754aead3\"></div>\n",
"<div id=\"altair-viz-039baf59458c44658fc65c40f9b7b7f6\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-b04944e9c6ac4348b88cfd17754aead3\") {\n",
" outputDiv = document.getElementById(\"altair-viz-b04944e9c6ac4348b88cfd17754aead3\");\n",
" if (outputDiv.id !== \"altair-viz-039baf59458c44658fc65c40f9b7b7f6\") {\n",
" outputDiv = document.getElementById(\"altair-viz-039baf59458c44658fc65c40f9b7b7f6\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
Expand Down Expand Up @@ -474,13 +474,15 @@
"alt.VConcatChart(...)"
]
},
"execution_count": 36,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# generate a raincloud plot with a tooltip for hover interaction\n",
"import altair as alt\n",
"\n",
"hemingway_raincloud = raincloud_plot(\n",
" hemingway_borrows, 'borrow_duration_days', 'Borrow duration in days',\n",
" tooltip=alt.Tooltip(['item', 'dates', 'days out']))\n",
Expand All @@ -490,7 +492,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -500,7 +502,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 07412ee

Please sign in to comment.