From 6f4b078e4ae6fc4e19eae62462427a860230bdc9 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Fri, 17 Feb 2023 10:06:59 -0500 Subject: [PATCH] Fix command line example formatting by using literal block This properly formats multi-line commands. Signed-off-by: BJ Hargrave --- beginner_source/introyt/captumyt.py | 8 ++++---- beginner_source/introyt/tensorboardyt_tutorial.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/beginner_source/introyt/captumyt.py b/beginner_source/introyt/captumyt.py index 5e1bb92016a..fe73613dcb2 100644 --- a/beginner_source/introyt/captumyt.py +++ b/beginner_source/introyt/captumyt.py @@ -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! diff --git a/beginner_source/introyt/tensorboardyt_tutorial.py b/beginner_source/introyt/tensorboardyt_tutorial.py index 3b07fe0b8de..4c7c356fd0c 100644 --- a/beginner_source/introyt/tensorboardyt_tutorial.py +++ b/beginner_source/introyt/tensorboardyt_tutorial.py @@ -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.