Skip to content

Commit

Permalink
updated references to remote notebook access
Browse files Browse the repository at this point in the history
  • Loading branch information
leriomaggio committed Feb 18, 2021
1 parent 5d49683 commit 676d1f5
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 55 deletions.
43 changes: 26 additions & 17 deletions 4_data_partitioning/data_partitioning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@
"div.jp-RenderedHTMLCommon pre,\n",
"div.jp-RenderedHTMLCommon code {\n",
" font-size: 1em !important;\n",
" color: var(--code-text-color) !important;\n",
" color: var(--code-text-color) /* REMOVED useless color forcing */;\n",
"}\n",
"\n",
"/* Monospace Code - no code syntax highlight*/\n",
Expand Down Expand Up @@ -1087,6 +1087,7 @@
"div.jp-RenderedHTMLCommon ol li > ul li a code,\n",
"div.jp-RenderedHTMLCommon ol li > ol li a code {\n",
" font-size: .9em !important;\n",
" color: var(--link-color);\n",
"}\n",
"\n",
"div.jp-RenderedHTMLCommon ul ul ul {\n",
Expand Down Expand Up @@ -1314,7 +1315,7 @@
"\n",
"code, kbd, pre, samp {\n",
" font-family: var(--txbk-code-font-family) !important;\n",
" color: var(--txbk-ui-mono-color) !important;\n",
" color: var(--txbk-ui-mono-color);\n",
" font-weight: 400;\n",
" font-size: var(--txbk-ui-mono-font-size) !important;\n",
" line-height: var(--txbk-ui-mono-line-height) !important;\n",
Expand Down Expand Up @@ -1796,7 +1797,7 @@
"div.text_cell_render pre,\n",
"div.text_cell_render code {\n",
" font-size: 1em !important;\n",
" color: var(--code-text-color) !important; /* from */\n",
" color: var(--code-text-color) /* REMOVED useless important clause */\n",
"}\n",
"\n",
"/* Monospace Code - no code syntax highlight*/\n",
Expand Down Expand Up @@ -1939,6 +1940,7 @@
"div.text_cell_render ol li > ul li a code,\n",
"div.text_cell_render ol li > ol li a code {\n",
" font-size: .9em !important;\n",
" color: var(--link-color);\n",
"}\n",
"\n",
"div.text_cell_render ul ul ul {\n",
Expand Down Expand Up @@ -2152,16 +2154,21 @@
"\n",
"function customise_anchor_links_click() {\n",
" $(\"a\").on(\"click\", function (e) {\n",
" // Check if header toolbar is visible in the first place\n",
" if (this.hash !== \"\") {\n",
" const hash = this.hash; // full hash reference, if any (e.g. #numpy.arange)\n",
" if (hash !== \"\") { // check that this is an anchor link\n",
" // Remove any existing handler\n",
" $(this).unbind();\n",
" // Store hash\n",
" const hash = this.hash;\n",
" let t = $(hash);\n",
" // Get anchor (get rid of sharp symbol)\n",
" // and escape any invalid character for a JQuery selector\n",
" // e.g. numpy.arange ==> \"numpy\\.arange\"\n",
" const anchor = $.escapeSelector(hash.substr(1));\n",
" // Look for ID selector\n",
" let anchor_sel = \"#\"+anchor;\n",
" let t = $(anchor_sel);\n",
" if ((t === undefined) || (t.length === 0)) {\n",
" let anchor = hash.substr(1);\n",
" t = $(\"a[name='\" + anchor + \"'\");\n",
" // if not ID, look for a link name anchor\n",
" anchor_sel = \"a[name='\" + anchor + \"'\";\n",
" t = $(anchor_sel);\n",
" }\n",
" if ((t !== undefined) && (t.length > 0)) {\n",
" // Prevent default anchor click behavior\n",
Expand All @@ -2171,17 +2178,17 @@
" // The optional number (800) specifies the number of milliseconds\n",
" // it takes to scroll to the specified area\n",
" let header_height = $(\"#header\").height();\n",
" let offset = $(t).offset().top - header_height;\n",
" let scrollTopOffset = $(t).offset().top - header_height;\n",
"\n",
" /*\n",
" * FIX Scrolling Animation Freeze:\n",
" * https://stackoverflow.com/questions/18445590/jquery-animate-stop-scrolling-when-user-scrolls-manually\n",
" */\n",
" page.on(\"scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove\", function () {\n",
" page.stop();\n",
" page.stop(true); // clearQueue\n",
" });\n",
" page.animate({\n",
" scrollTop: offset\n",
" page.stop(true).animate({\n",
" scrollTop: scrollTopOffset\n",
" }, 800, function () {\n",
" page.off(\"scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove\");\n",
" });\n",
Expand Down Expand Up @@ -2226,13 +2233,15 @@
"source": [
"<span class=\"badges\">\n",
"\n",
"[![myBinder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/leriomaggio/pytorch-beautiful-ml-data/pydata-global?filepath=4_data_partitioning/data_partitioning.ipynb)\n",
"[![myBinder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/leriomaggio/pytorch-beautiful-ml-data/pydata-global/?filepath=4_data_partitioning/data_partitioning.ipynb)\n",
" \n",
"[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/leriomaggio/pytorch-beautiful-ml-data/blob/pydata-global/4_data_partitioning/data_partitioning.ipynb)\n",
"\n",
"[![nbviewer](https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg)](https://nbviewer.jupyter.org/github/leriomaggio/pytorch-beautiful-ml-data/blob/pydata-global/4_data_partitioning/data_partitioning.ipynb)\n",
"</span>\n",
"\n",
"<span class=\"fn\"><i>[Note]: </i> This notebook has been designed using the [$\\text{no}\\TeX\\text{book}$](https://github.com/leriomaggio/notexbook-jupyter-theme) Jupyter notebook theme. \n",
"Please **trust** the notebook to enable the theme, or **run the two cells above** $\\Uparrow$.</span>"
"<span class=\"fn\"><i>[Note]: </i> This notebook has been designed using the [$\\text{no}\\TeX\\text{book}$](https://github.com/leriomaggio/notexbook-jupyter-theme) Jupyter notebook theme. <br />\n",
"Please **Trust** the notebook to automatically enable the theme. If you are viewing this notebook in **Google Colab**, these are the [instructions](https://github.com/leriomaggio/notexbook-jupyter-theme/tree/texbook-colab) to enable the theme in Colab."
]
},
{
Expand Down
65 changes: 47 additions & 18 deletions 5_case_study/case_study_digital_pathology.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@
"div.jp-RenderedHTMLCommon pre,\n",
"div.jp-RenderedHTMLCommon code {\n",
" font-size: 1em !important;\n",
" color: var(--code-text-color) !important;\n",
" color: var(--code-text-color) /* REMOVED useless color forcing */;\n",
"}\n",
"\n",
"/* Monospace Code - no code syntax highlight*/\n",
Expand Down Expand Up @@ -1087,6 +1087,7 @@
"div.jp-RenderedHTMLCommon ol li > ul li a code,\n",
"div.jp-RenderedHTMLCommon ol li > ol li a code {\n",
" font-size: .9em !important;\n",
" color: var(--link-color);\n",
"}\n",
"\n",
"div.jp-RenderedHTMLCommon ul ul ul {\n",
Expand Down Expand Up @@ -1314,7 +1315,7 @@
"\n",
"code, kbd, pre, samp {\n",
" font-family: var(--txbk-code-font-family) !important;\n",
" color: var(--txbk-ui-mono-color) !important;\n",
" color: var(--txbk-ui-mono-color);\n",
" font-weight: 400;\n",
" font-size: var(--txbk-ui-mono-font-size) !important;\n",
" line-height: var(--txbk-ui-mono-line-height) !important;\n",
Expand Down Expand Up @@ -1796,7 +1797,7 @@
"div.text_cell_render pre,\n",
"div.text_cell_render code {\n",
" font-size: 1em !important;\n",
" color: var(--code-text-color) !important; /* from */\n",
" color: var(--code-text-color) /* REMOVED useless important clause */\n",
"}\n",
"\n",
"/* Monospace Code - no code syntax highlight*/\n",
Expand Down Expand Up @@ -1939,6 +1940,7 @@
"div.text_cell_render ol li > ul li a code,\n",
"div.text_cell_render ol li > ol li a code {\n",
" font-size: .9em !important;\n",
" color: var(--link-color);\n",
"}\n",
"\n",
"div.text_cell_render ul ul ul {\n",
Expand Down Expand Up @@ -2152,16 +2154,21 @@
"\n",
"function customise_anchor_links_click() {\n",
" $(\"a\").on(\"click\", function (e) {\n",
" // Check if header toolbar is visible in the first place\n",
" if (this.hash !== \"\") {\n",
" const hash = this.hash; // full hash reference, if any (e.g. #numpy.arange)\n",
" if (hash !== \"\") { // check that this is an anchor link\n",
" // Remove any existing handler\n",
" $(this).unbind();\n",
" // Store hash\n",
" const hash = this.hash;\n",
" let t = $(hash);\n",
" // Get anchor (get rid of sharp symbol)\n",
" // and escape any invalid character for a JQuery selector\n",
" // e.g. numpy.arange ==> \"numpy\\.arange\"\n",
" const anchor = $.escapeSelector(hash.substr(1));\n",
" // Look for ID selector\n",
" let anchor_sel = \"#\"+anchor;\n",
" let t = $(anchor_sel);\n",
" if ((t === undefined) || (t.length === 0)) {\n",
" let anchor = hash.substr(1);\n",
" t = $(\"a[name='\" + anchor + \"'\");\n",
" // if not ID, look for a link name anchor\n",
" anchor_sel = \"a[name='\" + anchor + \"'\";\n",
" t = $(anchor_sel);\n",
" }\n",
" if ((t !== undefined) && (t.length > 0)) {\n",
" // Prevent default anchor click behavior\n",
Expand All @@ -2171,17 +2178,17 @@
" // The optional number (800) specifies the number of milliseconds\n",
" // it takes to scroll to the specified area\n",
" let header_height = $(\"#header\").height();\n",
" let offset = $(t).offset().top - header_height;\n",
" let scrollTopOffset = $(t).offset().top - header_height;\n",
"\n",
" /*\n",
" * FIX Scrolling Animation Freeze:\n",
" * https://stackoverflow.com/questions/18445590/jquery-animate-stop-scrolling-when-user-scrolls-manually\n",
" */\n",
" page.on(\"scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove\", function () {\n",
" page.stop();\n",
" page.stop(true); // clearQueue\n",
" });\n",
" page.animate({\n",
" scrollTop: offset\n",
" page.stop(true).animate({\n",
" scrollTop: scrollTopOffset\n",
" }, 800, function () {\n",
" page.off(\"scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove\");\n",
" });\n",
Expand Down Expand Up @@ -2226,13 +2233,15 @@
"source": [
"<span class=\"badges\">\n",
"\n",
"[![myBinder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/leriomaggio/pytorch-beautiful-ml-data/pydata-global?filepath=5_case_study/case_study_digital_pathology.ipynb)\n",
"[![myBinder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/leriomaggio/pytorch-beautiful-ml-data/pydata-global/?filepath=5_case_study/case_study_digital_pathology.ipynb)\n",
" \n",
"[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/leriomaggio/pytorch-beautiful-ml-data/blob/pydata-global/5_case_study/case_study_digital_pathology.ipynb)\n",
"\n",
"[![nbviewer](https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg)](https://nbviewer.jupyter.org/github/leriomaggio/pytorch-beautiful-ml-data/blob/pydata-global/5_case_study/case_study_digital_pathology.ipynb)\n",
"</span>\n",
"\n",
"<span class=\"fn\"><i>[Note]: </i> This notebook has been designed using the [$\\text{no}\\TeX\\text{book}$](https://github.com/leriomaggio/notexbook-jupyter-theme) Jupyter notebook theme. \n",
"Please **trust** the notebook to enable the theme, or **run the two cells above** $\\Uparrow$.</span>"
"<span class=\"fn\"><i>[Note]: </i> This notebook has been designed using the [$\\text{no}\\TeX\\text{book}$](https://github.com/leriomaggio/notexbook-jupyter-theme) Jupyter notebook theme. <br />\n",
"Please **Trust** the notebook to automatically enable the theme. If you are viewing this notebook in **Google Colab**, these are the [instructions](https://github.com/leriomaggio/notexbook-jupyter-theme/tree/texbook-colab) to enable the theme in Colab."
]
},
{
Expand Down Expand Up @@ -2373,7 +2382,27 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Using downloaded and verified file: ./case_study.zip\n",
"Downloading https://www.dropbox.com/s/6esdp47ilj1qefv/case_study.zip?dl=1 to ./case_study.zip\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e52804477b564f3b93009516a3dec7d6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(HTML(value=''), FloatProgress(value=1.0, bar_style='info', layout=Layout(width='20px'), max=1.0…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Extracting ./case_study.zip to .\n"
]
}
Expand Down
Loading

0 comments on commit 676d1f5

Please sign in to comment.