VSCode virtual env
in the vs code extension, is there a way to specify running the marimo server under a virtual env?
3 Replies
The extension should use whatever interpreter vs code is configured to use. vs code lets you choose your interpreter/environment: https://code.visualstudio.com/docs/python/environments#_working-with-python-interpreters
Using Python Environments in Visual Studio Code
Configuring Python Environments in Visual Studio Code
awesome, this worked. another question: is it expected that a local variable used to run a for loop becomes a global variable?
yep, in Python loop variables aren't actually scoped to the loop, they leak out to their containing context.