GeezerVison is showing github.com — DOC: Add install instructions for pixi and uv · matplotlib/matplotlib@00148a8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/index.rst +26Lines changed: 26 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,6 +29,32 @@ Install |
29 | 29 |
|
30 | 30 | conda install -c conda-forge matplotlib |
31 | 31 |
|
| 32 | + .. tab-item:: pixi |
| 33 | + |
| 34 | + .. code-block:: bash |
| 35 | +
|
| 36 | + pixi add matplotlib |
| 37 | +
|
| 38 | + .. tab-item:: uv |
| 39 | + |
| 40 | + .. code-block:: bash |
| 41 | +
|
| 42 | + uv add matplotlib |
| 43 | +
|
| 44 | + .. warning:: |
| 45 | + |
| 46 | + Python versions distributed by uv do not contain tk bindings that are |
| 47 | + usable by Matplotlib (see `this issue`_ for details). Therefore, the |
| 48 | + ``tkagg`` backend is not available. If you want matplotlib to be able |
| 49 | + to display plots in a window, you should install one of the other |
| 50 | + :ref:`supported GUI frameworks <optional_dependencies>`, e.g. |
| 51 | + |
| 52 | + .. code-block:: bash |
| 53 | +
|
| 54 | + uv add matplotlib pyside6 |
| 55 | +
|
| 56 | + .. _this issue: https://github.com/astral-sh/uv/issues/6893#issuecomment-2565965851 |
| 57 | + |
32 | 58 | .. tab-item:: other |
33 | 59 |
|
34 | 60 | .. rst-class:: section-toc |
|
Collapse file
Copy file name to clipboardExpand all lines: doc/install/index.rst +2-1Lines changed: 2 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,8 @@ precompiled wheel for your OS and Python. |
28 | 28 | The following backends work out of the box: Agg, ps, pdf, svg |
29 | 29 |
|
30 | 30 | Python is typically shipped with tk bindings which are used by |
31 | | - TkAgg. |
| 31 | + TkAgg. Notably, python-build-standalone -- used by ``uv`` -- does |
| 32 | + not include tk bindings that are usable by Matplotlib. |
32 | 33 |
|
33 | 34 | For support of other GUI frameworks, LaTeX rendering, saving |
34 | 35 | animations and a larger selection of file formats, you can |
|