The Wayback Machine - https://web.archive.org/web/20210225093109/http://github.com/streamlit/streamlit
Skip to content
develop
Switch branches/tags
Go to file
Code

Latest commit

* Refactor: remove "_proto" from "image_proto.py"

* Fix name collision of "image"

* Support "auto" as the new default for st.image's `use_column_width`

Spec from Thiago:

Without going so far as completely rethinking how we do sizes, the least we could do is change `use_column_width` to accept three values:

- `'auto'` : sets the image to its natural size, unless its width is greater than the column width. In which case it scales the image to fit the column width.
- `True` or `'always'`: sets the image size to fit the column width.
- `False` or `'never'`: sets the image to its natural size.

Then we'd make `'auto'` the default. (The current default is `False`)

* If `use_column_width` is not set, don't overwrite `width`

* Fix test typo

* Remove right margin on images

* Upload black square snapshots

* Fully remove support for `format` in st.image

Fixes #2627

* Remove showImageFormat option

* Update "last updated"

Co-authored-by: Ken McGrady <ken@streamlit.io>
2437421

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jan 21, 2021

README.md

Welcome to Streamlit 👋

Documentation Status

The fastest way to build and share data apps.

Streamlit lets you turn data scripts into sharable 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 free sharing platform to deploy, manage, and share your app with the world.

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

Streamlit for Teams

Streamlit for Teams is our enterprise solution for deploying, managing, sharing, and collaborating on your Streamlit apps. Streamlit for Teams provides secure single-click deploy, authentication, web editing, versioning, and much more. It is currently in closed beta, and you can join the wait-list here.

License

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