Skip to content

Commit 33e83fc

Browse files
committed
MNT update notebooks
1 parent 0f89e43 commit 33e83fc

12 files changed

Lines changed: 375 additions & 351 deletions

tutorials/notebooks/movies_3T/00_download_vim5.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# Download the data set from CRCNS\n\n\nIn this script, we download the data set from CRCNS. A (free) account is\nrequired.\n\n.. Warning:: The data has not been publicly released yet on CRCNS, so this\n notebook will not work ! You can download the data manually from `Google\n Drive\n <https://drive.google.com/drive/folders/1NuxO5_GHgDvjrL2FX5ohzAsvWpZuepIA?usp=sharing>`_,\n or run the tutorials from `Colab\n <https://colab.research.google.com/github/gallantlab/voxelwise_tutorials/blob/main/tutorials/notebooks/movies_3T/merged_for_colab.ipynb>`_\n\nCite this data set\n------------------\n\nThis tutorial is based on publicly available data `published on CRCNS\n<https://crcns.org/data-sets/vc/TBD>`_. If you publish any work using this data\nset, please cite the original publication [1]_, and the data set [2]_.\n"
18+
"\n# Download the data set from CRCNS\n\nIn this script, we download the data set from CRCNS. A (free) account is\nrequired.\n\n.. Warning:: The data has not been publicly released yet on CRCNS, so this\n notebook will not work ! You can download the data manually from `Google\n Drive\n <https://drive.google.com/drive/folders/1NuxO5_GHgDvjrL2FX5ohzAsvWpZuepIA?usp=sharing>`_,\n or run the tutorials from `Colab\n <https://colab.research.google.com/github/gallantlab/voxelwise_tutorials/blob/main/tutorials/notebooks/movies_3T/merged_for_colab.ipynb>`_\n\n## Cite this data set\n\nThis tutorial is based on publicly available data `published on CRCNS\n<https://crcns.org/data-sets/vc/TBD>`_. If you publish any work using this data\nset, please cite the original publication [1]_, and the data set [2]_.\n"
1919
]
2020
},
2121
{
@@ -33,7 +33,7 @@
3333
"cell_type": "markdown",
3434
"metadata": {},
3535
"source": [
36-
"Download\n--------\n\n"
36+
"## Download\n\n"
3737
]
3838
},
3939
{
@@ -80,7 +80,7 @@
8080
"cell_type": "markdown",
8181
"metadata": {},
8282
"source": [
83-
"References\n----------\n\n.. [1] Huth, A. G., Nishimoto, S., Vu, A. T., & Gallant, J. L. (2012). A\n continuous semantic space describes the representation of thousands of\n object and action categories across the human brain. Neuron, 76(6),\n 1210-1224.\n\n.. [2] Huth, A. G., Nishimoto, S., Vu, A. T., & Gallant, J. L. (2020):\n Gallant Lab Natural Movie 3T fMRI Data. CRCNS.org.\n http://dx.doi.org/10.6080/TBD\n\n"
83+
"## References\n\n.. [1] Huth, A. G., Nishimoto, S., Vu, A. T., & Gallant, J. L. (2012). A\n continuous semantic space describes the representation of thousands of\n object and action categories across the human brain. Neuron, 76(6),\n 1210-1224.\n\n.. [2] Huth, A. G., Nishimoto, S., Vu, A. T., & Gallant, J. L. (2020):\n Gallant Lab Natural Movie 3T fMRI Data. CRCNS.org.\n http://dx.doi.org/10.6080/TBD\n\n"
8484
]
8585
}
8686
],
@@ -100,7 +100,7 @@
100100
"name": "python",
101101
"nbconvert_exporter": "python",
102102
"pygments_lexer": "ipython3",
103-
"version": "3.7.3"
103+
"version": "3.8.3"
104104
}
105105
},
106106
"nbformat": 4,

tutorials/notebooks/movies_3T/00_load_colab.ipynb

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# Setup Google Colab\n\n\nIn this script, we setup a Google Colab environment. This script will only work\nwhen run from `Google Colab <https://colab.research.google.com/>`_). You can\nskip it if you run the tutorials on your machine.\n"
18+
"\n# Setup Google Colab\n\nIn this script, we setup a Google Colab environment. This script will only work\nwhen run from `Google Colab <https://colab.research.google.com/>`_). You can\nskip it if you run the tutorials on your machine.\n"
1919
]
2020
},
2121
{
@@ -33,14 +33,14 @@
3333
"cell_type": "markdown",
3434
"metadata": {},
3535
"source": [
36-
"Change runtime to use a GPU\n---------------------------\n\nThis tutorial is much faster when a GPU is available to run the computations:\n\n(Menu) \"Runtime\" -> \"Change runtime type\" -> \"Hardware accelerator\" -> \"GPU\".\n\n"
36+
"## Change runtime to use a GPU\n\nThis tutorial is much faster when a GPU is available to run the computations.\nIn Google Colab you can request access to a GPU by changing the runtime type. \nTo do so, click the following menu options in Google Colab: \n\n(Menu) \"Runtime\" -> \"Change runtime type\" -> \"Hardware accelerator\" -> \"GPU\".\n\n"
3737
]
3838
},
3939
{
4040
"cell_type": "markdown",
4141
"metadata": {},
4242
"source": [
43-
"Mount data with Google Drive\n----------------------------\n\nFirst, open the following Google Drive link:\nhttps://drive.google.com/drive/folders/1NuxO5_GHgDvjrL2FX5ohzAsvWpZuepIA\n\nThen, clic on the directory name (\"vim-5\"), and add a shortcut to your Drive\n(\"Add shortcut to Drive\").\n\nThen, mount Google Drive in Google Colab. To do so, run the following cell,\nand follow the instructions from Google to copy/paste the authorization code.\n\n"
43+
"## Mount data with Google Drive\n\nFirst, open the following Google Drive link:\nhttps://drive.google.com/drive/folders/1NuxO5_GHgDvjrL2FX5ohzAsvWpZuepIA\n\nThen, click on the directory name (\"vim-5\"), and add a shortcut to your Drive\n(\"Add shortcut to Drive\"). Place the shortcut in the main directory of your\nGoogle Drive. Do not place it in another folder, or you will have to change \nthe code to update the location of the dataset.\n\nFinally, mount Google Drive in Google Colab. To do so, run the following cell,\nand follow the instructions from Google to copy/paste the authorization code.\n\n"
4444
]
4545
},
4646
{
@@ -76,7 +76,7 @@
7676
"cell_type": "markdown",
7777
"metadata": {},
7878
"source": [
79-
"Then, tell the voxelwise_tutorials package where the data is.\n\n"
79+
"Tell the voxelwise_tutorials package where the data is. (If you placed the\nshortcut in a different location than the main directory of your Google\nDrive, change this code to point to the correct location.)\n\n"
8080
]
8181
},
8282
{
@@ -94,7 +94,7 @@
9494
"cell_type": "markdown",
9595
"metadata": {},
9696
"source": [
97-
"Install package helper\n----------------------\n\nFinally, install the tutorial helper package, by uncommenting and running\nthe install command.\n\n"
97+
"## Install package helper\n\nFinally, install the tutorial helper package, by uncommenting and running\nthe install command.\n\n"
9898
]
9999
},
100100
{
@@ -112,7 +112,7 @@
112112
"cell_type": "markdown",
113113
"metadata": {},
114114
"source": [
115-
"When using Colab, the install of pycortex might fail to locate the default\npycortex filestore. You can fix it by uncommenting and running the following:\n\n"
115+
"When using Colab, the install of pycortex might fail to locate the default\npycortex filestore. Uncomment and run the following line to fix it:\n\n"
116116
]
117117
},
118118
{
@@ -130,7 +130,7 @@
130130
"cell_type": "markdown",
131131
"metadata": {},
132132
"source": [
133-
"and changing the filestore path.\n\n"
133+
"Now change the pycortex filestore path.\n\n"
134134
]
135135
},
136136
{
@@ -143,6 +143,13 @@
143143
"source": [
144144
"import cortex\nfilestore = \"/content/pycortex/filestore/\"\ncortex.options.config['basic']['filestore'] = filestore\ncortex.options.config['webgl']['colormaps'] = \"/content/pycortex/filestore/colormaps\"\ncortex.database.db = cortex.database.Database(filestore)\ncortex.db = cortex.database.db\ncortex.utils.db = cortex.database.db\ncortex.dataset.braindata.db = cortex.database.db"
145145
]
146+
},
147+
{
148+
"cell_type": "markdown",
149+
"metadata": {},
150+
"source": [
151+
"Your Google Colab environment is now set up for the voxelwise tutorials.\n\n"
152+
]
146153
}
147154
],
148155
"metadata": {
@@ -161,7 +168,7 @@
161168
"name": "python",
162169
"nbconvert_exporter": "python",
163170
"pygments_lexer": "ipython3",
164-
"version": "3.7.3"
171+
"version": "3.8.3"
165172
}
166173
},
167174
"nbformat": 4,

0 commit comments

Comments
 (0)