𝔖 Scriptorium
✦   LIBER   ✦

📁

Beginner's Guide to Streamlit with Python: Build Web-Based Data and Machine Learning Applications

✍ Scribed by Sujay Raghavendra


Publisher
Apress
Year
2022
Tongue
English
Leaves
215
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


This book will teach you the basics of Streamlit, a Python-based application framework used to build interactive dashboards and machine learning web apps. Streamlit reduces development time for web-based application prototypes of data and machine learning models. As you’ll see, Streamlit helps develop data-enhanced analytics, build dynamic user experiences, and showcases data for data science and machine learning models.

Beginner's Guide to Streamlit with Python begins with the basics of Streamlit by demonstrating how to build a basic application and advances to visualization techniques and their features. Next, it covers the various aspects of a typical Streamlit web application, and explains how to manage flow control and status elements. You’ll also explore performance optimization techniques necessary for data modules in a Streamlit application. Following this, you’ll see how to deploy Streamlit applications on various platforms. The book concludes with a few prototype natural language processing apps with computer vision implemented using Streamlit.

After reading this book, you will understand the concepts, functionalities, and performance of Streamlit, and be able to develop dynamic Streamlit web-based data and machine learning applications of your own.

What You Will Learn

  • How to start developing web applications using Streamlit
  • What are Streamlit's components
  • Media elements in Streamlit
  • How to visualize data using various interactive and dynamic Python libraries
  • How to implement models in Streamlit web applications


Who This Book Is ForProfessionals working in data science and machine learning domains who want to showcase and deploy their work in a web application with no prior knowledge of web development.

✦ Table of Contents


Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Introduction to Streamlit
What Is Streamlit?
Why Streamlit?
Why Streamlit for Data Science and ML Engineers?
Features of Streamlit
Open Source
Platforms
Ease of Development
Interactive Applications
Reduced Time of Development
No Core Web Development Knowledge
Easy to Learn
Model Implementation
Compatibility
Literate Programming Document
Streamlit Cloud
Optimize Change
Error Notifications
Comparing Streamlit to  Alternative Frameworks
Installing Python
Installing Streamlit on Windows
Installing Streamlit on Linux
Installing Streamlit on macOS
Testing the Streamlit Installation
Creating Our First App
Summary
Chapter 2: Text and Table Elements
Text Elements
Titles
Headers
Subheaders
Captions
Plain Text
Markdown
LaTeX
Code
Data Elements
Dataframes
Tables
Metrics
JSON
The write() Function as a Superfunction
Magic
Summary
Chapter 3: Visualization
The Importance of Visualization
Visualization in Streamlit
Purpose of Visualization
Streamlit Functions
Bar
Line
Area
Map
Graphviz
Seaborn
Count
Violin
Strip
Altair
Boxplot
Area
Heatmap
Plotly
Pie
Donut
Scatter
Line
Bar
Bar Horizontal
Subplots
Summary
Chapter 4: Data and Media Elements
Images
Multiple Images
Background Image
Resizing an Image
Audio
Video
Balloon
Snowflake
Emojis
Summary
Chapter 5: Buttons and Sliders
Buttons
Radio Buttons
Check Boxes
Drop-Downs
Multiselects
Download Buttons
Progress Bars
Spinners
Summary
Chapter 6: Forms
Text Box
Text Area
Number Input
Time
Date
Color
File Upload
Text/Docx Document
PDF Upload
Dataset Upload
Image Upload
Uploading Multiple Images
Saving Uploaded Documents
Submit Button
Summary
Chapter 7: Columns and Navigation
Columns
Spaced-Out Columns
Columns with Padding
Grids
Expanders/Accordions
Containers
Empty Containers
Sidebars
Multipage Navigation
Main Page
Pages
Summary
Chapter 8: Control Flow and Advanced Features
Alert Box
st.info()
st.warning()
st.success()
st.error()
st.exception()
Control Flow
Stop Execution
Rerun the Script
st.form_submit_button
Advanced Features
Configuring the Page
st.echo
st.experimental_show
Session State
Performance
Caching
st.experimental_memo
st.experimental_memo.clear()
st.experimental_singleton
st.experimental_singleton.clear
Summary
Chapter 9: Natural Language Processing
NLP App Creation
User Input
Cleaning the Text
Predictions
Setting Up Files
Requirement Text
setup.sh
Procfile
GitHub Repository Creation
Heroku
Deployment
Summary
Chapter 10: Computer Vision in Streamlit
Installing Libraries
Model Deployment
Upload Image
Map Image Classes
Apply Imaging Techniques
Model Preprocessing
Predictions
Complete Code
Index


📜 SIMILAR VOLUMES


Web Development with Django: Learn to bu
✍ Ben Shaw, Saurabh Badhwar, Andrew Bird, Bharath Chandra K S, Chris Guest 📂 Library 📅 2021 🏛 Packt Publishing 🌐 English

<p><b>Learn how to create your own websites simply, safely, and quickly with Django by tackling practical activities based on realistic case studies</b></p><h4>Key Features</h4><ul><li>Understand Django functionality and the Model-View-Template (MVT) paradigm</li><li>Create and iteratively build a b

Web Development with Django: Learn to bu
✍ Ben Shaw, Saurabh Badhwar, Andrew Bird, Bharath Chandra K S, Chris Guest 📂 Library 📅 2021 🏛 Packt Publishing 🌐 English

<p><b>Learn how to create your own websites simply, safely, and quickly with Django by tackling practical activities based on realistic case studies</b></p><h4>Key Features</h4><ul><li>Understand Django functionality and the Model-View-Template (MVT) paradigm</li><li>Create and iteratively build a b

Introduction to Machine Learning with Py
✍ Nedal, Daniel;Morgan, Peters 📂 Library 📅 2018 🏛 Createspace Independent Publishing Platform;AI Sci 🌐 English

******Free eBook for customers who purchase the print book from Amazon****** Are you thinking of learning more about Machine Learning using Python? This book would seek to explain common terms and algorithms in an intuitive way. The author used a progressive approach whereby we start out slowly and

Python for Absolute Beginners: The Ultim
✍ Akubue, Bona 📂 Library 📅 2024 🏛 NanoEdge International Ltd 🌐 English

If you are fortunate enough to have this book as your first Python book, then this is likely the only book you will ever need to master programming in Python. It is a three-in-one book. The first part of the book is dedicated to introducing you to the fundamentals of Python programming. The