From 26ac88e9f0796656d6cceeea53298017692eec6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= Date: Mon, 27 Feb 2017 10:34:24 -0500 Subject: [PATCH] Deprecated IPython import surrounded by try except --- spyder/widgets/ipythonconsole/shell.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spyder/widgets/ipythonconsole/shell.py b/spyder/widgets/ipythonconsole/shell.py index e8d3bddca1f..0c36329a117 100644 --- a/spyder/widgets/ipythonconsole/shell.py +++ b/spyder/widgets/ipythonconsole/shell.py @@ -89,7 +89,10 @@ def set_cwd(self, dirname): def long_banner(self): """Banner for IPython widgets with pylab message""" # Default banner - from IPython.core.usage import quick_guide + try: + from IPython.core.usage import quick_guide + except Exception: + quick_guide = '' banner_parts = [ 'Python %s\n' % self.interpreter_versions['python_version'], 'Type "copyright", "credits" or "license" for more information.\n\n',