File tree Expand file tree Collapse file tree 4 files changed +67
-74
lines changed
Expand file tree Collapse file tree 4 files changed +67
-74
lines changed Original file line number Diff line number Diff line change @@ -14,59 +14,7 @@ and interactive visualizations.
1414Install
1515=======
1616
17- .. tab-set ::
18- :class: sd-width-content-min
19-
20- .. tab-item :: pip
21-
22- .. code-block :: bash
23-
24- pip install matplotlib
25-
26- .. tab-item :: conda
27-
28- .. code-block :: bash
29-
30- conda install -c conda-forge matplotlib
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- If you install Python with ``uv `` then the ``tkagg `` backend
47- will not be available because python-build-standalone (used by uv
48- to distribute Python) does not contain tk bindings that are usable by
49- Matplotlib (see `this issue `_ for details). If you want Matplotlib
50- to be able to display plots in a window, you should install one of
51- the other :ref: `supported GUI frameworks <optional_dependencies >`,
52- e.g.
53-
54- .. code-block :: bash
55-
56- uv add matplotlib pyside6
57-
58- .. _this issue : https://github.com/astral-sh/uv/issues/6893#issuecomment-2565965851
59-
60- .. tab-item :: other
61-
62- .. rst-class :: section-toc
63- .. toctree ::
64- :maxdepth: 2
65-
66- install/index
67-
68- For more detailed instructions, see the
69- :doc: `installation guide <install/index >`.
17+ .. include :: install/quick_install.inc.rst
7018
7119Learn
7220=====
Original file line number Diff line number Diff line change 77Installation
88************
99
10+ .. include :: quick_install.inc.rst
11+ :end-before: .. end tab-set
12+
13+ .. _install-official :
1014
1115Install an official release
1216===========================
@@ -35,6 +39,7 @@ precompiled wheel for your OS and Python.
3539 animations and a larger selection of file formats, you can
3640 install :ref: `optional dependencies <optional_dependencies >`.
3741
42+ .. _install-third-party :
3843
3944Third-party distributions
4045=========================
@@ -75,7 +80,7 @@ you can install Matplotlib via your package manager, e.g.:
7580
7681.. redirect-from :: /users/installing/installing_source
7782
78- .. _ install_from_source :
83+ .. _ install-nightly-build :
7984
8085Install a nightly build
8186=======================
@@ -93,6 +98,7 @@ scientific-python-nightly-wheels as the package index to query::
9398 --extra-index-url https://pypi.org/simple \
9499 matplotlib
95100
101+ .. _install-source :
96102
97103Install from source
98104===================
Original file line number Diff line number Diff line change 1+ .. set of quick install commands for reuse across docs
2+
3+ .. tab-set ::
4+ :class: sd-width-content-min
5+
6+ .. tab-item :: pip
7+
8+ .. code-block :: bash
9+
10+ pip install matplotlib
11+
12+ .. tab-item :: conda
13+
14+ .. code-block :: bash
15+
16+ conda install -c conda-forge matplotlib
17+
18+ .. tab-item :: pixi
19+
20+ .. code-block :: bash
21+
22+ pixi add matplotlib
23+
24+ .. tab-item :: uv
25+
26+ .. code-block :: bash
27+
28+ uv add matplotlib
29+
30+ .. warning ::
31+
32+ If you install Python with ``uv `` then the ``tkagg `` backend
33+ will not be available because python-build-standalone (used by uv
34+ to distribute Python) does not contain tk bindings that are usable by
35+ Matplotlib (see `this issue `_ for details). If you want Matplotlib
36+ to be able to display plots in a window, you should install one of
37+ the other :ref: `supported GUI frameworks <optional_dependencies >`,
38+ e.g.
39+
40+ .. code-block :: bash
41+
42+ uv add matplotlib pyside6
43+
44+ .. _this issue : https://github.com/astral-sh/uv/issues/6893#issuecomment-2565965851
45+
46+ .. tab-item :: other
47+
48+ :ref: `install-official `
49+
50+ :ref: `install-third-party `
51+
52+ :ref: `install-nightly-build `
53+
54+ :ref: `install-source `
55+
56+ .. end tab-set
57+
58+ For more detailed instructions, see the :doc: `installation guide </install/index >`.
Original file line number Diff line number Diff line change @@ -4,26 +4,7 @@ Getting started
44Installation quick-start
55------------------------
66
7- .. grid :: 1 1 2 2
8-
9- .. grid-item ::
10-
11- Install using `pip <https://pypi.org/project/matplotlib >`__:
12-
13- .. code-block :: bash
14-
15- pip install matplotlib
16-
17- .. grid-item ::
18-
19- Install using `conda <https://docs.continuum.io/anaconda/ >`__:
20-
21- .. code-block :: bash
22-
23- conda install -c conda-forge matplotlib
24-
25- Further details are available in the :doc: `Installation Guide </install/index >`.
26-
7+ .. include :: /install/quick_install.inc.rst
278
289Draw a first plot
2910-----------------
You can’t perform that action at this time.
0 commit comments