How to Build a Streamlit App (Beginner level Streamlit tutorial) - Part 1

  Рет қаралды 118,682

Mısra Turp

Mısra Turp

Күн бұрын

►► Download the Streamlit project template to get going in no time - misraturp.gumr...
Streamlit is an awesome tool I recently used at work. It makes building a front-end for your project extremely easy. In this video, I walk you through setting up Streamlit and structuring the application into containers.
Prefer to read this? Go to www.misraturp....
Data I use is from NYC Open Data - www1.nyc.gov/s...
-----
👇Learn how to complete your first real-world data science project
Hands-on Data Science: Complete Your First Portfolio Project
www.misraturp....
🐼 All you need to know about Pandas in one place! Download my Pandas Cheat Sheet (free) - misraturp.gumr...
-----
👋 Keep in touch?
==========================
🐥 Twitter - / misraturp
🔗 LinkedIn - / misraturp
📹 KZbin - / @misraturp
🌎 Website - misraturp.com/
Courses & resources
============================
📙 Fundamentals of Deep Learning in 25 pages
misraturp.gumr...
👩‍💻 Hands-on Data Science: Complete your first portfolio project
www.misraturp....
📥 Streamlit template
misraturp.gumr...
🤖 Deep Learning 101 with Python and Keras (FREE)
• 50 Days of Deep Learning
🏃‍♀️ Data Science Kick-starter mini-course (FREE)
misraturp.gumr...
🐼 Pandas cheat sheet (FREE)
misraturp.gumr...
📝 NNs hyperparameters cheat sheet (FREE)
misraturp.gumr...

Пікірлер: 161
@theudayakiranvlogs
@theudayakiranvlogs 3 жыл бұрын
By far, most easiest and simplest way of training streamlit. Cheers. Instant like and subscribe
@misraturp
@misraturp 3 жыл бұрын
Thank you Uday!
@dungeonseeker3087
@dungeonseeker3087 Жыл бұрын
Quick note for users on Linux following this (or any other Python tutorial), you should never run pip directly on your system (and definitely not as root), doing so can cause dependency issues with your system installation of Python. Instead first create a python virtual environment inside your project folder then use its separated version of pip to install python modules into your project and only your project.
@minimumeffort1997
@minimumeffort1997 7 ай бұрын
For those who are watching it now... beta container() has been changed to container()
@creaturetrendy
@creaturetrendy 2 жыл бұрын
It really helps a lot to understand streamlit . BTW your handwriting is awesome.
@misraturp
@misraturp 2 жыл бұрын
Ah thanks! Never thought of my handwriting as good honestly. :D
@norbertosanchez403
@norbertosanchez403 3 жыл бұрын
I like your clear and easy to follow explanations.
@misraturp
@misraturp 3 жыл бұрын
I'm glad to hear that! :)
@juliankercsik5641
@juliankercsik5641 3 жыл бұрын
@@misraturp Let me introduce myself I am Julian. I have been trying to run this 'streamlit' for 2 days now I hardly slept and now it works. GENIUS that's what u r!!!!!
@juliankercsik5641
@juliankercsik5641 3 жыл бұрын
Let me introduce myself I am Julian. I have been trying to run this 'streamlit' for 2 days now I hardly slept and now it works. GENIUS that's what u r!!!!! Yes I want to be a data scientist indeed!!!!!
@misraturp
@misraturp 3 жыл бұрын
@@juliankercsik5641 That's awesome Julian! I'm glad to hear the tutorial helped!
@datastrategypros
@datastrategypros 3 жыл бұрын
This is perfect!! I was just looking for a Streamlit demo - thanks, Mısra
@misraturp
@misraturp 3 жыл бұрын
Awesome! Hope it helps. :)
@chan4xan
@chan4xan 2 жыл бұрын
This series is really helpful and clear, really learned a lot and am excited to start using Streamlit for DS projects!
@misraturp
@misraturp 2 жыл бұрын
That's great to hear Lamar! Best of luck on your projects. :)
@dineshmister1280
@dineshmister1280 2 жыл бұрын
I was looking for a webpage which can also use python and I finally found you and streamlit ❤️ keep posting videos about streamlit and your teaching was easy to understand while watching.
@misraturp
@misraturp 2 жыл бұрын
That's great to hear Dinesh, thank you!
@mallikarjunpidaparthi
@mallikarjunpidaparthi 2 жыл бұрын
Thank you so much. You saved a lot of my time.
@misraturp
@misraturp 2 жыл бұрын
You're very welcome!
@juandavidpenaranda6136
@juandavidpenaranda6136 2 жыл бұрын
I have to deliver a dashboard built in python for a school project this weekend. You and this vid are so great!! Thanks
@misraturp
@misraturp 2 жыл бұрын
Glad it was helpful!
@manuelmbscorreia
@manuelmbscorreia 3 жыл бұрын
Underrated - Thanks to you I will be able to show a finished project to a possible employer.
@misraturp
@misraturp 3 жыл бұрын
That's great to hear! Thank you. 🤓
@jitendratrivedi7889
@jitendratrivedi7889 2 жыл бұрын
Simple and easy to understand. Thanks ..
@misraturp
@misraturp 2 жыл бұрын
You're welcome!
@YouOweMeMoney
@YouOweMeMoney 2 жыл бұрын
This is great, really gave me the building blocks to get started
@misraturp
@misraturp 2 жыл бұрын
Great to hear!
@991122bc
@991122bc Жыл бұрын
Quite enjoy your teaching, the way you explained, very good
@misraturp
@misraturp Жыл бұрын
Great to hear, thank you :)
@davidbristoll195
@davidbristoll195 Жыл бұрын
Great video, really helpful, thank you! streamlit looks awesome! I can finally escape print statements 😂
@misraturp
@misraturp Жыл бұрын
Glad it was helpful!
@Frank-si2jd
@Frank-si2jd Жыл бұрын
Thanks for your wonderful tutorials! One thing though, please use zoom-in or use enlarged fonts to follow easier on e.g. an iPad.
@misraturp
@misraturp Жыл бұрын
You're very welcome! And noted!
@karimnaufal9792
@karimnaufal9792 2 жыл бұрын
Thank you, Misra, great! You're good at this.
@misraturp
@misraturp 2 жыл бұрын
Thanks Karim! Really happy to hear it. :)
@simon-4530
@simon-4530 3 жыл бұрын
Great job, clearly explained and very helpful :)
@misraturp
@misraturp 3 жыл бұрын
Glad to hear that!
@farhankhan-hq9ww
@farhankhan-hq9ww 2 жыл бұрын
oh this is just so good to use , and even your tutorial is excellent. thanks
@misraturp
@misraturp 2 жыл бұрын
Great to hear!
@azhar145
@azhar145 2 жыл бұрын
Hi Great video. Thank You. One request please - for next videos, if possible - can you please consider to maximize your terminal window when recording - so it is easy to read. Thanks.
@misraturp
@misraturp 2 жыл бұрын
Thanks Azhar! The feedback is noted.
@mukulkrsinghchauhan280
@mukulkrsinghchauhan280 3 жыл бұрын
You are truly amazing. Appreciate the efforts that you have put into to create the series of tuts. Thanks
@misraturp
@misraturp 3 жыл бұрын
Glad you like them!
@umutaltun9049
@umutaltun9049 3 жыл бұрын
Perfect. Thank you so much!
@misraturp
@misraturp 3 жыл бұрын
You're welcome!
@slimyelow
@slimyelow Жыл бұрын
NYC Ridesharing plot is funny: 0:00 to 1:00 am. All those wasted Manhattan folks getting an Ueber to get home. - and too cheap to call a Taxi.
@tolulopetoluwade4116
@tolulopetoluwade4116 Жыл бұрын
You are very good, many thanks for this tutorial. However, I am using a streamlit version of 1.24.1 and beta_container has been renamed to container. I kept getting errors until I changed it to container
@Nice_lolat
@Nice_lolat Жыл бұрын
thanks for this update - really helpful
@arlcun
@arlcun Жыл бұрын
Thank you so much for this video!
@misraturp
@misraturp Жыл бұрын
You are so welcome!
@Chevignay
@Chevignay 2 жыл бұрын
Hi, thank you for putting together this great tutorial, it's very well communicated 👍
@misraturp
@misraturp 2 жыл бұрын
Great to hear Thierry! You're welcome :)
@jaymanfred8811
@jaymanfred8811 Жыл бұрын
Hello, I am getting a streamlit has no attribute beta_container error, any suggestions?
@DaviRocha_Health_and_Data
@DaviRocha_Health_and_Data 2 жыл бұрын
Thanks for sharing
@misraturp
@misraturp 2 жыл бұрын
Of course!
@gowrishankar7971
@gowrishankar7971 Жыл бұрын
mam im using google colob then how to write a code on command prompt
@jackychan4640
@jackychan4640 Жыл бұрын
Hey Masra, recently I am not able to create a project using streamlit. Note: pyarrow err . Please help
@shriyashmohril6243
@shriyashmohril6243 2 жыл бұрын
Thanks a lot for this really helpful
@misraturp
@misraturp Жыл бұрын
You're very welcome!
@ShivamSharma-if1oh
@ShivamSharma-if1oh 2 жыл бұрын
Please make more tutorials on streamlit
@misraturp
@misraturp 2 жыл бұрын
Any specific topic in Streamlit?
@iraqiplanet
@iraqiplanet 2 жыл бұрын
This is what i get Please replace st.beta_container with st.container. st.beta_container will be removed after 2021-11-02.
@misraturp
@misraturp 2 жыл бұрын
Yes, since I made this video, there has been updates to Streamlit. So you can update the code as the warning suggests and it should all be fine :)
@giftyarthur5881
@giftyarthur5881 3 жыл бұрын
Impressive. Thanks for sharing
@misraturp
@misraturp 3 жыл бұрын
😊
@hsoley
@hsoley 3 жыл бұрын
amazing, love the content
@misraturp
@misraturp 3 жыл бұрын
That's great to hear, thank you!
@wagnerengenhoca
@wagnerengenhoca 2 жыл бұрын
Perfect
@misraturp
@misraturp 2 жыл бұрын
Thanks!
@chicagogirl9862
@chicagogirl9862 9 ай бұрын
i tried so many solution but ip address can not be opened on Chrome
@azizjonmuhiddinov8786
@azizjonmuhiddinov8786 2 жыл бұрын
thanks
@misraturp
@misraturp 2 жыл бұрын
You're welcome :)
@sun1908
@sun1908 3 жыл бұрын
This is great.. Thank you.
@misraturp
@misraturp 3 жыл бұрын
You're welcome :) I'm glad you liked it
@mohitpande2006
@mohitpande2006 3 жыл бұрын
hi misra, I follow your channel and learn many things, actually I am working on project to select best time series prediction model, I have done using fb prophet and deployed as well, but I am not getting any video on LSTM forecasting and it use on streamlit, can make any video with same regards in future
@misraturp
@misraturp 3 жыл бұрын
Sure, I've noted it down for a future idea. Thank you Mohit.
@phamducminh9451
@phamducminh9451 2 жыл бұрын
Thanks for the nice video. I go this when running the code Please replace st.beta_container with st.container. st.beta_container will be removed after 2021-11-02.
@misraturp
@misraturp 2 жыл бұрын
Hey Pham, Streamlit has since updated their API. The problem should go away if you replace beta_container with container.
@jeremyopriasa9961
@jeremyopriasa9961 3 жыл бұрын
Thankyou Maam!!
@misraturp
@misraturp 3 жыл бұрын
You are welcome :)
@MohamedAlphaKamara-cp8xo
@MohamedAlphaKamara-cp8xo Жыл бұрын
hi please which notebook did you use to write the code, coz it doesnt seem like jupyter
@misraturp
@misraturp Жыл бұрын
Hello Mohamed, I develop the code on Sublime text here.
@arjunpathak7999
@arjunpathak7999 2 жыл бұрын
My video feed get stuck after sometimes on streamlit how can i resolve it?
@misraturp
@misraturp 2 жыл бұрын
Hey Arjun, not sure what could be causing it unfortunately. :/
@BlueSkyGoldSun
@BlueSkyGoldSun 2 жыл бұрын
Which is better using streamlit on Jupyter notebook or in IDE Atom,VS etc ?
@misraturp
@misraturp 2 жыл бұрын
IDE or a text editor with code syntax capabilities would be the best.
@alvarezgonzalezianarturo7942
@alvarezgonzalezianarturo7942 2 жыл бұрын
Thank you so much :'3
@misraturp
@misraturp 2 жыл бұрын
You're welcome :)
@sultanmohiuddin5063
@sultanmohiuddin5063 3 жыл бұрын
you are just awesome...but there is one problem i got can you plz explain how did you opened your streamlit app in browser
@misraturp
@misraturp 3 жыл бұрын
Hello Sultan, thank you for your nice words. One you run the line: Streamlit run the browser page pops up automatically.
@ivorstable
@ivorstable 2 жыл бұрын
Hi I have a problem when I install my streamlit I can not import it but streamlit is installed for sure because when I pip list it is listed can you help me somehow
@misraturp
@misraturp 2 жыл бұрын
Hey Ivor, is it possible you have anaconda or some other environment installed? You might have installed Streamlit to one environment and trying to run the app from another?
@ivorstable
@ivorstable 2 жыл бұрын
@@misraturp thanks for the reply I did find a solution. The problem was that I needed to add PATH in windows. Thanks
@misraturp
@misraturp 2 жыл бұрын
@@ivorstable Glad to hear it was resolved!
@williamsilva1312
@williamsilva1312 Жыл бұрын
AttributeError: module 'streamlit' has no attribute '_is_running_with_streamlit'.This error happens every time I try to plot the Hiplot view. Do you have any tips to resolve?
@misraturp
@misraturp Жыл бұрын
Hey William, could you share with me the line that causes this error?
@juliankercsik5641
@juliankercsik5641 3 жыл бұрын
Hiya You are a genius love you!!!!
@misraturp
@misraturp 3 жыл бұрын
Thank you
@slimyelow
@slimyelow Жыл бұрын
beta_container() is now called container()
@thebloocat
@thebloocat 3 жыл бұрын
Nice wallpaper
@misraturp
@misraturp 3 жыл бұрын
Thanks! I love it too :)
@harryfeng4199
@harryfeng4199 2 жыл бұрын
Can I install in google colab or do I have to do it locally
@misraturp
@misraturp 2 жыл бұрын
I never tried building a Streamlit app on Google Colab honestly. I think running it locally at least during building is a good idea.
@triptypes
@triptypes 2 жыл бұрын
Merhaba Sen Turkmusun? Ben sizin kanali izliyorum.Saygilar. Nasil ben kisa zamanda oyrene bilirim?Python Data ile ilglili
@misraturp
@misraturp 2 жыл бұрын
Merhaba! Yes, I'm Turkish. :) Internetten online courselar cok faydali olabilir. Benim online courselarim icin buraya bakabilirsin: www.soyouwanttobeadatascientist.com/roadmap
@oumaimajanouj6309
@oumaimajanouj6309 3 жыл бұрын
Great content, but i have a question how can i create a box where i can type in numbers ( supposedly bitcoins) and then convert them to dollars while i have the python code ?
@misraturp
@misraturp 3 жыл бұрын
You can do this by getting an input from the user like this: user_input = st.text_input("label goes here", default_value_goes_here) and then convert them with whatever the conversion rate is: dollar_value = conversion_rate * user_input and display the dollar_value. st.text(dollar_value) Though if you want to have the latest conversion_rate you might need to use some sort of API to get the latest rate everytime.
@davidralte4572
@davidralte4572 2 жыл бұрын
Could you please do Cherrypy tutorial,
@misraturp
@misraturp 2 жыл бұрын
Hey David, I never worked with Cherrypy but I’ll look into it. Thanks for the suggestion!
@davidralte4572
@davidralte4572 2 жыл бұрын
@@misraturp Thank You for considering, I am doing a project on NLP and I need to used easyocr with streamlit but is not working together so I have some problem.
@emrekyak3901
@emrekyak3901 3 жыл бұрын
Great content, thanks! Just discovered the channel, Greetings!
@misraturp
@misraturp 3 жыл бұрын
Thanks and welcome!
@harshvardhanshringi933
@harshvardhanshringi933 3 жыл бұрын
when I am using multiple text inputs it showing key errors, could you please solve this.
@misraturp
@misraturp 3 жыл бұрын
You are probably having an error related to using a column name that is not actually in the dataset.
@declanonyinye9421
@declanonyinye9421 3 жыл бұрын
I'm stuck here : AttributeError: module 'streamlit' has no attribute 'dataset_container' Traceback: File "/opt/anaconda3/lib/python3.8/site-packages/streamlit/script_runner.py", line 333, in _run_script exec(code, module.__dict__) File "/Users/mac/Desktop/declan/data/main.py", line 5, in dataset = st.dataset_container()
@misraturp
@misraturp 3 жыл бұрын
Hey Declan, looks like you're trying to create a container with the wrong function. It should be st.beta_container(). Hope this helps.
@hemanthkotagiri8865
@hemanthkotagiri8865 3 жыл бұрын
The moment I saw your channel name, one thing was in my mind: "So you wanna be a software Engineer at Google?". Get it? 😉
@misraturp
@misraturp 3 жыл бұрын
Hey Hemanth, I wasn't familiar with that actually but a Google search told me that it is some sort of an internet meme, is that correct? :D
@hemanthkotagiri8865
@hemanthkotagiri8865 3 жыл бұрын
@@misraturp It is. From a very famous dude, Clement about his company algoexpert. How can you not know him? He's all over the place!
@misraturp
@misraturp 3 жыл бұрын
@@hemanthkotagiri8865 Interesting... Never seen it before. 🤷‍♀️
@fampirowski1
@fampirowski1 Жыл бұрын
You are Eva Mendes++ ;) i love your videos
@misraturp
@misraturp Жыл бұрын
Haha thanks!
@anoop_bhat
@anoop_bhat 3 жыл бұрын
should we set streamlit to path as I cannot run streamlit run main.py
@misraturp
@misraturp 3 жыл бұрын
Hey Anoop, have you followed the Streamlit installation instructions? If so, no further action is needed.
@muhsinsulfikker1845
@muhsinsulfikker1845 2 жыл бұрын
can u provide the covid 19 project link
@misraturp
@misraturp 2 жыл бұрын
Here it is: covid19.multivacplatform.org/
@v4389
@v4389 2 жыл бұрын
Hi:) What IDE are you using?
@misraturp
@misraturp 2 жыл бұрын
In this video, I use Sublime text but recently I started using Visual Studio Code.
@v4389
@v4389 2 жыл бұрын
​@@misraturp Thanks! I’m new to streamlit, trying to develop an app for data fusion. Records from two sources will be presented to user and user input will be taken whether a record is a match or not. Based on an input from user, a column in a database table will be updated with a value either “Match” or “Mismatch” How to get this value from user and store it in a database table along with name of user and timestamp? I appreciate your help on this! Thanks, Vishal
@neelamadhabkhaya98
@neelamadhabkhaya98 3 жыл бұрын
Nice
@misraturp
@misraturp 3 жыл бұрын
Thanks!
@shivanshjayara6372
@shivanshjayara6372 3 жыл бұрын
Mam can we deploy ml model using streamlit in heroku?
@misraturp
@misraturp 3 жыл бұрын
That should be possible. It is in my list of things to do a video of. :)
@shivanshjayara6372
@shivanshjayara6372 3 жыл бұрын
Thats great....also do one video on pywebio and how to deploy it in heroku. Its a request coz i was able to run my machine learning app from my local on a webpage using pywebio but im not able to deploy it using heroku...so if u have time for this do make a video on that plz do make..... thank you :-)
@nayeem3905
@nayeem3905 2 жыл бұрын
Thank you for this. What's the difference between streamlit and pywebio?
@misraturp
@misraturp 2 жыл бұрын
You're welcome. :) I've never heard of pywebio. Is it also a web app framework?
@akhil3365
@akhil3365 3 жыл бұрын
can you please make a video on how to make a note-taking app in streamlit I tried to implement it but there are so many problems with my version because while deleting a note (row in the data frame) it messes up because the select_box doesn't get updated and sometimes deletes the row which is not intended to: def Notes(): st.markdown('## Notes') st.markdown('####') df= pd.read_csv('Notes.csv') Seal = st.container() nt,tb=st.columns(2) val=nt.text_area('Edit','Enter Note',height=200) if nt.button('Add note'): if val not in df['All Notes'].tolist() and val!='Enter Note': df.loc[len(df.index)]=val df['.']='.' df.to_csv('Notes.csv',index=False) tb.table(df.rename(columns={'All Notes': 'Highlights'}).set_index('.').sample(2)) with nt.expander('Delete'): delt=st.selectbox('Delete',df['All Notes']) if st.button('Delete'): df= pd.read_csv('Notes.csv') df=df.drop(df[df['All Notes']==delt].index) df.to_csv('Notes.csv',index=False) with Seal.expander('See All'): st.table(df.set_index('.')) Notes() this is my implementation.
@misraturp
@misraturp 3 жыл бұрын
I'll add that to my list of videos to make AKHIL. Thank you for the suggestion!
@akhil3365
@akhil3365 3 жыл бұрын
@@misraturp thank you so much I got few hints seeing you video on session state and call back function I think that is the way to achieve desired results
@misraturp
@misraturp 2 жыл бұрын
@@akhil3365 Awesome!
@markcuello5
@markcuello5 2 жыл бұрын
HELP
@misraturp
@misraturp 2 жыл бұрын
WITH WHAT? 😱
@JOSEFILHO-x3n
@JOSEFILHO-x3n Жыл бұрын
gatinhademaisturca
@JOSEFILHO-x3n
@JOSEFILHO-x3n Жыл бұрын
temzap?
@misraturp
@misraturp 3 жыл бұрын
👉 All you need to know about Pandas in one place! Download my Pandas Cheat Sheet (free) misraturp.gumroad.com/l/pandascs
@shubhamagarwal390
@shubhamagarwal390 2 жыл бұрын
Thank you very much...
@misraturp
@misraturp 2 жыл бұрын
@@shubhamagarwal390 You're very welcome!
@vhater2006
@vhater2006 2 жыл бұрын
nice tutorial for someone who never code i know now container THANKs LOT at the end oif the video i was on hurry to write down the website can you keep it while you advertise for !!! thanks gain all the best.
@misraturp
@misraturp 2 жыл бұрын
You're very welcome Vhater!
@dr.sidul1100
@dr.sidul1100 Жыл бұрын
your so beautiful and thank your for videos.
@misraturp
@misraturp Жыл бұрын
You're welcome
@declanonyinye9421
@declanonyinye9421 3 жыл бұрын
Thank so much... you just save a soul
@misraturp
@misraturp 3 жыл бұрын
I'm happy to help :)
@sofun728
@sofun728 3 жыл бұрын
Your doing awesome...
@misraturp
@misraturp 3 жыл бұрын
Thank you!
@raviyadav2552
@raviyadav2552 3 жыл бұрын
are you a lefty!
@misraturp
@misraturp 3 жыл бұрын
Ah, no. Does it look like that in the video? 😄
How to Collect User Input with Streamlit - Part 2
10:26
Mısra Turp
Рет қаралды 50 М.
5 Things I Wish I Knew Before Learning Streamlit
21:34
Fanilo Andrianasolo
Рет қаралды 30 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,3 МЛН
Ozoda - Lada (Official Music Video)
06:07
Ozoda
Рет қаралды 10 МЛН
Streamlit Elements You Should Know About in 2023
14:31
Mısra Turp
Рет қаралды 100 М.
How to create a Streamlit Multi-Page Web App
6:23
Coding Is Fun
Рет қаралды 159 М.
Introduction to Jupyter Notebooks: explore the main functionalities
10:34
The Streamlit Epic Overview (part 1/2)
13:06
Fanilo Andrianasolo
Рет қаралды 54 М.
Streamlit 101 - A faster way to build and share data apps
5:18
Streamlit Explained: Python Tutorial for Data Scientists
15:19
ArjanCodes
Рет қаралды 34 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,3 МЛН