##// END OF EJS Templates
IPython.core.tests.test_run.test_obj_del apparently no longer fails on Windows, so we don't need to skip it....
IPython.core.tests.test_run.test_obj_del apparently no longer fails on Windows, so we don't need to skip it. Closes gh-59

File last commit:

r3602:8554e339
r3915:22a3c9a1
Show More
displayhook.py
22 lines | 589 B | text/x-python | PythonLexer
import __builtin__
from session import extract_header
class DisplayHook(object):
topic=None
def __init__(self, session, pub_socket):
self.session = session
self.pub_socket = pub_socket
self.parent_header = {}
def __call__(self, obj):
if obj is None:
return
__builtin__._ = obj
msg = self.session.send(self.pub_socket, u'pyout', {u'data':repr(obj)},
parent=self.parent_header, ident=self.topic)
def set_parent(self, parent):
self.parent_header = extract_header(parent)