Skip to content

Commit d047331

Browse files
Minor cnanges to 04-patch-extraction.ipynb (#468)
- Fix spacing around backticked words. - Unhide hidden cells. Change "tail --line 1" to "tail -n 1" Incroporate changes implrmented by pre-commit hooks. - Change "tail --line 1" to "tail -n 1". Correct spacing around backticked word. - Rewrite text cell on restarting runtime, and replace non-ascii right-arrow by ampersand encoding. Apply pre-commit hooks. - Unhide hidden cells - Rewrite text cell about restarting runtime under Colab. Replace non-ascii em-dash by " —". Pre-commit hooks. - Redo previous commit more carefully.
1 parent 8b7855d commit d047331

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

examples/04-patch-extraction.ipynb

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
{
3838
"cell_type": "markdown",
3939
"metadata": {
40-
"id": "ry2lYrQgZrxH",
41-
"nbsphinx": "hidden"
40+
"id": "ry2lYrQgZrxH"
4241
},
4342
"source": [
4443
"## Setting up the environment\n",
@@ -57,13 +56,12 @@
5756
"base_uri": "https://localhost:8080/"
5857
},
5958
"id": "MR3BWBayNg_K",
60-
"nbsphinx": "hidden",
6159
"outputId": "7647256a-1c63-42c4-f844-549d7d6c8d13"
6260
},
6361
"outputs": [],
6462
"source": [
65-
"!apt-get -y install libopenjp2-7-dev libopenjp2-tools openslide-tools | tail --line 1\n",
66-
"!pip install tiatoolbox | tail --line 1\n",
63+
"!apt-get -y install libopenjp2-7-dev libopenjp2-tools openslide-tools | tail -n 1\n",
64+
"!pip install tiatoolbox | tail -n 1\n",
6765
"\n",
6866
"print(\"Installation is done.\")"
6967
]
@@ -72,15 +70,14 @@
7270
"cell_type": "markdown",
7371
"metadata": {},
7472
"source": [
75-
"> **IMPORTANT**: If you are using Colab and you run the cell above for the first time, please note that you need to restart the runtime before proceeding through (menu) *\"Runtime\u2192Restart runtime\"* . This is needed to load the latest versions of prerequisite packages installed with TIAToolbox. Doing so, you should be able to run all the remaining cells altogether (*\"Runtime\u2192Run after\"* from the next cell) or one by one.\n",
73+
"**IMPORTANT**: When you run the cell above for the first time, while using Colab, you need to restart the runtime before proceeding further. Click on the box *RESTART RUNTIME* that appears immediately above this cell, or use the menu *Runtime\u2192Restart runtime*. This loads the latest versions of prerequisite packages. The notebook can then be managed normally. For example, you can run subsequent cells one by one, or you can click on *Runtime\u2192Run all* or *Runtime\u2192after*.\n",
7674
"\n"
7775
]
7876
},
7977
{
8078
"cell_type": "markdown",
8179
"metadata": {
82-
"id": "W6_DShRPqSsX",
83-
"nbsphinx": "hidden"
80+
"id": "W6_DShRPqSsX"
8481
},
8582
"source": [
8683
"### Removing leftovers from previous runs\n",
@@ -93,8 +90,7 @@
9390
"cell_type": "code",
9491
"execution_count": null,
9592
"metadata": {
96-
"id": "kd_rQ3f_ZrxG",
97-
"nbsphinx": "hidden"
93+
"id": "kd_rQ3f_ZrxG"
9894
},
9995
"outputs": [],
10096
"source": [
@@ -642,7 +638,7 @@
642638
"provenance": []
643639
},
644640
"kernelspec": {
645-
"display_name": "Python 3",
641+
"display_name": "Python 3 (ipykernel)",
646642
"language": "python",
647643
"name": "python3"
648644
},
@@ -656,7 +652,7 @@
656652
"name": "python",
657653
"nbconvert_exporter": "python",
658654
"pygments_lexer": "ipython3",
659-
"version": "3.9.5"
655+
"version": "3.10.6"
660656
}
661657
},
662658
"nbformat": 4,

0 commit comments

Comments
 (0)