Skip to content

Commit

Permalink
added some handy html to the notebook cells
Browse files Browse the repository at this point in the history
  • Loading branch information
noahbenson committed Nov 8, 2022
1 parent 4fb604b commit 5e56f59
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion notebooks/annotate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@
"## The Annotation Tool"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%%html\n",
"<!-- This HTML block inserts code into the notebook that hides the input\n",
" blocks (such as this one) and the prompt panel (the space to the left \n",
" where \"In [ ]\" and \"Out [ ]\" appear).\n",
"-->\n",
"<script>\n",
" $('div.prompt').hide();\n",
" $('div.input').hide();\n",
"</script>"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -64,7 +81,9 @@
"# Next, import the tool from the annotation library.\n",
"from annotate import AnnotationTool\n",
"# Then, we just start the tool.\n",
"AnnotationTool(config_path=config_path, cache_path=cache_path)"
"# The tool displays itself during its init function (so that it can display a\n",
"# loading screen), so we capture this output.\n",
"tool = AnnotationTool(config_path=config_path, cache_path=cache_path)"
]
}
],
Expand Down

0 comments on commit 5e56f59

Please sign in to comment.