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.