##// END OF EJS Templates
Fixed long-standing and very subtle bug in ultratb....
Fixed long-standing and very subtle bug in ultratb. This is something I had seen sporadically, and was able to finally pin down as associated with situations like generator expressions and others where inspect.getargvalues() returns variables that inspect.formatargvalues() later can't extract. I finally understood what's going on, left a detailed comment in the code explaining the problem.

File last commit:

r2827:34964c21
r3147:cf214c9d
Show More
backend_payload.py
26 lines | 740 B | text/x-python | PythonLexer
""" Provides basic funtionality for payload backends.
"""
# Local imports.
from IPython.core.interactiveshell import InteractiveShell
def add_plot_payload(format, data, metadata={}):
""" Add a plot payload to the current execution reply.
Parameters:
-----------
format : str
Identifies the format of the plot data.
data : str
The raw plot data.
metadata : dict, optional [default empty]
Allows for specification of additional information about the plot data.
"""
payload = dict(
source='IPython.zmq.pylab.backend_payload.add_plot_payload',
format=format, data=data, metadata=metadata
)
InteractiveShell.instance().payload_manager.write_payload(payload)