Skip to content

Commit 6c386b7

Browse files
authored
gh-125403: fix console formatting in Chapter 12 of the tutorial (#125404)
1 parent cd0f9d1 commit 6c386b7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/tutorial/venv.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ virtual environment you're using, and modify the environment so that running
7676
``python`` will get you that particular version and installation of Python.
7777
For example:
7878

79-
.. code-block:: bash
79+
.. code-block:: console
8080
8181
$ source ~/envs/tutorial-env/bin/activate
8282
(tutorial-env) $ python
@@ -108,7 +108,7 @@ complete documentation for ``pip``.)
108108

109109
You can install the latest version of a package by specifying a package's name:
110110

111-
.. code-block:: bash
111+
.. code-block:: console
112112
113113
(tutorial-env) $ python -m pip install novas
114114
Collecting novas
@@ -120,7 +120,7 @@ You can install the latest version of a package by specifying a package's name:
120120
You can also install a specific version of a package by giving the
121121
package name followed by ``==`` and the version number:
122122

123-
.. code-block:: bash
123+
.. code-block:: console
124124
125125
(tutorial-env) $ python -m pip install requests==2.6.0
126126
Collecting requests==2.6.0
@@ -133,7 +133,7 @@ version is already installed and do nothing. You can supply a
133133
different version number to get that version, or you can run ``python
134134
-m pip install --upgrade`` to upgrade the package to the latest version:
135135

136-
.. code-block:: bash
136+
.. code-block:: console
137137
138138
(tutorial-env) $ python -m pip install --upgrade requests
139139
Collecting requests
@@ -148,7 +148,7 @@ remove the packages from the virtual environment.
148148

149149
``python -m pip show`` will display information about a particular package:
150150

151-
.. code-block:: bash
151+
.. code-block:: console
152152
153153
(tutorial-env) $ python -m pip show requests
154154
---
@@ -166,7 +166,7 @@ remove the packages from the virtual environment.
166166
``python -m pip list`` will display all of the packages installed in
167167
the virtual environment:
168168

169-
.. code-block:: bash
169+
.. code-block:: console
170170
171171
(tutorial-env) $ python -m pip list
172172
novas (3.1.1.3)
@@ -179,7 +179,7 @@ the virtual environment:
179179
but the output uses the format that ``python -m pip install`` expects.
180180
A common convention is to put this list in a ``requirements.txt`` file:
181181

182-
.. code-block:: bash
182+
.. code-block:: console
183183
184184
(tutorial-env) $ python -m pip freeze > requirements.txt
185185
(tutorial-env) $ cat requirements.txt
@@ -191,7 +191,7 @@ The ``requirements.txt`` can then be committed to version control and
191191
shipped as part of an application. Users can then install all the
192192
necessary packages with ``install -r``:
193193

194-
.. code-block:: bash
194+
.. code-block:: console
195195
196196
(tutorial-env) $ python -m pip install -r requirements.txt
197197
Collecting novas==3.1.1.3 (from -r requirements.txt (line 1))

0 commit comments

Comments
 (0)