Skip to content

Instantly share code, notes, and snippets.

@geauxtigers
Created June 19, 2024 10:49
Show Gist options
  • Save geauxtigers/f5ec3bfeb00f529e77ba9f314d3fed4d to your computer and use it in GitHub Desktop.
Save geauxtigers/f5ec3bfeb00f529e77ba9f314d3fed4d to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 9,
"id": "b3327212-eee6-429a-82f1-d0e87ab57749",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"This\n",
"will\n",
"scroll\n",
"if\n",
"you\n",
"can\n",
"see\n",
"the\n",
"bottom\n",
"of\n",
"the\n",
"notebook\n"
]
}
],
"source": [
"from pathlib import Path\n",
"\n",
"\"\"\"\n",
"Some text and spacing for screen effect.\n",
"\"\"\"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"for x in range(5):\n",
" ...\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"# Another comment \n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"for z in \"This will scroll if you can see the bottom of the notebook\".split():\n",
" print(z)\n",
"\n",
"\n",
"\n",
"# if the blue line below is visible, it scrolls to the top"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment