Skip to content

Commit 071ada8

Browse files
committed
FIX update gdown to fix download issue in colab
1 parent 9d259c5 commit 071ada8

14 files changed

Lines changed: 48 additions & 24 deletions

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.ipynb -diff
1+
# *.ipynb -diff

tutorials/movies/00_setup_colab.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# Uncomment and run the following cell to download the tutorial data and
2626
# install the required dependencies.
2727

28+
# !pip install -U --no-cache-dir gdown --pre
2829
# ![ -f "vim-5-for-ccn.tar.gz" ] || gdown --id 1b0I0Ytj06m6GCmfxfNrZuyF97fDo3NZb
2930
# ![ -d "vim-5" ] || tar xzf vim-5-for-ccn.tar.gz
3031
# ![ -d "pycortex" ] || git clone --quiet https://github.com/gallantlab/pycortex
@@ -35,7 +36,8 @@
3536

3637
###############################################################################
3738
# For the record, here is what each command does:
38-
#
39+
40+
# - update gdown to get the latest fixes
3941
# - Download the dataset archive
4042
# - Extract the dataset archive
4143
# - Clone Pycortex to fix some filestore issues with Colab

tutorials/notebooks/movies/00_download_vim5.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"name": "python",
101101
"nbconvert_exporter": "python",
102102
"pygments_lexer": "ipython3",
103-
"version": "3.8.1"
103+
"version": "3.7.3"
104104
}
105105
},
106106
"nbformat": 4,

tutorials/notebooks/movies/00_setup_colab.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,25 @@
5151
},
5252
"outputs": [],
5353
"source": [
54-
"# ![ -f \"vim-5-for-ccn.tar.gz\" ] || gdown --id 1b0I0Ytj06m6GCmfxfNrZuyF97fDo3NZb\n# ![ -d \"vim-5\" ] || tar xzf vim-5-for-ccn.tar.gz\n# ![ -d \"pycortex\" ] || git clone --quiet https://github.com/gallantlab/pycortex\n# !apt-get install -qq inkscape > /dev/null\n# !pip install -q voxelwise_tutorials\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"
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# ![ -d \"pycortex\" ] || git clone --quiet https://github.com/gallantlab/pycortex\n# !apt-get install -qq inkscape > /dev/null\n# !pip install -q voxelwise_tutorials\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"
5555
]
5656
},
5757
{
5858
"cell_type": "markdown",
5959
"metadata": {},
6060
"source": [
61-
"For the record, here is what each command does:\n\n- Download the dataset archive\n- Extract the dataset archive\n- Clone Pycortex to fix some filestore issues with Colab\n- Install Inkscape, to use more features from Pycortex\n- Install the tutorial helper package, and all the required dependencies\n- Download ngrok to create a tunnel for pycortex 3D brain viewer\n- Extract the ngrok archive\n\n"
61+
"For the record, here is what each command does:\n\n"
62+
]
63+
},
64+
{
65+
"cell_type": "code",
66+
"execution_count": null,
67+
"metadata": {
68+
"collapsed": false
69+
},
70+
"outputs": [],
71+
"source": [
72+
"# - update gdown to get the latest fixes\n# - Download the dataset archive\n# - Extract the dataset archive\n# - Clone Pycortex to fix some filestore issues with Colab\n# - Install Inkscape, to use more features from Pycortex\n# - Install the tutorial helper package, and all the required dependencies\n# - Download ngrok to create a tunnel for pycortex 3D brain viewer\n# - Extract the ngrok archive"
6273
]
6374
},
6475
{
@@ -103,7 +114,7 @@
103114
"name": "python",
104115
"nbconvert_exporter": "python",
105116
"pygments_lexer": "ipython3",
106-
"version": "3.8.1"
117+
"version": "3.7.3"
107118
}
108119
},
109120
"nbformat": 4,

tutorials/notebooks/movies/01_plot_explainable_variance.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
"name": "python",
338338
"nbconvert_exporter": "python",
339339
"pygments_lexer": "ipython3",
340-
"version": "3.8.1"
340+
"version": "3.7.3"
341341
}
342342
},
343343
"nbformat": 4,

tutorials/notebooks/movies/02_plot_wordnet_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@
653653
"name": "python",
654654
"nbconvert_exporter": "python",
655655
"pygments_lexer": "ipython3",
656-
"version": "3.8.1"
656+
"version": "3.7.3"
657657
}
658658
},
659659
"nbformat": 4,

tutorials/notebooks/movies/03_plot_hemodynamic_response.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
"name": "python",
353353
"nbconvert_exporter": "python",
354354
"pygments_lexer": "ipython3",
355-
"version": "3.8.1"
355+
"version": "3.7.3"
356356
}
357357
},
358358
"nbformat": 4,

tutorials/notebooks/movies/04_plot_motion_energy_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
"name": "python",
342342
"nbconvert_exporter": "python",
343343
"pygments_lexer": "ipython3",
344-
"version": "3.8.1"
344+
"version": "3.7.3"
345345
}
346346
},
347347
"nbformat": 4,

tutorials/notebooks/movies/05_plot_banded_ridge_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@
510510
"name": "python",
511511
"nbconvert_exporter": "python",
512512
"pygments_lexer": "ipython3",
513-
"version": "3.8.1"
513+
"version": "3.7.3"
514514
}
515515
},
516516
"nbformat": 4,

tutorials/notebooks/movies/06_extract_motion_energy.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"name": "python",
137137
"nbconvert_exporter": "python",
138138
"pygments_lexer": "ipython3",
139-
"version": "3.8.1"
139+
"version": "3.7.3"
140140
}
141141
},
142142
"nbformat": 4,

0 commit comments

Comments
 (0)