{"id":22429856,"url":"https://github.com/bergam0t/quarto_streamlit_community_cloud","last_synced_at":"2026-05-02T14:37:17.009Z","repository":{"id":266320163,"uuid":"898021548","full_name":"Bergam0t/quarto_streamlit_community_cloud","owner":"Bergam0t","description":"An example repository demonstrating how Quarto could be installed on Streamlit community cloud, allowing you to generate and download Quarto reports from your hosted Streamlit app","archived":false,"fork":false,"pushed_at":"2024-12-03T17:30:37.000Z","size":345,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T07:13:41.857Z","etag":null,"topics":["quarto","streamlit","streamlit-cloud"],"latest_commit_sha":null,"homepage":"https://quarto-community-cloud.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bergam0t.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-03T16:42:28.000Z","updated_at":"2025-01-15T13:45:27.000Z","dependencies_parsed_at":"2024-12-03T17:51:03.913Z","dependency_job_id":"37a0e72a-6f19-49b7-ab8a-ca18b7596327","html_url":"https://github.com/Bergam0t/quarto_streamlit_community_cloud","commit_stats":null,"previous_names":["hsma-programme/quarto_streamlit_community_cloud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bergam0t%2Fquarto_streamlit_community_cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bergam0t%2Fquarto_streamlit_community_cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bergam0t%2Fquarto_streamlit_community_cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bergam0t%2Fquarto_streamlit_community_cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bergam0t","download_url":"https://codeload.github.com/Bergam0t/quarto_streamlit_community_cloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798359,"owners_count":20673902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["quarto","streamlit","streamlit-cloud"],"created_at":"2024-12-05T21:05:58.817Z","updated_at":"2026-05-02T14:37:17.001Z","avatar_url":"https://github.com/Bergam0t.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Repository demonstrating how Quarto can be installed on a Streamlit community cloud instance and used for generation of downloadable reports based on inputs or things that run on the community cloud.\n\nBased off work done [here](https://github.com/Bergam0t/Project_Toy_MECC) - the commit history of this repo may prove useful if trying to refactor or alter approach as there is a lot there about what *didn't* work.\n\nCode for generation of a Quarto report by first saving user inputs to a JSON: credit to [Dom Rowney](https://github.com/DomRowney), Luke Herbert and Sam Vautier for their work on generating a Quarto report for the [Toy MECC app](https://github.com/DomRowney/Project_Toy_MECC).\n\n## Key learnings from this process\n\n- quarto/quarto-cli not available as standard package so unable to install via adding to packages.txt\n\n- as we don't have admin rights on streamlit community cloud server, we can't download the deb package and install with sudo dpkg -i (and running without sudo fails)\n\n- by installing wget in packages.txt we can then download the quarto tarball and unzip that - but need to ensure it is either extracted to someone on PATH, or its location is added to PATH, so it is found\n\n## Other notes\n\nKey parts of process are\n- adding wget to packages.txt\n- using the get_quarto function defined in app.py (with streamlit caching so that it doesn't try to run it on every page load as it's quite slow!)\n\nIf you use\n```\nif platform.processor() == '':\n    get_quarto(\"quarto_streamlit_community_cloud\") # This name must match the repository name on GitHub\n```\n\nThen it will only try and download quarto if it's running on community cloud as opposed to your local machine.\n\nWhen you are using/testing on your local machine, it should find and use Quarto if it's part of your PATH - I haven't tested that with anything non-Windows (seem to recall you're on mac?) but I think the principle should be broadly the same across OSs.\n\nI haven't tested it on anything newer than streamlit 1.37 but hopefully still works with newer versions - and the sample app I put up at the time still seems to be working correctly on community cloud so they don't seem to have blocked any of the workarounds I used... (as of 12/5/25) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbergam0t%2Fquarto_streamlit_community_cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbergam0t%2Fquarto_streamlit_community_cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbergam0t%2Fquarto_streamlit_community_cloud/lists"}