Skip to content

Commit f76e166

Browse files
committed
ENH avoid redownloading data when restarting runtime
1 parent a090af5 commit f76e166

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

tutorials/movies_3T/00_load_colab.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# ---------------------------
1515
#
1616
# This tutorial is much faster when a GPU is available to run the computations.
17-
# In Google Colab you can request access to a GPU by changing the runtime type.
18-
# To do so, click the following menu options in Google Colab:
17+
# In Google Colab you can request access to a GPU by changing the runtime type.
18+
# To do so, click the following menu options in Google Colab:
1919
#
2020
# (Menu) "Runtime" -> "Change runtime type" -> "Hardware accelerator" -> "GPU".
2121

@@ -24,17 +24,18 @@
2424
# -------------------------------------------------------
2525
#
2626
# Uncomment and run the following cell to download the tutorial data and
27-
# install the required dependencies
27+
# install the required dependencies.
28+
29+
# ![ -f "vim-5-for-ccn.tar.gz" ] || gdown --id 1b0I0Ytj06m6GCmfxfNrZuyF97fDo3NZb
30+
# ![ -d "vim-5" ] || tar xzf vim-5-for-ccn.tar.gz
31+
# ![ -d "pycortex" ] || git clone https://github.com/gallantlab/pycortex
32+
# !pip install -q voxelwise_tutorials
2833

29-
# !gdown --id 1b0I0Ytj06m6GCmfxfNrZuyF97fDo3NZb && \
30-
# tar xzf vim-5-for-ccn.tar.gz && \
31-
# pip install -q voxelwise_tutorials && \
32-
# git clone https://github.com/gallantlab/pycortex
3334

3435
###############################################################################
35-
# Now run the following cell to set up the environment variables for the tutorials
36-
# and pycortex.
37-
36+
# Now run the following cell to set up the environment variables for the
37+
# tutorials and pycortex.
38+
3839
import os
3940
os.environ['VOXELWISE_TUTORIALS_DATA'] = "/content"
4041

0 commit comments

Comments
 (0)