Skip to content

Commit 5be9b47

Browse files
authored
Merge pull request #7 from matplotlib/fix-ipython-osx
FIX: Map macosx to osx for ipython terminal gui toolkit
2 parents 7ec1b50 + 901e21d commit 5be9b47

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)