allentome
allentome10mo ago

VSCode virtual env

in the vs code extension, is there a way to specify running the marimo server under a virtual env?
3 Replies
Akshay
Akshay10mo ago
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
allentome
allentomeOP10mo ago
awesome, this worked. another question: is it expected that a local variable used to run a for loop becomes a global variable?
No description
Akshay
Akshay10mo ago
yep, in Python loop variables aren't actually scoped to the loop, they leak out to their containing context.