{"id":18777402,"url":"https://github.com/cloudera/cml_amp_streamlit_on_cml","last_synced_at":"2025-04-13T10:31:50.354Z","repository":{"id":40976732,"uuid":"357966184","full_name":"cloudera/CML_AMP_Streamlit_on_CML","owner":"cloudera","description":"Demonstration of how to use Streamlit as a CML Application.","archived":false,"fork":false,"pushed_at":"2024-12-05T17:38:55.000Z","size":445,"stargazers_count":7,"open_issues_count":0,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-05T21:56:05.537Z","etag":null,"topics":["applications","data-visualization","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-04-14T16:08:45.000Z","updated_at":"2025-03-19T12:38:41.000Z","dependencies_parsed_at":"2024-11-12T07:35:07.936Z","dependency_job_id":null,"html_url":"https://github.com/cloudera/CML_AMP_Streamlit_on_CML","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudera%2FCML_AMP_Streamlit_on_CML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudera%2FCML_AMP_Streamlit_on_CML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudera%2FCML_AMP_Streamlit_on_CML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudera%2FCML_AMP_Streamlit_on_CML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudera","download_url":"https://codeload.github.com/cloudera/CML_AMP_Streamlit_on_CML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248698967,"owners_count":21147565,"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":["applications","data-visualization","streamlit"],"created_at":"2024-11-07T20:10:32.292Z","updated_at":"2025-04-13T10:31:45.914Z","avatar_url":"https://github.com/cloudera.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamlit as a CML Application\n\n![The Streamlit logo](docs/images/streamlit-logo.png)\n\nA minimal example of a [Streamlit](https://www.streamlit.io/) application running as a CML or CDSW Application.\nWe display and chart a small dataset with Seaborn.\n\n## Repository Structure\n\n```bash\n.\n├── cml                     # This folder contains scripts that facilitate the project launch on CML.\n├── docs/images             # Storage for the images in this README.\n├── .project-metadata.yaml  # Declarative specification of this project\n├── app.py                  # The Streamlit app script.\n├── LICENSE                 # This code has an Apache 2.0 License\n├── README.md               # This file!\n└── requirements.txt        # Python 3 package requirements.\n```\n\n## Launching the project on CML\n\nThere are three ways to launch this project on CML:\n\n1. **From Prototype Catalog** - Navigate to the Prototype Catalog on a CML workspace, select the \"Streamlit\" tile, click \"Launch as Project\", click \"Configure Project\"\n2. **As ML Prototype** - In a CML workspace, click \"New Project\", add a Project Name, select \"ML Prototype\" as the Initial Setup option, copy in the repo URL, click \"Create Project\", click \"Configure Project\"\n3. **Manual Setup** - In a CML workspace, click \"New Project\", add a Project Name, select \"Git\" as the Initial Setup option, copy in the repo URL, click \"Create Project\". Launch a Python 3 Workbench Session and run `!pip3 install -r requirements.txt` to install requirements. Then create a CML Application as described in the [CML documentation](https://docs.cloudera.com/machine-learning/1.1/applications/topics/ml-applications.html), using `cml/launch_app.py` as the script.\n\n## Using the app\n\nOnce the CML Application has been created (by any means), you can launch it from the Applications pane.\nThis should open a browser window, with a Streamlit application running at a URL\nsimilar to `streamlit.cdsw-or-cml.your-organisation.com`.\n\nIf everything worked, you should see an application like this:\n\n![An image of the Streamlit application](docs/images/streamlit-amp-screenshot.png)\n\nTo develop the Streamlit app, open a Python 3 workbench session and modify `app.py`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudera%2Fcml_amp_streamlit_on_cml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudera%2Fcml_amp_streamlit_on_cml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudera%2Fcml_amp_streamlit_on_cml/lists"}