From 35fde8424e42adc74cd490c5a80b29579c9768d8 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Mon, 5 Dec 2016 16:24:31 +0100 Subject: [PATCH] New documentation based on RD Talk --- display_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/display_utils.py b/display_utils.py index 9fff9df1d..490928a81 100644 --- a/display_utils.py +++ b/display_utils.py @@ -111,6 +111,8 @@ def disp(*args, **kwargs): def set_display_mode(mode): from IPython import get_ipython ipython = get_ipython() + if ipython is None: + return global animation_display_mode global display_animation_func animation_display_mode = mode -- GitLab