-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolab_mounting.txt
23 lines (17 loc) · 991 Bytes
/
colab_mounting.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Mount Google Drive:
>>> from google.colab import drive
>>> drive.mount('/content/gdrive')
Update Drive Path:
>>> import sys
>>> sys.path.append('/content/gdrive/My Drive')
If there is a direct child in My Drive named x.py, you may import it with:
>>> import x
The appended system path can be set to any directory in the Google Drive folders, which will be the workspace.
To pass the authentication, make sure the following:
- Direct children (files/folders) to my drive should be as few as possible
- Empty the trash
- Authentication code should be copied by selecting the text manually from the popped out browser tab. Coping by clicking the "copy" button might result in timeout.
--------------------------------------------------------------------------------
Reference: https://colab.research.google.com/drive/1uvHuizCBqFgvbCwEhK7FvU8JW0AfxgJw#scrollTo=psH0aLrvoh78
As created on 2020.9.6, last modified on 2020.9.6
(Refer to the above dates instead of the ones in commit log)