Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Web App Development Made Simple with Streamlit

You're reading from  Web App Development Made Simple with Streamlit

Product type Book
Published in Feb 2024
Publisher Packt
ISBN-13 9781835086315
Pages 350 pages
Edition 1st Edition
Languages
Author (1):
Rosario Moscato Rosario Moscato
Profile icon Rosario Moscato

Table of Contents (23) Chapters

Preface 1. Part 1: Getting Started with Streamlit
2. Chapter 1: Getting to Know Streamlit – A Brief Overview 3. Chapter 2: Setting Up the Python Coding Environment 4. Chapter 3: Exploring Streamlit’s Features and Functionality 5. Part 2: Building a Basic Web App for Essential Streamlit Skills
6. Chapter 4: Streamlit Essentials – Configuring the Environment, Managing Packages, and More 7. Chapter 5: Organizing and Displaying Content with Columns, Expanders, and NLP Techniques 8. Chapter 6: Implementing NLP Techniques for Text Analysis and Processing in Streamlit 9. Chapter 7: Sharing and Deploying Your Apps on the Cloud Using Streamlit Share 10. Part 3: Developing Advanced Skills with a Covid-19 Detection Tool
11. Chapter 8: Advanced Environment Setup and Package Management for Building an AI-Powered Web App 12. Chapter 9: Optimizing Streamlit Web App UX with Customization and UI Features 13. Chapter 10: Utilizing Pretrained Models to Create Specialized and Personalized Web Applications 14. Chapter 11: Deploying and Managing Complex Libraries on Streamlit Share 15. Part 4: Advanced Techniques for Secure and Customizable Web Applications
16. Chapter 12: Smart File Uploading – Advanced Techniques for Professional Web Applications 17. Chapter 13: Creating a Secure Login and Signup Process for Web Applications 18. Chapter 14: Customizing Pages, Personalizing Themes, and Implementing Multi-Pages 19. Chapter 15: Enhancing Web Apps with Forms, Session State, and Customizable Subdomains 20. Chapter 16: Takeaways and Conclusion 21. Index 22. Other Books You May Enjoy

Understanding new features related to deep customization

For this chapter, no new packages are needed – all we need is Streamlit. Let’s start by creating a new empty Python file; as usual, you can call it app.py. Then, open the IDE. We can start coding by just importing streamlit and adding a title both in the sidebar and in the main part of the web application, as shown in Figure 14.1:

Figure 14.1: The starting code

Figure 14.1: The starting code

Launching the application opens the browser on localhost at port 8501 and, as usual, we get something like this:

Figure 14.2: The starting web app

Figure 14.2: The starting web app

This is very simple: we get the same title in the sidebar and the main part of the web app. Taking a closer look, we can find some very interesting elements that can be customized:

Figure 14.3: App title and icon, footer, and menu

Figure 14.3: App title and icon, footer, and menu

In Figure 14.3, we have the following:

  • In red, we can see the title and icon of our web...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}