Skip to content

Instantly share code, notes, and snippets.

@nescobar
Created September 12, 2020 20:42
Show Gist options
  • Save nescobar/d55489476b5b0e65465fe05b37eeeb7e to your computer and use it in GitHub Desktop.
Save nescobar/d55489476b5b0e65465fe05b37eeeb7e to your computer and use it in GitHub Desktop.
# Maps dashboards to HTML files
dashboards = {
'Network Graph Dashboard' : 'network_graph'
}
# Get JSON response from HTTP export request
response = export_notebook(run_id)
# For each dashboard, get content and upload to S3
for view in response.get("views"):
upload_to_s3(view.get("name"), view.get("content"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment