def init_inspector(self):
super(RekallShell, self).init_inspector()
# This is a hack but seems the only way to make get_ipython() work
# properly.
InteractiveShell._instance = self
ipython_version = IPython.__version__
# IPython 5 (4 should work too) is the one we standardize on right
# now. This means we support earlier ones but turn off the bells and
# whistles.
if "4.0.0" <= ipython_version < "6.0.0":
self.inspector = RekallObjectInspector()
else:
self.user_ns.session.logging.warn(
"Warning: IPython version %s not fully supported. "
"We recommend installing IPython version 5.",
ipython_version)
评论列表
文章目录