# TinyTorch Virtual Environment Auto-Activation
# Uses .venv directory (standard location with Jupyter Book 2.0)

# Simple and direct: just source the activate script
source .venv/bin/activate

# Set common Python environment variables
export PYTHONPATH="${PWD}:${PYTHONPATH}"
export PROJECT_ROOT="${PWD}"
export VENV_PATH="${PWD}/.venv"

# Prevent Python from writing pyc files
export PYTHONDONTWRITEBYTECODE=1

# Enable Python development mode (more detailed error messages)
export PYTHONDEVMODE=1

echo "✅ TinyTorch environment activated (.venv with Jupyter Book 2.0)"
echo "🐍 Python: $(python --version)"
echo "📦 Jupyter Book: $(jupyter-book --version)"
echo "📍 Virtual env: ${VIRTUAL_ENV}"
