From 9137ee8d288cd8c69f2a8b450d014d85ea157f92 Mon Sep 17 00:00:00 2001 From: Ryan Soklaski Date: Tue, 30 Mar 2021 23:04:06 -0400 Subject: [PATCH] docs: fix lexing --- docs/source/intro.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/intro.rst b/docs/source/intro.rst index 6eb1d043..a8fd70a4 100644 --- a/docs/source/intro.rst +++ b/docs/source/intro.rst @@ -58,7 +58,7 @@ Gradient Descent with MyGrad Performing gradient descent on :math:`\mathscr{L}(w) = w ^ 2` -.. code:: pycon +.. code:: python w = mg.tensor(10.0) learning_rate = 0.3 @@ -160,7 +160,7 @@ Computational Graph Visualization MyGrad provides the capability to visually render diagrams of your computational graphs: -.. code:: pycon +.. code:: python import mygrad as mg from mygrad.computational_graph import build_graph