I would like to import functions of a Jupyter notebook (ending .ipynb) into another Jupyter notebook.
Both notebooks are located in Google Drive in the same file. The notebook in which the functions of the other notebook should be imported, is already open in Google Colab.
Therefore I'm looking for a code snipped like
from xxx.ipynb import functionX
I have already installed the PyDrive wrapper and authenticated and created the PyDrive client like follows:
!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.authenticate_user()
gauth = GoogleAuth()
gauth.credentials = GoogleCredentials.get_application_default()
drive = GoogleDrive(gauth)