Skip to content

Commit 901e21d

Browse files
committed
FIX: Map macosx to osx for ipython terminal gui toolkit
The gui toolkit is called "osx" in ipython, so we need to map the Matplotlib's "macosx" name over to that within an ipython session.
1 parent 7ec1b50 commit 901e21d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mpl_gui/_manage_backend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def show_managers(cls, *, managers, block):
166166
# if so are we in an IPython session
167167
ip = mod_ipython.get_ipython()
168168
if ip:
169+
# macosx -> osx mapping for the osx backend in ipython
170+
if required_framework == "macosx":
171+
required_framework = "osx"
169172
ip.enable_gui(required_framework)
170173

171174
# remember to set the global variable

0 commit comments

Comments
 (0)