draskell / flask_papermill

Flask server to do papermill jobs.
0 stars 0 forks source link

flask_papermill

Experimentation with a Flask server to do papermill jobs. This app will act like a blog to allow users to add jupyter notebooks and provide functionality to run them with papermill.

Environment Variables:

Mail

These environment variables allow the system to send alerts to users and administrators.

S3

These credentials are used by papermill to gain access to the AWS S3 bucket where notebooks and output can be stored. You can either specify these environment variables or have a ~/.aws/credentials file which has the credentials. Papermill just uses the boto3 package, so you can consult the boto3 credentialing documentation for more info.

FLask

Some feature ideas:

  1. S3 support to save notebook results to S3 and generate presigned urls to let AWS render the result to the user.
  2. Host or publish result notebookss with binder or commuter.
  3. Add YAML validation for notebook parameters with Bravado.

Inspired by this post and associated talks at PyCon 2019.