Skip to content

Latest commit

 

History

History
43 lines (42 loc) · 854 Bytes

switch-to-interactive-backend-with.md

File metadata and controls

43 lines (42 loc) · 854 Bytes

Title: switch to interactive backend with ipython -pylab Date: 2010-08-21 00:33 Author: Andrea Zonca Tags: python Slug: switch-to-interactive-backend-with

objective:


  1. when running ipython without pylab or executing scripts you want to use an image matplotlib backend like Agg

  2. just when calling ipython -pylab you want to use an interactive backend like GTKAgg or TKAgg




you need first to setup as default backend on .matplotlib/matplotlibrc Agg :
backend : Agg
then setup you ipython to switch to interactive, in ipython file Shell.py, in the class MatplotlibShellBase, at about line 516, add:
matplotlib.use('GTKAgg')
after the first import of matplotlib