Skip to content

Fix command line example formatting by using literal block #2231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions beginner_source/introyt/captumyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@
To install Captum in an Anaconda or pip virtual environment, use the
appropriate command for your environment below:

With ``conda``:
With ``conda``::

``conda install pytorch torchvision captum -c pytorch``
conda install pytorch torchvision captum -c pytorch

With ``pip``:
With ``pip``::

``pip install torch torchvision captum``
pip install torch torchvision captum

Restart this notebook in the environment you set up, and you’re ready to
go!
Expand Down
10 changes: 5 additions & 5 deletions beginner_source/introyt/tensorboardyt_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
To run this tutorial, you’ll need to install PyTorch, TorchVision,
Matplotlib, and TensorBoard.

With ``conda``:
With ``conda``::

``conda install pytorch torchvision -c pytorch``
``conda install matplotlib tensorboard``
conda install pytorch torchvision -c pytorch
conda install matplotlib tensorboard

With ``pip``:
With ``pip``::

``pip install torch torchvision matplotlib tensorboard``
pip install torch torchvision matplotlib tensorboard

Once the dependencies are installed, restart this notebook in the Python
environment where you installed them.
Expand Down