Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions Python/01_Image_Basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@
"outputs": [],
"source": [
"# Setup to enable running the notebook in the Google Colab environment\n",
"import os\n",
"\n",
"if \"COLAB_NOTEBOOK_ID\" in os.environ:\n",
" !git clone https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"import numpy as np\n",
"import pandas as pd\n",
"\n",
"\n",
"%matplotlib widget\n",
"import gui\n",
"\n",
Expand Down
1 change: 0 additions & 1 deletion Python/71_Trust_But_Verify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"import matplotlib.pyplot as plt\n",
"import ipywidgets as widgets\n",
"\n",
"\n",
"# utility method that either downloads data from the Girder repository or\n",
"# if already downloaded returns the file name for reading from disk (cached data)\n",
"%run update_path_to_download_script\n",
Expand Down