Created
September 12, 2020 20:42
-
-
Save nescobar/d55489476b5b0e65465fe05b37eeeb7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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