Skip to content

Commit

Permalink
Added deps install for Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
jcohenadad committed Jan 10, 2024
1 parent 7589214 commit 1599d50
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions data_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,40 @@
"Slow processes are indicated with the emoji ⏳"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7b784c41",
"metadata": {},
"outputs": [],
"source": [
"# Install packages on system\n",
"# ℹ️ No need to run this cell if you run this notebook locally and already have these dependencies installed.\n",
"\n",
"!sudo apt-get update\n",
"!sudo apt-get install git-annex\n",
"\n",
"# Install Python libaries\n",
"!wget -O requirements.txt https://raw.githubusercontent.com/shimming-toolbox/rf-shimming-7t/main/requirements.txt\n",
"!pip install -r requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "90f76ac9",
"metadata": {},
"outputs": [],
"source": [
"# Install SCT\n",
"# ℹ️ No need to run this cell if you run this notebook locally and already have SCT installed.\n",
"\n",
"!git clone --depth 1 https://github.com/spinalcordtoolbox/spinalcordtoolbox.git\n",
"!yes | spinalcordtoolbox/install_sct\n",
"# Add SCT's binaries to environment PATH\n",
"os.environ['PATH'] += f\":/content/spinalcordtoolbox/bin\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 1599d50

Please sign in to comment.