Skip to content

Commit

Permalink
Merge pull request #13778 from zhizheng1/fix-mpl-webagg
Browse files Browse the repository at this point in the history
Enable webagg in %matplotlib magic
  • Loading branch information
Carreau committed Oct 29, 2022
2 parents daa768d + 5ab1ecc commit 1b5674c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions IPython/core/pylabtools.py
Expand Up @@ -26,6 +26,7 @@
"qt": "Qt5Agg",
"osx": "MacOSX",
"nbagg": "nbAgg",
"webagg": "WebAgg",
"notebook": "nbAgg",
"agg": "agg",
"svg": "svg",
Expand Down
5 changes: 2 additions & 3 deletions IPython/terminal/interactiveshell.py
Expand Up @@ -711,9 +711,8 @@ def inputhook(self, context):

active_eventloop = None
def enable_gui(self, gui=None):
if gui and (gui != 'inline') :
self.active_eventloop, self._inputhook =\
get_inputhook_name_and_func(gui)
if gui and (gui not in {"inline", "webagg"}):
self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui)
else:
self.active_eventloop = self._inputhook = None

Expand Down

0 comments on commit 1b5674c

Please sign in to comment.