You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DSPy Code is an **interactive development environment** that transforms how you learn and build with DSPy. Built as an intelligent CLI tool, it provides natural language interactions, code generation, optimization workflows, and comprehensive validation—all designed specifically for DSPy development.
23
+
DSPy Code is an **interactive development environment** that transforms how you learn and build with DSPy. Built as an intelligent CLI tool, it provides natural language interactions, code generation, optimization workflows, and comprehensive validation, all designed specifically for DSPy development.
24
24
25
25
**Learn as you build.** Whether you're a complete beginner or a DSPy expert, the CLI adapts to your level and guides you through every step.
26
26
@@ -77,21 +77,77 @@ DSPy Code is a **purpose-built development environment** that embeds DSPy expert
77
77
78
78
### Installation
79
79
80
+
**⚠️ CRITICAL: Always create your virtual environment INSIDE your project directory!**
81
+
80
82
```bash
81
-
# Install from PyPI
83
+
# 1. Create a project directory
84
+
mkdir my-dspy-project
85
+
cd my-dspy-project
86
+
87
+
# 2. Create virtual environment IN this directory (not elsewhere!)
88
+
python -m venv .venv
89
+
90
+
# 3. Activate it
91
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
92
+
93
+
# 4. Install dspy-code (installs into .venv/ in your project)
82
94
pip install dspy-code
83
95
84
-
# DSPy is installed as a dependency
85
-
# You can also install it separately: pip install dspy
96
+
# 5. Run dspy-code (everything stays in this directory!)
97
+
dspy-code
98
+
```
99
+
100
+
**Why virtual environment IN your project directory?**
101
+
- 🔒 **Security**: All file scanning stays within your project directory
102
+
- 📦 **Isolation**: Your project dependencies are self-contained
103
+
- 🚀 **Portability**: Share your project by zipping the entire directory
104
+
- 🎯 **Simplicity**: Everything in one place - no scattered files
105
+
- 🧹 **Clean**: Delete the project folder to remove everything
106
+
107
+
### Project Structure
108
+
109
+
When you follow this setup, your project will be fully self-contained:
0 commit comments