Skip to content

Commit 2c456a1

Browse files
authored
Fix command line example formatting by using literal block (#2231)
This properly formats multi-line commands. Signed-off-by: BJ Hargrave <[email protected]>
1 parent 6bd30cf commit 2c456a1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

beginner_source/introyt/captumyt.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@
106106
To install Captum in an Anaconda or pip virtual environment, use the
107107
appropriate command for your environment below:
108108
109-
With ``conda``:
109+
With ``conda``::
110110
111-
``conda install pytorch torchvision captum -c pytorch``
111+
conda install pytorch torchvision captum -c pytorch
112112
113-
With ``pip``:
113+
With ``pip``::
114114
115-
``pip install torch torchvision captum``
115+
pip install torch torchvision captum
116116
117117
Restart this notebook in the environment you set up, and you’re ready to
118118
go!

beginner_source/introyt/tensorboardyt_tutorial.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
To run this tutorial, you’ll need to install PyTorch, TorchVision,
2525
Matplotlib, and TensorBoard.
2626
27-
With ``conda``:
27+
With ``conda``::
2828
29-
``conda install pytorch torchvision -c pytorch``
30-
``conda install matplotlib tensorboard``
29+
conda install pytorch torchvision -c pytorch
30+
conda install matplotlib tensorboard
3131
32-
With ``pip``:
32+
With ``pip``::
3333
34-
``pip install torch torchvision matplotlib tensorboard``
34+
pip install torch torchvision matplotlib tensorboard
3535
3636
Once the dependencies are installed, restart this notebook in the Python
3737
environment where you installed them.

0 commit comments

Comments
 (0)