all AI news
Activate Python virtual environment automatically on iTerm2
April 14, 2024, 11:29 p.m. | Min ho Kim
DEV Community dev.to
1. Create a function in the .zshrc
# ~/.zshrc
activate() {
if [ -d ".venv" ]; then
source .venv/bin/activate
else
: # ignore if no .venv
fi
}
2. Set iTerm to call this function on a new tap
iTerm2: Preferences -> Profiles -> Command: Login Shell -> Send text at start: "activate"
https://minho42.com/posts/auto-activate-venv-on-iterm/
call command create environment function login profiles python set shell text venv virtual
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US