My question is about the specific situation of using
iPython and
python virtual environments (virtualenvwrapper).Recently needed to install and use virtual environments; however, when I launch iPython, I get a lot of errors:
[TerminalIPythonApp] WARNING | Unknown error in handling startup files:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/lib/python3.6/site-packages/IPython/core/interactiveshell.py in safe_execfile(self, fname, *where, **kw)
2480 fname, glob, loc,
-> 2481 self.compile if kw['shell_futures'] else None)
[...]
AttributeError: 'filter' object has no attribute 'remove'
Searching the web for the issue, I found a few posts suggesting that iPython was "unaware" of virtual environments,
Calling IPython from a virtualenv (c. 2012) but a
commenter suggests that's no longer the case (2013).
The workaround in 2012 was to
add some code to the iPython config file. And the OP in 'Calling iPython from a virtualenv' suggests another workaround is to install iPython inside each virtual environment.
I really don't want to do that.I don't see a lot of posts about iPython and virtual environments, so I'm thinking it's just me. So,
Is iPython still virtualenv unaware?