ipython qtconsole --help-all says:
--IPKernelApp.matplotlib=<CaselessStrEnum> Default: None Choices: ['auto', 'gtk', 'inline', 'osx', 'qt', 'qt4', 'tk', 'wx'] --IPKernelApp.pylab=<CaselessStrEnum> Default: None Choices: ['auto', 'gtk', 'inline', 'osx', 'qt', 'qt4', 'tk', 'wx'] Pre-load matplotlib and numpy for interactive use, selecting a particular matplotlib backend and loop integration.
therefore c.IPKernelApp.matplotlib='inline' in your *_config.py (possibly in ~/.ipython/profile_default ) will work. Please read how to configure IPyton , usually the doc explains a lot about how to do things.
Be careful, however, there is a difference between the presence of straight figures and the presence of the %pylab . Un-pylab kernel is impossible (for example, it is impossible that python does not import the module). With 1.0 and above and the last matplotlib, you can switch inline / not inline with %matplotlib <backend> magic.
Matt
source share