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
9 changes: 9 additions & 0 deletions _templates/my_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
</span>
</button>

<button class="btn btn-sm" id="github-button" style="display: inline-block;"
data-bs-placement="bottom" data-bs-toggle="tooltip" title="Open on GitHub">
<span class="btn__icon-container">
<a id="github-link" href="https://github.com/OpenTPS/examples.git" target="_blank" style="color: inherit;">
<i class="fa-brands fa-github"></i>
</a>
</span>
</button>


<button onclick="toggleFullScreen()"
class="btn btn-sm btn-fullscreen-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_community/Template/run_template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/DICOMExample/create3DSeqFromDicom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/DICOMExample/create3DSeqFromImages.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/DICOMExample/crop3DDataAroundROI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/DICOMExample/exampleImageResampling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/DICOMExample/generateDRRAndGTVMasks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/DoseComputation/run_SimpleDoseCalculation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions auto_examples/PlanOptimization/run_4DProtonOptimization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setting up the environment in google collab\n First you need to change the type of execution in the bottom left from processor to GPU. Then you can run the example.\n\n"
"## Setting up the environment in google collab\n\n"
]
},
{
Expand All @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n get_ipython().system('pip install cupy-cuda12x')\n import opentps"
"import sys\nif \"google.colab\" in sys.modules:\n from IPython import get_ipython\n get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')\n get_ipython().system('pip install ./opentps')\n get_ipython().system('pip install scipy==1.10.1')\n import opentps"
]
},
{
Expand Down
Loading
Loading