title: Running an .ipynb file from Lambda function
body: <p>I'm New on AWS. I want to run a .ipynb file on Sagemaker notebook instance. I'm using runipy package on lambda to run a .ipynb file "/home/ec2-user/SageMaker/xxxxxxxxxx.ipynb" from Lambda function with s3 trigger but failed. 
  Can someone suggest how to run .ipynb file from labdda in anyways possible.</p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>[ERROR] FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/SageMaker/xxxxxxxx.ipynb' Traceback (most recent call last): File "/var/task/classifier.py", line 10, in lambda_handler notebook = read(open("/home/ec2-user/SageMaker/xxxxx.ipynb"), 'json')
  
  /var/task/IPython/nbformat.py:13: ShimWarning: The IPython.nbformat package has been deprecated since IPython 4.0. You should import from nbformat instead
  </code></pre>