From ec6e6088e7a7212ac04af42c90281a066e67a263 2019-05-24 21:45:01 From: Oriol Abril Date: 2019-05-24 21:45:01 Subject: [PATCH] Accept matplotlib backends in uppercase Call to `str.lower()` to accept matplotlib backends written in uppercase, i.e. "Qt5" or "GTK3" --- diff --git a/IPython/core/magics/pylab.py b/IPython/core/magics/pylab.py index f3c70a3..f5d011d 100644 --- a/IPython/core/magics/pylab.py +++ b/IPython/core/magics/pylab.py @@ -96,7 +96,7 @@ class PylabMagics(Magics): backends_list = list(backends.keys()) print("Available matplotlib backends: %s" % backends_list) else: - gui, backend = self.shell.enable_matplotlib(args.gui) + gui, backend = self.shell.enable_matplotlib(args.gui.lower()) self._show_matplotlib_backend(args.gui, backend) @skip_doctest