{"id":25405300,"url":"https://github.com/dacort/jupyter-static-website","last_synced_at":"2026-04-28T08:02:06.233Z","repository":{"id":48670511,"uuid":"386078771","full_name":"dacort/jupyter-static-website","owner":"dacort","description":"A way to continuously deploy Jupyter notebooks to a static website backed by S3.","archived":false,"fork":false,"pushed_at":"2021-07-14T23:25:01.000Z","size":595,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T21:09:47.740Z","etag":null,"topics":["aws","cdk","codepipeline","jupyter"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dacort.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-14T21:17:36.000Z","updated_at":"2021-07-14T23:49:15.000Z","dependencies_parsed_at":"2022-08-27T07:31:49.150Z","dependency_job_id":null,"html_url":"https://github.com/dacort/jupyter-static-website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dacort/jupyter-static-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacort%2Fjupyter-static-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacort%2Fjupyter-static-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacort%2Fjupyter-static-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacort%2Fjupyter-static-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacort","download_url":"https://codeload.github.com/dacort/jupyter-static-website/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacort%2Fjupyter-static-website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cdk","codepipeline","jupyter"],"created_at":"2025-02-16T04:33:55.307Z","updated_at":"2026-04-28T08:02:06.195Z","avatar_url":"https://github.com/dacort.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Automatic Jupyter Notebook Deployer\n\nAfter I re-joined the EMR team in Jan 2021, I've been doing a lot more work in Jupyter notebooks. \n\nI wanted a simple, elegant, and low-effort way to share those notebooks with the world, so I put together a continuous deployment notebook pipeline that can publish notebooks in a git repository to an S3-backed static website.\n\n## Overview\n\nThis solution is based entirely on AWS services including CodeCommit, CodePipeline, CodeBuild, CodeCeploy, and CloudFront. 😅\n\n![](jupyter_cd.png)\n\n## Deploying\n\n**Make sure you have CDK and Python \u003e= 3.9 installed.**\n\nThis project is a two-phased deploy due to the fact that CloudFront certificates need to be in `us-east-1`. If you _do not_ need a custom domain, you can skip the first part.\n\n### Part 1 - CloudFront Certificate\n\nThis project only supports using the default CloudFront certificate and a DNS-validated CNAME. In order to generate the certificate, you'll need to run the command below, go into the AWS console and make sure you follow the validation instructions.\n\n```shell\ncdk deploy CloudfrontCertificateStack -c domain_name=notebooks.example.com\n```\n\nOne of the outputs from this stack will be `CloudfrontCertificateStack.certificatearn` - you'll need the value of this for the next phase.\n\n### Part 2 - Jupyter CD Pipeline\n\n_If you are not using a custom domain, you can omit both of the `-c` options below._\n\nFirst, make sure you bootstrap your AWS environment.\n\n```shell\ncdk bootstrap aws://ACCOUNT-NUMBER-1/REGION-1\n```\n\nOnce you do that, you can deploy the stack.\n\n```shell\ncdk deploy EmrStudioPublisherStack -c domain_name=notebooks.example.com -c certificate_arn=arn:aws:acm:us-east-1:012345678912:certificate/f07b01a4-3e8c-4639-8a22-b7a20a832de3\n```\n\nOnce this stack finishes, you should have a CodeCommit repository you can make changes to, a CloudFront distribution (the URL of which can be found in the `EmrStudioPublisherStack.cloudfrontendpoint` output), and a publicly accessible URL that has a pre-populated example site.\n\n## Usage\n\nUsage is pretty straight-forward. `git clone` the repository, make a change, and push it back up! \n\nAny new notebooks added in the `docs/notebooks/` directory will automatically be published. \n\nYou can add links to the notebooks by updating the `nav` section of the `mkdocs.yml` file. \n\n### Advanced Usage\n\nNote that not _all_ images or libraries render nicely when converting to HTML. This is why, for example, in my plotly example I had to use `fig.show(renderer=\"jupyterlab\")`\n\n## References\n\n- https://medium.com/andy-le/building-a-dynamic-aws-pipeline-with-cdk-5d5426fc0493\n- https://binarythinktank.com/blog/static-site-deployment-cdk-aws","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacort%2Fjupyter-static-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacort%2Fjupyter-static-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacort%2Fjupyter-static-website/lists"}