Make IPython renderer shutdown properly

This commit is contained in:
ZyX 2013-04-07 13:19:20 +04:00
parent 2685f61e88
commit 8dcbb031aa
1 changed files with 6 additions and 0 deletions

View File

@ -25,5 +25,11 @@ class IpythonRenderer(ShellRenderer):
match['theme'] = Theme(theme_config=match['config'], top_theme_config=self.theme_config, **self.theme_kwargs)
return match['theme']
def shutdown(self):
self.theme.shutdown()
for match in self.local_themes.values():
if 'theme' in match:
match['theme'].shutdown()
renderer = IpythonRenderer