Skip to content

streamlit/streamlit

develop
Switch branches/tags
Code

Latest commit

* Update notification colors

* Remove snapshots

* Update snapshots

* Add back missing snapshots

* Fix linting errors

* Update tests removing unused border check

* Remove unused import

* WIP: Basic support for icon parameter

* Add emoji validation to icon parameter

* Better regex validation

* Use EmojiIcon component instead of markdown

* Move regex pattern to string_utils file

* Use None as the default value for icon

* Update streamlitException layout

* Add pythong tests

* Add python tests

* Add JS tests

* Update e2e scripts

* Add newline after function

* Run linter

* Delete alert snapshots

* Add back alert snapshots

* Fix linting errors

* Refactor lib files to comply with type checking

* Add back hello snapshots

* Remove e2e tests for icon alerts as emojis arent rendering as expected

* Fix linting errors

* Update js tests

* Move new colors to lightTheme instead of overriding the base ones

* Move Format definition above in proto

* Move import above type checking

* Replace shortcodes in docstring with emojis

* Order imports alphabetically

* Remove check_emoji function and merge it with validate_emoji

* Use new validation method for emoji check

* Check emoji in separate function

* Remove hello snapshots

* Fix linting

* Remove old function call and add optional type checking

* Update warning color to enhance accessibility

* Remove light mode snapshot

* Update tests to use valid emojis

* Add some snapshots, remove others

* Update tests

* Add back snapshots

* Remove unnecessary imports

* Add more tests for validate_emoji and make some small cleanup changes

* Remove snapshots

* Update light and dark colors for callouts

* Remove unused import

* Update test

* Add some snapshots and remove others

* Add last batch of snapshots

Co-authored-by: Juan Martin Garcia <juan.garcia@snowflake.com>
Co-authored-by: Vincent Donato <vincent@streamlit.io>
f309c6e

Git stats

Files

Permalink
Failed to load latest commit information.

Welcome to Streamlit 👋

The fastest way to build and share data apps.

Streamlit lets you turn data scripts into shareable web apps in minutes, not weeks. It’s all Python, open-source, and free! And once you’ve created an app you can use our cloud platform to deploy, manage, and share your app!

Example of live coding an app in Streamlit|635x380

Installation

pip install streamlit
streamlit hello

Streamlit can also be installed in a virtual environment on Windows, Mac, and Linux.

A little example

Streamlit makes it incredibly easy to build interactive apps:

import streamlit as st

x = st.slider('Select a value')
st.write(x, 'squared is', x * x)

A bigger example

Streamlit's simple and focused API lets you build incredibly rich and powerful tools.  This demo project lets you browse the entire Udacity self-driving-car dataset and run inference in real-time using the YOLO object detection net.

Final App Animation

The complete demo is implemented in less than 300 lines of Python. In fact, the app contains only 23 Streamlit calls which illustrates all the major building blocks of Streamlit. You can try it right now at share.streamlit.io/streamlit/demo-self-driving.

The Streamlit GitHub badge

Streamlit's GitHub badge helps others find and play with your Streamlit app.

Streamlit App

Once you deploy your app, you can embed this badge right into your GitHub readme.md as follows:

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/yourGitHubName/yourRepo/yourApp/)

More Information

Community Cloud

With Community Cloud you can deploy, manage, and share your apps with the world, directly from Streamlit — all for free. Sign-up here.

License

Streamlit is completely free and open-source and licensed under the Apache 2.0 license.