From f3878c749fee3733f29f91fb5f6c1c81a51e2a4c Mon Sep 17 00:00:00 2001 From: Ziad Amerr <70425741+ZiadAmerr@users.noreply.github.com> Date: Thu, 20 Jun 2024 19:05:21 +0300 Subject: [PATCH] Fixed LaTeX rendering in some demo notebooks (#1890) * Fixed LaTeX rendering in some demo notebooks The current notebooks are incorrectly rendered because the dollar sign should not be perceded by a space to be rendered correctly in Visual Studio Code cells, adding a space around them fixes the problem, however it does render correctly on GitHub * Updated required fix Co-authored-by: Nicolas Brichet <32258950+brichet@users.noreply.github.com> --------- Co-authored-by: Nicolas Brichet <32258950+brichet@users.noreply.github.com> --- .../source/user_guide/autograded/bitdiddle/ps1/problem1.ipynb | 2 +- .../source/user_guide/autograded/bitdiddle/ps1/problem2.ipynb | 2 +- .../docs/source/user_guide/autograded/hacker/ps1/problem1.ipynb | 2 +- .../docs/source/user_guide/autograded/hacker/ps1/problem2.ipynb | 2 +- .../ps1_hacker_attempt_2016-01-30-20-30-10_problem1.ipynb | 2 +- .../docs/source/user_guide/feedback/bitdiddle/ps1/problem1.html | 2 +- .../docs/source/user_guide/feedback/bitdiddle/ps1/problem2.html | 2 +- .../docs/source/user_guide/feedback/hacker/ps1/problem1.html | 2 +- .../docs/source/user_guide/feedback/hacker/ps1/problem2.html | 2 +- nbgrader/docs/source/user_guide/release/ps1/problem1.ipynb | 2 +- nbgrader/docs/source/user_guide/release/ps1/problem2.ipynb | 2 +- nbgrader/docs/source/user_guide/source/header.ipynb | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem1.ipynb b/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem1.ipynb index 996d0f5b9..71ed5af99 100644 --- a/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem1.ipynb +++ b/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem1.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem2.ipynb b/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem2.ipynb index b4a2e4800..ad774477c 100644 --- a/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem2.ipynb +++ b/nbgrader/docs/source/user_guide/autograded/bitdiddle/ps1/problem2.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem1.ipynb b/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem1.ipynb index 0e81ffbc4..ea34e15ec 100644 --- a/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem1.ipynb +++ b/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem1.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem2.ipynb b/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem2.ipynb index 9f042b96b..0325b77ce 100644 --- a/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem2.ipynb +++ b/nbgrader/docs/source/user_guide/autograded/hacker/ps1/problem2.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/downloaded/ps1/archive/ps1_hacker_attempt_2016-01-30-20-30-10_problem1.ipynb b/nbgrader/docs/source/user_guide/downloaded/ps1/archive/ps1_hacker_attempt_2016-01-30-20-30-10_problem1.ipynb index 5f96a95da..8eaad7dc2 100644 --- a/nbgrader/docs/source/user_guide/downloaded/ps1/archive/ps1_hacker_attempt_2016-01-30-20-30-10_problem1.ipynb +++ b/nbgrader/docs/source/user_guide/downloaded/ps1/archive/ps1_hacker_attempt_2016-01-30-20-30-10_problem1.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem1.html b/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem1.html index 6ae63490e..5582e3d41 100644 --- a/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem1.html +++ b/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem1.html @@ -240,7 +240,7 @@

problem1 (Score: 1.5 / 10.0)

-

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel$\rightarrow$Restart) and then run all cells (in the menubar, select Cell$\rightarrow$Run All).

+

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel $\rightarrow$ Restart) and then run all cells (in the menubar, select Cell $\rightarrow$ Run All).

Make sure you fill in any place that says YOUR CODE HERE or "YOUR ANSWER HERE", as well as your name and collaborators below:

diff --git a/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem2.html b/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem2.html index 1166479aa..378455532 100644 --- a/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem2.html +++ b/nbgrader/docs/source/user_guide/feedback/bitdiddle/ps1/problem2.html @@ -234,7 +234,7 @@

problem2 (Score: 0.0 / 3.0)

-

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel$\rightarrow$Restart) and then run all cells (in the menubar, select Cell$\rightarrow$Run All).

+

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel $\rightarrow$ Restart) and then run all cells (in the menubar, select Cell $\rightarrow$ Run All).

Make sure you fill in any place that says YOUR CODE HERE or "YOUR ANSWER HERE", as well as your name and collaborators below:

diff --git a/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem1.html b/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem1.html index a2a4f793f..2e0672204 100644 --- a/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem1.html +++ b/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem1.html @@ -239,7 +239,7 @@

problem1 (Score: 3.0 / 10.0)

-

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel$\rightarrow$Restart) and then run all cells (in the menubar, select Cell$\rightarrow$Run All).

+

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel $\rightarrow$ Restart) and then run all cells (in the menubar, select Cell $\rightarrow$ Run All).

Make sure you fill in any place that says YOUR CODE HERE or "YOUR ANSWER HERE", as well as your name and collaborators below:

diff --git a/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem2.html b/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem2.html index 1d524f3ab..a7b8680eb 100644 --- a/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem2.html +++ b/nbgrader/docs/source/user_guide/feedback/hacker/ps1/problem2.html @@ -234,7 +234,7 @@

problem2 (Score: 0.0 / 3.0)

-

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel$\rightarrow$Restart) and then run all cells (in the menubar, select Cell$\rightarrow$Run All).

+

Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel $\rightarrow$ Restart) and then run all cells (in the menubar, select Cell $\rightarrow$ Run All).

Make sure you fill in any place that says YOUR CODE HERE or "YOUR ANSWER HERE", as well as your name and collaborators below:

diff --git a/nbgrader/docs/source/user_guide/release/ps1/problem1.ipynb b/nbgrader/docs/source/user_guide/release/ps1/problem1.ipynb index a0fe00c37..7706218da 100644 --- a/nbgrader/docs/source/user_guide/release/ps1/problem1.ipynb +++ b/nbgrader/docs/source/user_guide/release/ps1/problem1.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/release/ps1/problem2.ipynb b/nbgrader/docs/source/user_guide/release/ps1/problem2.ipynb index 14ad25211..ac600e6b4 100644 --- a/nbgrader/docs/source/user_guide/release/ps1/problem2.ipynb +++ b/nbgrader/docs/source/user_guide/release/ps1/problem2.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ] diff --git a/nbgrader/docs/source/user_guide/source/header.ipynb b/nbgrader/docs/source/user_guide/source/header.ipynb index 23980b65f..00c8dcfc6 100644 --- a/nbgrader/docs/source/user_guide/source/header.ipynb +++ b/nbgrader/docs/source/user_guide/source/header.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\\rightarrow$Run All).\n", + "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel $\\rightarrow$ Restart) and then **run all cells** (in the menubar, select Cell $\\rightarrow$ Run All).\n", "\n", "Make sure you fill in any place that says `YOUR CODE HERE` or \"YOUR ANSWER HERE\", as well as your name and collaborators below:" ]