Make sure client_id for IPython is not None

This commit is contained in:
ZyX 2015-01-08 02:47:48 +03:00
parent eb026d3829
commit 6b23430b27
1 changed files with 9 additions and 2 deletions

View File

@ -33,9 +33,16 @@ class IPythonRenderer(ShellRenderer):
if 'theme' in match:
match['theme'].shutdown()
def render(self, *args, **kwargs):
def render(self, **kwargs):
# XXX super(ShellRenderer), *not* super(IPythonRenderer)
return super(ShellRenderer, self).render(*args, **kwargs)
return super(ShellRenderer, self).render(**kwargs)
def do_render(self, segment_info, **kwargs):
segment_info.update(client_id='ipython')
return super(IPythonRenderer, self).do_render(
segment_info=segment_info,
**kwargs
)
class IPythonPromptRenderer(IPythonRenderer):