@@ -13,16 +13,14 @@ Working with Matplotlib on OSX
1313Introduction
1414============
1515
16- On OSX, two different types of Python Builds exist: a regular build and a
17- framework build. In order to interact correctly with OSX through the native
18- GUI frameworks you need a framework build of Python.
19- At the time of writing the ``macosx `` and ``WXAgg `` backends require a
20- framework build to function correctly. This can result in issues for
21- a python installation not build as a framework and may also happen in
22- virtual envs and when using (Ana)Conda.
23- From Matplotlib 1.5 onwards the ``macosx `` backend
24- checks that a framework build is available and fails if a non framework
25- build is found. WX has a similar check build in.
16+ On OSX, two different types of Python builds exist: a regular build and a
17+ framework build. In order to interact correctly with OSX through the native
18+ GUI frameworks you need a framework build of Python. At the time of writing
19+ the ``macosx `` and ``WXAgg `` backends require a framework build to function
20+ correctly. This can result in issues for a Python installation not build as a
21+ framework and may also happen in virtual envs and when using (Ana)Conda. From
22+ Matplotlib 1.5 onwards, both backends check that a framework build is available
23+ and fail if a non framework build is found.
2624
2725Without this check a partially functional figure is created.
2826Among the issues with it is that it is produced in the background and
@@ -103,9 +101,9 @@ build within the virtual environment you can do ``frameworkpython -m IPython``
103101``PYTHONHOME `` and Jupyter
104102^^^^^^^^^^^^^^^^^^^^^^^^^^
105103
106- This approach can be followed even if using `Jupyter <https://jupyter.org/ >`_
107- notebooks: you just need to setup a kernel with the suitable ``PYTHONHOME ``
108- definition. The `jupyter-virtualenv-osx <https://github.com/mapio/jupyter-virtualenv-osx >`_
104+ This approach can be followed even if using `Jupyter <https://jupyter.org/ >`_
105+ notebooks: you just need to setup a kernel with the suitable ``PYTHONHOME ``
106+ definition. The `jupyter-virtualenv-osx <https://github.com/mapio/jupyter-virtualenv-osx >`_
109107script automates the creation of such a kernel.
110108
111109
@@ -139,7 +137,7 @@ With this in place you can run ``frameworkpython`` as above but will need to add
139137to every virtualenv
140138
141139PythonW Compiler
142- ^^^^^^^^^^^^^^^^
140+ ----------------
143141
144142In addition
145143`virtualenv-pythonw-osx <https://github.com/gldnspud/virtualenv-pythonw-osx >`_
0 commit comments