How to create a Streamlit app in VS Code

preview_player
Показать описание
Create the virtual environment and activate it by running following in terminal:
python3 -m venv env && source ./env/bin/activate

Install streamlit by running:
pip install streamlit

Run the app by typing:

Рекомендации по теме
Комментарии
Автор

I was having the import issue with a library but only one command solved all problems. Thank you !

alik.
Автор

Excelent video Jakob! I'm looking forward for the next one, because I'm really interested in deploying this kind of apps online. Thanks!

oeam
Автор

thank you, I was stuck to load the page, now cleared

farhadkhan
Автор

python3 -m venv env && source ./env/bin/activate did not work for me. What worked for me in a Windows machine. Step 1: Inside the folder that contains the python file, using the terminal, pip install streamlit. Step 2: Install Anaconda. Step 3: Inside Anaconda go to the Virtual Environment BASE. Step 4: streamlit run The video is fantastic but uses an Apple machine. In other words, I cannot run the file from VSCode. If somebody finds how, please let me know.

multitaskprueba
Автор

I am new to coding and use Windows. I can not run a python app made with streamlit on my localhost. any solution?

rayhansthoughts
Автор

You are a genius! Fantastic video! Thank you so much!

multitaskprueba
Автор

Can I use VS code instead of Pycharm, because I don't have subscription of Pycharm.
I need to build a website with my python ML code .

blaze