##// END OF EJS Templates
Convert matplotlib gui name in enable_gui (#14451)...
Convert matplotlib gui name in enable_gui (#14451) This is a bug that I discovered whilst dealing with matplotlib/matplotlib#28332. The change here is in `TerminalInteractiveShell.enable_gui` which needs to convert a gui of `macosx` from Matplotlib into `osx` in IPython. It reuses the converter function created in #14420. I've added a test that uses `enable_gui` and raises an exception before this PR but passes with it. The remainder of the changes are formatting changes from `pre-commit`.

File last commit:

r26034:4920c37a
r28797:41362418 merge
Show More
pycompat.rst
32 lines | 1.2 KiB | text/x-rst | RstLexer

Writing code for Python 2 and 3

IPython 6 requires Python 3, so our compatibility module IPython.utils.py3compat is deprecated and will be removed in a future version. In most cases, we recommend you use the six module to support compatible code. This is widely used by other projects, so it is familiar to many developers and thoroughly battle-tested.

Our py3compat module provided some more specific unicode conversions than those offered by six. If you want to use these, copy them into your own code from IPython 5.x. Do not rely on importing them from IPython, as the module may be removed in the future.