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

lighttable, python, virtualenv

Solution

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.

Problem

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?

Original source