Skip to content

Commit 1fbba8a

Browse files
committed
CLN remove cell - installing git-annex 8 on colab is hard
1 parent 930d497 commit 1fbba8a

3 files changed

Lines changed: 3 additions & 67 deletions

File tree

tutorials/notebooks/shortclips/00_setup_colab.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,7 @@
5151
},
5252
"outputs": [],
5353
"source": [
54-
"# !pip install -U --no-cache-dir gdown --pre\n# ![ -f \"vim-5-for-ccn.tar.gz\" ] || gdown --id 1b0I0Ytj06m6GCmfxfNrZuyF97fDo3NZb\n# ![ -d \"vim-5\" ] || tar xzf vim-5-for-ccn.tar.gz\n# !ln -s vim-5 shortclips\n# !apt-get install -qq inkscape > /dev/null\n# !pip install -q voxelwise_tutorials>=0.1.2\n# ![ -f \"ngrok-stable-linux-amd64.zip\" ] || wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip\n# ![ -f \"ngrok\" ] || unzip ngrok-stable-linux-amd64.zip"
55-
]
56-
},
57-
{
58-
"cell_type": "markdown",
59-
"metadata": {},
60-
"source": [
61-
"If downloading the data failed, you can try to download it manually, turning\n `if False` into `if True`, and running the following cell.\n\n"
62-
]
63-
},
64-
{
65-
"cell_type": "code",
66-
"execution_count": null,
67-
"metadata": {
68-
"collapsed": false
69-
},
70-
"outputs": [],
71-
"source": [
72-
"if False:\n from voxelwise_tutorials.io import get_data_home\n from voxelwise_tutorials.io import download_datalad\n\n for datafile in [\n \"features/motion_energy.hdf\", \"features/wordnet.hdf\",\n \"mappers/S01_mappers.hdf\", \"responses/S01_responses.hdf\",\n ]:\n local_filename = download_datalad(\n datafile, destination=get_data_home(dataset=\"shortclips\"),\n source=\"https://gin.g-node.org/gallantlab/shortclips\")"
54+
"# !pip install -U --no-cache-dir gdown --pre\n# ![ -f \"vim-5-for-ccn.tar.gz\" ] || gdown --id 1b0I0Ytj06m6GCmfxfNrZuyF97fDo3NZb\n# ![ -d \"vim-5\" ] || tar xzf vim-5-for-ccn.tar.gz\n# !ln -s vim-5 shortclips\n# !apt-get install -qq inkscape > /dev/null\n# !pip install -q voxelwise_tutorials==0.1.2\n# ![ -f \"ngrok-stable-linux-amd64.zip\" ] || wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip\n# ![ -f \"ngrok\" ] || unzip ngrok-stable-linux-amd64.zip"
7355
]
7456
},
7557
{

tutorials/notebooks/shortclips/merged_for_colab.ipynb

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -78,41 +78,11 @@
7878
"# ![ -d \"vim-5\" ] || tar xzf vim-5-for-ccn.tar.gz\n",
7979
"# !ln -s vim-5 shortclips\n",
8080
"# !apt-get install -qq inkscape > /dev/null\n",
81-
"# !pip install -q voxelwise_tutorials>=0.1.2\n",
81+
"# !pip install -q voxelwise_tutorials==0.1.2\n",
8282
"# ![ -f \"ngrok-stable-linux-amd64.zip\" ] || wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip\n",
8383
"# ![ -f \"ngrok\" ] || unzip ngrok-stable-linux-amd64.zip"
8484
]
8585
},
86-
{
87-
"cell_type": "markdown",
88-
"metadata": {},
89-
"source": [
90-
"If downloading the data failed, you can try to download it manually, turning\n",
91-
" `if False` into `if True`, and running the following cell.\n",
92-
"\n"
93-
]
94-
},
95-
{
96-
"cell_type": "code",
97-
"execution_count": null,
98-
"metadata": {
99-
"collapsed": false
100-
},
101-
"outputs": [],
102-
"source": [
103-
"if False:\n",
104-
" from voxelwise_tutorials.io import get_data_home\n",
105-
" from voxelwise_tutorials.io import download_datalad\n",
106-
"\n",
107-
" for datafile in [\n",
108-
" \"features/motion_energy.hdf\", \"features/wordnet.hdf\",\n",
109-
" \"mappers/S01_mappers.hdf\", \"responses/S01_responses.hdf\",\n",
110-
" ]:\n",
111-
" local_filename = download_datalad(\n",
112-
" datafile, destination=get_data_home(dataset=\"shortclips\"),\n",
113-
" source=\"https://gin.g-node.org/gallantlab/shortclips\")"
114-
]
115-
},
11686
{
11787
"cell_type": "markdown",
11888
"metadata": {},

tutorials/shortclips/00_setup_colab.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,10 @@
3030
# ![ -d "vim-5" ] || tar xzf vim-5-for-ccn.tar.gz
3131
# !ln -s vim-5 shortclips
3232
# !apt-get install -qq inkscape > /dev/null
33-
# !pip install -q voxelwise_tutorials>=0.1.2
33+
# !pip install -q voxelwise_tutorials==0.1.2
3434
# ![ -f "ngrok-stable-linux-amd64.zip" ] || wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
3535
# ![ -f "ngrok" ] || unzip ngrok-stable-linux-amd64.zip
3636

37-
###############################################################################
38-
# If downloading the data failed, you can try to download it manually, turning
39-
# `if False` into `if True`, and running the following cell.
40-
41-
if False:
42-
from voxelwise_tutorials.io import get_data_home
43-
from voxelwise_tutorials.io import download_datalad
44-
45-
for datafile in [
46-
"features/motion_energy.hdf", "features/wordnet.hdf",
47-
"mappers/S01_mappers.hdf", "responses/S01_responses.hdf",
48-
]:
49-
local_filename = download_datalad(
50-
datafile, destination=get_data_home(dataset="shortclips"),
51-
source="https://gin.g-node.org/gallantlab/shortclips")
52-
5337
###############################################################################
5438
# For the record, here is what each command does:
5539

0 commit comments

Comments
 (0)