title: How do you import a .txt (or other file type) into a Google Colab notebook directly from your own Drive?
body: <p>I'm trying to import a couple .txt files into Colab from my own Google Drive. The colab notebook I'm using is in the same folder as the files I want to upload within that notebook. While there is documentation on file I/O on <a href="https://colab.research.google.com/notebooks/io.ipynb" rel="nofollow noreferrer">External data: Local Files, Drive, Sheets, and Cloud Storage</a> within Colab, the descriptions do not seem to fit what I'm looking for (e.g. I could upload these files directly from my local directory each time I use the notebook, but instead, I would like to have a cell written that loads them once and keeps them loaded via a connection to my own Drive). Also, the .txt files I want to upload contain samples of plain text to use for training a deep learning algorithm on sentiment analysis, and thus does not appear to be convertable to a .csv for functionally equivalent application (which might be solved by Google Sheets).</p>
  
  <p>From <a href="https://colab.research.google.com/notebooks/io.ipynb" rel="nofollow noreferrer">External data: Local Files, Drive, Sheets, and Cloud Storage</a>, the options are 1) uploading from a local directory, 2) mounting to Drive locally/using an API, or 3) importing from Google Sheets or Google Cloud Storage. Of these, I have tried 1 and some of 2, but because I am still relatively new to Python and Colab, the documentation of 2 and 3 are confusing and do not clearly direct me to a solution. Thus, it is possible that my problem is an interpretation problem, in which case showing how 2/3 could solve it would be quite helpful.</p>
  
  <p>I'm thinking it should be possible to refer to these .txt files within Colab since both the colab notebook and .txt files are in the same Drive folder, but perhaps I'm overly comparing the cell functionality of Colab with navigating files in a directory in your everyday terminal.</p>