-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Critical error when setting iterm2 backend #2
Comments
|
ipython: 4.1.2 Here's a full pip freeze from my fresh virtualenv alabaster==0.7.7 |
Same error still. |
Same error here, but it looks like you can hack around it by hijacking an existing valid backend key instead of trying to add new key ~/.ipython/profile_default/ipython_config.py # Configuration file for ipython.
c = get_config()
from IPython.core.pylabtools import backends
backends['iterm2'] = 'module://matplotlib_iterm2.backend_iterm2'
from IPython.core.shellapp import backend_keys
backend_keys.append('iterm2')
c.TerminalIPythonApp.pylab = 'iterm2' $ ipython
...
[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization:
[TerminalIPythonApp] CRITICAL | The 'pylab' trait of a TerminalIPythonApp instance must be any of [u'auto', u'gtk', u'gtk3', u'inline', u'nbagg', u'notebook', u'osx', u'qt', u'qt4', u'qt5', u'tk', u'wx'] or None, but a value of u'iterm2' <type 'unicode'> was specified. ~/.ipython/profile_default/ipython_config.py # Configuration file for ipython.
c = get_config()
from IPython.core.pylabtools import backends
backends['qt'] = 'module://matplotlib_iterm2.backend_iterm2'
#from IPython.core.shellapp import backend_keys
#backend_keys.append('iterm2')
c.TerminalIPythonApp.pylab = 'qt' $ ipython
In [1]: from ggplot import *; ggplot(aes(x='date', y='beef'), data=meat) + geom_point() |
@jdanbrown : your solution is confirmed to work in a pyenv 3.5.2 virtual environment One suggestion for anyone wanting to test this: create a new ipython profile and this will leave the default ipython sessions clean. ipython profile create inline Then edit ipython --profile=inline |
After entering the recommended profile configuration snippet and installing matplotlib_iterm2 module, I get the following critical error on ipython start:
Very similar to the one noted as expected, but mpl simply exits.
The text was updated successfully, but these errors were encountered: