Coder Social home page Coder Social logo

streamlit-projects's Introduction

The Magic of Streamlit

The only way to truly understand how magical Streamlit is to play around with it. But if you need to be convinced first, then here is the 4 minute introduction to Streamlit!

Afterwards you can go to the Streamlit docs to get started. You might also visit Awesome Streamlit docs.

Introduction to Streamlit

I’ve been playing around with streamlit and I am extremely impressed by it.

It’s fast, responsive, and is very easy to get a grip on.In my opinion, working with streamlit is quite enjoyable. We can deploy our streamlit application on Heroku as well to show it to the world.

What files you need for deployment on heroku of a streamlit application?

There are four essential components required to launch your streamlit application on Heroku.

setup.sh, requirements.txt, Procfile, your_application.py

setup.sh — no credentials needed Note: You do not need to name this file exactly setup.sh, it can be anything however it needs to end with an .sh file extension. However, naming it setup.sh seems to be the norm.

mkdir -p ~/.streamlit/

echo "\
[general]\n\
email = \"[email protected]\"\n\
" > ~/.streamlit/credentials.toml

echo "\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
" > ~/.streamlit/config.toml

requirements.txt - This file essentially lists all the specific python plugins we will use in our streamlit application.

Procfile Note: Name this file as Procfile, do not put any extensions after it. It is a standard text file.

web: sh setup.sh && streamlit run your_application.py

And after this files, we can create a new heroku app by using Heroku CLI or pushing it to github and using it for share.streamlit.io.

share.streamlit.io needs only requirements.txt file and your_application.py file.(Thats' it)

Streamlit Apps:

These are some of the applications I built using streamlit with deployment links in the respective repos.

streamlit-projects's People

Contributors

krishnakaushik25 avatar

Stargazers

 avatar

Watchers

 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.