feat: streamlit api
This commit is contained in:
parent
bdf44bcd94
commit
573429acd2
3 changed files with 74 additions and 61 deletions
14
.envrc
14
.envrc
|
@ -10,9 +10,21 @@ layout_uv() {
|
|||
VIRTUAL_ENV="$(pwd)/.venv"
|
||||
fi
|
||||
|
||||
export PATH=$PATH":$VIRTUAL_ENV/bin"
|
||||
PATH_add "$VIRTUAL_ENV/bin"
|
||||
export UV_ACTIVE=1 # or VENV_ACTIVE=1
|
||||
export VIRTUAL_ENV
|
||||
}
|
||||
|
||||
layout_uv
|
||||
|
||||
|
||||
# Path to your virtual environment directory
|
||||
VENV_DIR="./venv"
|
||||
|
||||
# Load and activate the virtual environment if it exists
|
||||
if [[ -d "$VENV_DIR" ]]; then
|
||||
layout python "$VENV_DIR"
|
||||
else
|
||||
echo "Virtual environment not found at $VENV_DIR"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue