@@ -13,16 +13,14 @@ Working with Matplotlib on OSX
13
13
Introduction
14
14
============
15
15
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.
26
24
27
25
Without this check a partially functional figure is created.
28
26
Among 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``
103
101
``PYTHONHOME `` and Jupyter
104
102
^^^^^^^^^^^^^^^^^^^^^^^^^^
105
103
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 >`_
109
107
script automates the creation of such a kernel.
110
108
111
109
@@ -139,7 +137,7 @@ With this in place you can run ``frameworkpython`` as above but will need to add
139
137
to every virtualenv
140
138
141
139
PythonW Compiler
142
- ^^^^^^^^^^^^^^^^
140
+ ----------------
143
141
144
142
In addition
145
143
`virtualenv-pythonw-osx <https://github.com/gldnspud/virtualenv-pythonw-osx >`_
0 commit comments