How do I use a virtualenv to evaluate Python in Light Table?

1.9k views Asked by At

How do I use a virtualenv to evaluate Python in the Light Table IDE?

I run all my projects under virtualenvs, and all the virtualenvs are located in subfolders within /.virtualenvs/(very standard practice)

I see that LightTable supports behaviors on a per-workspace setting, so is there some way to set a behavior that ties a workspace to a particular virtualenv path?

1

There are 1 answers

0
David Sanders On

I don't use LightTable, but if you can tell it to use the python executable in the virtualenv's bin directory, that should work. That's how virtualenv works. The python executable traverses up through the virtualenv's directory structure until it finds a lib dir with the appropriate content.