file uploader
from google.colab import files
files.upload()
install a library
!pip install -U -q PyDrive
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from google.colab import auth
from oauth2client.client import GoogleCredentials
# auth
auth.authenticate_user()
gauth = GoogleAuth()
gauth.credentials = GoogleCredentials.get_application_default()
drive = GoogleDrive(gauth)
id = 'file id'
downloaded = drive.CreateFile({'id': id})
downloaded.GetContentFile('input.jpg')
from IPython.display import Image
Image('input.jpg')
from google.colab import files
files.download()