From f94771c55b7c815c4efa8509767dadc71a273e0c 2015-02-13 19:01:11 From: Min RK Date: 2015-02-13 19:01:11 Subject: [PATCH] add `%matplotlib notebook` alias for `%matplotlib nbagg` --- diff --git a/IPython/core/pylabtools.py b/IPython/core/pylabtools.py index 682617d..af0fd65 100644 --- a/IPython/core/pylabtools.py +++ b/IPython/core/pylabtools.py @@ -22,6 +22,7 @@ backends = {'tk': 'TkAgg', 'qt5': 'Qt5Agg', 'osx': 'MacOSX', 'nbagg': 'nbAgg', + 'notebook': 'nbAgg', 'inline' : 'module://IPython.kernel.zmq.pylab.backend_inline'} # We also need a reverse backends2guis mapping that will properly choose which diff --git a/IPython/kernel/zmq/eventloops.py b/IPython/kernel/zmq/eventloops.py index f2a90cd..33eea0e 100644 --- a/IPython/kernel/zmq/eventloops.py +++ b/IPython/kernel/zmq/eventloops.py @@ -40,6 +40,7 @@ def _notify_stream_qt(kernel, stream): loop_map = { 'inline': None, 'nbagg': None, + 'notebook': None, None : None, }