[go: up one dir, main page]

0% found this document useful (0 votes)
8 views4 pages

Vs Code Config

To execute a Streamlit application in VS Code, first install the required packages listed in 'requirements.txt' using pip. Then, configure VS Code by installing the Python extension, selecting the appropriate Python interpreter, and ensuring the global terminal is used. Finally, run the application and access it via the default URL http://localhost:8501/.

Uploaded by

amulyastate10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Vs Code Config

To execute a Streamlit application in VS Code, first install the required packages listed in 'requirements.txt' using pip. Then, configure VS Code by installing the Python extension, selecting the appropriate Python interpreter, and ensuring the global terminal is used. Finally, run the application and access it via the default URL http://localhost:8501/.

Uploaded by

amulyastate10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

For Executing Streamlit Application Below are step should be perform in vs code

Ensure all the required packages are installed in the system

pip install -r requirements.txt

Save this below packages in notepad and run above command to install in one go

keras==3.8.0
numpy==2.2.3
streamlit==1.42.2
tensorflow==2.18.0
tensorflow_intel==2.18.0
streamlit==1.42.2
matplotlib==3.10.0

To configure VS Code to debug a Python app and run it in the global terminal,
follow these steps:

1. Open VS Code:

Launch Visual Studio Code and open the folder where your project is stored
(C:\Users\Admin\Desktop\Python\Image_classification (1)) -- is the my system path in
your case it different where you store.
2. Install Python Extension:

If you haven't already, make sure you have the Python extension installed in VS Code.
If not, install it from the Extensions marketplace:

• Open the Extensions sidebar (Ctrl + Shift + X).


• Search for "Python" and click Install.

3. Configure the Python Interpreter:

To make sure VS Code uses the correct Python interpreter (such as the one inside your virtual
environment):

• Press Ctrl + Shift + P to open the Command Palette.


• Type Python: Select Interpreter.
• Choose the appropriate Python interpreter for your project (e.g., .venv or the global
Python installation).

• If using a virtual environment, ensure you select that interpreter to venv or select
global. (I don’t want to install packages again in the virtual environment so im using
global terminal)
Once you run that command the app execution begins

Automatically Browser opens up with web page if not


http://localhost:8501/

Copy & Paste this above URL in Browser

our Application by default uses port 8501

You might also like