DSPy: The framework for programming—not prompting—language models
Python
docs(devcontainer): Add interpreter instructions at end of dev container build
Josh Mantovani31ff87381cf9
diff --git a/.devcontainer/interpreter_warning.py b/.devcontainer/interpreter_warning.pynew file mode 100755index 000000000..9ebcc9ee0--- /dev/null+++ b/.devcontainer/interpreter_warning.py@@ -0,0 +1,25 @@+from rich.console import Console+from rich.text import Text++text = Text()+console = Console()++text.append(+ "Be sure to check that you have the Poetry Python interpreter selected in VSCode otherwise"+ " your terminal will not include the necessary packages to develop. If you have the correct interpreter"+ " configured, you'll see an interpreter that looks like this: ",+ style="bold yellow",+)+text.append("3.9.18 ('.venv': Poetry)", style="code")+text.append(+ ". If you have previously selected another Python interpreter for the VSCode workspace, you may need to select"+ " the Poetry Python interpreter.\n\nTo do so, follow the instructions at the following link and choose the Poetry"+ " virtual environment interpreter.",+ style="bold yellow",+)++console.print(text)+console.print(+ "VSCode Python Interpreter Documentation\n",+ style="link https://code.visualstudio.com/docs/python/environments#_working-with-python-interpreters",+)diff --git a/.devcontainer/post_create.sh b/.devcontainer/post_create.shindex 963573067..1a0d5a76c 100755--- a/.devcontainer/post_create.sh+++ b/.devcontainer/post_create.sh@@ -24,3 +24,5 @@ if [ -f "$personalization_script" ]; thenchmod +x "$personalization_script"$personalization_scriptfi++chmod +x ./.devcontainer/interpreter_warning.py && poetry run python ./.devcontainer/interpreter_warning.py