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
4 changes: 2 additions & 2 deletions Python/01_Image_Basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"SimpleITK-Notebooks\")\n",
" repo_dir = pathlib.Path(\"/content/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",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
Expand Down
17 changes: 12 additions & 5 deletions Python/02_Pythonic_Image.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/03_Image_Details.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/04_Image_Display.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/05_Results_Visualization.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/10_matplotlibs_imshow.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/11_Progress.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/20_Expand_With_Interpolators.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/21_Transforms_and_Resampling.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/22_Transforms.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/300_Segmentation_Overview.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/30_Segmentation_Region_Growing.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/31_Levelset_Segmentation.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/32_Watersheds_Segmentation.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/33_Segmentation_Thresholding_Edge_Detection.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
17 changes: 12 additions & 5 deletions Python/34_Segmentation_Evaluation.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",
" %cd SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt"
"try:\n",
" import google.colab\n",
" import pathlib\n",
"\n",
" repo_dir = pathlib.Path(\"/content/SimpleITK-Notebooks\")\n",
" if not repo_dir.exists():\n",
" !git clone --depth 1 https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks\n",
" %cd /content/SimpleITK-Notebooks/Python\n",
" !pip install -q -r requirements.txt\n",
"\n",
"except ImportError:\n",
" pass # not on Colab"
]
},
{
Expand Down
Loading
Loading