Skip to content

Commit 3a114cf

Browse files
committed
Website build
1 parent 8faa5e3 commit 3a114cf

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

6_exceptions.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,11 +793,18 @@ <h2><span class="section-number">6.7. </span>Glossary<a class="headerlink" href=
793793
</div>
794794
<div class="section" id="exercises">
795795
<h2><span class="section-number">6.8. </span>Exercises<a class="headerlink" href="#exercises" title="Permalink to this headline"></a></h2>
796-
<p>Obtain the <a class="reference internal" href="not_released.html"><span class="doc">skeleton code for these exercises from GitHub classroom</span></a>.</p>
797-
<div class="admonition note">
798-
<p class="admonition-title">Note</p>
799-
<p>Put some Byzantine stack trace example in here.</p>
796+
<div class="sphinx-bs container pb-4 docutils">
797+
<div class="row docutils">
798+
<div class="d-flex col-lg-6 col-md-6 col-sm-6 col-xs-12 p-2 docutils">
799+
<div class="card w-100 quiz shadow docutils">
800+
<div class="card-body docutils">
801+
<p class="card-text"><a class="sphinx-bs btn text-wrap stretched-link reference external" href="https://bb.imperial.ac.uk/webapps/assessment/take/launchAssessment.jsp?course_id=_25965_1&amp;content_id=_2083792_1&amp;mode=cpview"><span>This week’s quiz</span></a></p>
802+
</div>
803+
</div>
804+
</div>
805+
</div>
800806
</div>
807+
<p>Obtain the <a class="reference external" href="https://classroom.github.com/a/JqFsKmoR">skeleton code for these exercises from GitHub classroom</a>.</p>
801808
<div class="proof proof-type-exercise" id="id8">
802809

803810
<div class="proof-title">

_sources/6_exceptions.rst.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,14 @@ Glossary
808808
Exercises
809809
---------
810810

811-
Obtain the :doc:`skeleton code for these exercises from GitHub classroom <not_released>`.
811+
.. panels::
812+
:card: quiz shadow
812813

813-
.. note::
814+
.. link-button:: https://bb.imperial.ac.uk/webapps/assessment/take/launchAssessment.jsp?course_id=_25965_1&content_id=_2083792_1&mode=cpview
815+
:text: This week's quiz
816+
:classes: stretched-link
814817

815-
Put some Byzantine stack trace example in here.
818+
Obtain the `skeleton code for these exercises from GitHub classroom <https://classroom.github.com/a/JqFsKmoR>`__.
816819

817820
.. proof:exercise::
818821

_sources/quiz_material.rst.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@
104104
5 def b(x, y, z):
105105
106106
ZeroDivisionError: float division by zero
107+
108+
109+
.. code-block:: python3
110+
111+
assert math.isclose(calc.peek(), answer, rel_tol=1.e-5), \

quiz_material.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@
147147

148148
<span class="ne">ZeroDivisionError</span><span class="p">:</span> <span class="nb">float</span> <span class="n">division</span> <span class="n">by</span> <span class="n">zero</span>
149149
</pre></div>
150+
</div>
151+
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">assert</span> <span class="n">math</span><span class="o">.</span><span class="n">isclose</span><span class="p">(</span><span class="n">calc</span><span class="o">.</span><span class="n">peek</span><span class="p">(),</span> <span class="n">answer</span><span class="p">,</span> <span class="n">rel_tol</span><span class="o">=</span><span class="mf">1.e-5</span><span class="p">),</span> \
152+
</pre></div>
150153
</div>
151154

152155

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)