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.
14
14
Install
15
15
=======
16
16
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
70
18
71
19
Learn
72
20
=====
Original file line number Diff line number Diff line change 7
7
Installation
8
8
************
9
9
10
+ .. include :: quick_install.inc.rst
11
+ :end-before: .. end tab-set
12
+
13
+ .. _install-official :
10
14
11
15
Install an official release
12
16
===========================
@@ -35,6 +39,7 @@ precompiled wheel for your OS and Python.
35
39
animations and a larger selection of file formats, you can
36
40
install :ref: `optional dependencies <optional_dependencies >`.
37
41
42
+ .. _install-third-party :
38
43
39
44
Third-party distributions
40
45
=========================
@@ -75,7 +80,7 @@ you can install Matplotlib via your package manager, e.g.:
75
80
76
81
.. redirect-from :: /users/installing/installing_source
77
82
78
- .. _ install_from_source :
83
+ .. _ install-nightly-build :
79
84
80
85
Install a nightly build
81
86
=======================
@@ -93,6 +98,7 @@ scientific-python-nightly-wheels as the package index to query::
93
98
--extra-index-url https://pypi.org/simple \
94
99
matplotlib
95
100
101
+ .. _install-source :
96
102
97
103
Install from source
98
104
===================
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
4
4
Installation quick-start
5
5
------------------------
6
6
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
27
8
28
9
Draw a first plot
29
10
-----------------
You can’t perform that action at this time.
0 commit comments