Skip to content

Commit

Permalink
add quick tutorial on google drive <-> colab
Browse files Browse the repository at this point in the history
  • Loading branch information
Leander Thiele committed Aug 23, 2024
1 parent 33794e3 commit 5a2c30a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Hack/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Hack Resources

[data](https://drive.google.com/drive/u/1/folders/13ySEme-B8XDMYgTZ8_rVpMarRUUGYbTw)
[google drive for data](https://drive.google.com/drive/u/1/folders/13ySEme-B8XDMYgTZ8_rVpMarRUUGYbTw)

It is most straightforward to directly work with the above Google drive from colab,
since the files don't need to leave Google's servers in that case.
The way I figured out how to do this is as follows (there might be a better method):
1. open the above Google drive.
2. right-click on the file or folder you need.
3. click "Organize" -> "Add shortcut".
4. in "All locations", choose "My Drive" and click "Add".
5. in the colab instance, open the "Files" explorer on the left.
6. click "Mount Drive" icon.
7. you should be able to see the file now.
To switch the colab working directory to your drive, type:
``cd "/content/drive/MyDrive/"``

0 comments on commit 5a2c30a

Please sign in to comment.