GithubHelp home page GithubHelp logo

isabella232 / cml_amp_streamlit_on_cml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudera/cml_amp_streamlit_on_cml

0.0 0.0 0.0 792 KB

Demonstration of how to use Streamlit as a CML Application.

License: Apache License 2.0

Python 100.00%

cml_amp_streamlit_on_cml's Introduction

Streamlit as a CML Application

The Streamlit logo

A minimal example of a Streamlit application running as a CML or CDSW Application. We display and chart a small dataset with Seaborn.

Repository Structure

.
├── cml                     # This folder contains scripts that facilitate the project launch on CML.
├── docs/images             # Storage for the images in this README.
├── .project-metadata.yaml  # Declarative specification of this project
├── app.py                  # The Streamlit app script.
├── LICENSE                 # This code has an Apache 2.0 License
├── README.md               # This file!
└── requirements.txt        # Python 3 package requirements.

Launching the project on CML

There are three ways to launch this project on CML:

  1. From Prototype Catalog - Navigate to the Prototype Catalog on a CML workspace, select the "Streamlit" tile, click "Launch as Project", click "Configure Project"
  2. 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"
  3. 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, using cml/launch_app.py as the script.

Using the app

Once the CML Application has been created (by any means), you can launch it from the Applications pane. This should open a browser window, with a Streamlit application running at a URL similar to streamlit.cdsw-or-cml.your-organisation.com.

If everything worked, you should see an application like this:

An image of the Streamlit application

To develop the Streamlit app, open a Python 3 workbench session and modify app.py.

cml_amp_streamlit_on_cml's People

Contributors

andrewrreed avatar cjwallace avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.