##// END OF EJS Templates
truncate potentially long CompositeErrors...
truncate potentially long CompositeErrors If you have a typo in a task on 100 engines, the local exception will be a bit ridiculous. This defaults the truncation to 4 tracebacks (could be even fewer, or even one?), and you can set the tb_limit attribute of CompositeError to adjust this. Prompted by [this SO question](http://stackoverflow.com/questions/14635935/silence-or-condence-ipython-parallel-exceptions).

File last commit:

r9190:20a102a5
r9411:529df40f
Show More
Pylab Switching.ipynb
107 lines | 8.3 KiB | text/plain | TextLexer
In [3]:
# Should pop up a GUI window
%pylab qt
plot([1,2,3])
Welcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].
For more information, type 'help(pylab)'.
Out[3]:
[<matplotlib.lines.Line2D at 0x4566850>]
In [4]:
# Should make an inline figure
%pylab inline
plot([1,2,3])
Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].
For more information, type 'help(pylab)'.
Out[4]:
[<matplotlib.lines.Line2D at 0x4830ad0>]
No description has been provided for this image
In [11]:
# New GUI window--should *NOT* have the visual settings of inline
%pylab qt
plot([1,2,3])
Welcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].
For more information, type 'help(pylab)'.
Out[11]:
[<matplotlib.lines.Line2D at 0x5253850>]