Skip to content

Instantly share code, notes, and snippets.

View fahofmeister's full-sized avatar
🏠
Learning and making mistakes, not in this exact order

Fernando Hofmeister fahofmeister

🏠
Learning and making mistakes, not in this exact order
View GitHub Profile
@fahofmeister
fahofmeister / create_venv.bat
Created October 5, 2021 01:35
Create a virtual environment for Python development in Windows
:: Batch script to setup a virtual development environment
@echo off
:: Variables
set venv_folder=.\.venv
:: Creating virtual environment
echo Creating virtual environment
@fahofmeister
fahofmeister / readme.md
Created June 22, 2021 12:08
VS Code settings to work with Python Virtual Environment

Remarks

"python.pythonPath": folder for the venv Python interpreter

"python.terminal.activateEnvironment": activates venv automatically in a new terminal

"terminal.integrated.cwd": set the working directory for new terminal windows

"python.teminal.executeInFileDir": run a file in file's directory instead of the current folder