<div dir="ltr">Hi,<div><br></div><div>I am working on a set of notebooks that form the basis of a Python curriculum, so sometimes I want to use a Python 3 interpreter and sometimes I want to use a Python 2 interpreter. I am running Ubuntu 12.04, with a number of different Python versions installed. To access any particular version, I just enter `python` in a terminal for the default Python, `python2.7` for a 2.7 interpreter, `python3.2`, etc. When I set up a virtualenv and install ipython, ipython attaches to a particular python.</div>
<div><br></div><div>What I'd like to do:</div><div>- Set up a virtualenv.</div><div>- Install ipython.</div><div>- Be able to run `ipython notebook` attached to Python 2.7</div><div>- Be able to run `ipython notebook` attached to Python 3.2</div>
<div><br></div><div>Is there a straightforward way to do this? I don't want to have to maintain two separate virtualenv's, if possible.</div><div><br></div><div>Thank you.</div><div><br></div><div>Eric</div></div>