title: How to import functions of a jupyter notebook into another jupyter notebook in Google Colab
body: <p>I would like to import functions of a Jupyter notebook (ending   .ipynb) into another Jupyter notebook.</p>
  
  <p>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.</p>
  
  <p>Therefore I'm looking for a code snipped like</p>
  
  <pre><code>from  xxx.ipynb  import functionX
  </code></pre>
  
  <p>I have already installed the PyDrive wrapper and authenticated and created the PyDrive client like follows:</p>
  
  <pre><code>!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)
  </code></pre>