You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2_programs_in_files.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@
60
60
<divclass="body" role="main">
61
61
62
62
<divclass="section" id="programs-in-files">
63
-
<h1><spanclass="section-number">2. </span>Programs in files<aclass="headerlink" href="#programs-in-files" title="Permalink to this headline">¶</a></h1>
63
+
<spanid="programs-files"></span><h1><spanclass="section-number">2. </span>Programs in files<aclass="headerlink" href="#programs-in-files" title="Permalink to this headline">¶</a></h1>
64
64
<p>This week we will start to learn how to combine pieces of code into larger units,
65
65
and how to package up your code so that you or others can do the same.
66
66
You will previously have written Python code in Jupyter notebooks, and
@@ -281,7 +281,7 @@ <h3><span class="section-number">2.4.2. </span>When to use scripts<a class="head
281
281
scripts to a git repository, making a new commit every time you edit
282
282
it, you would also be able to go back and find the point at which the
283
283
script stopped working. We will return to this debugging technique in
<h3><spanclass="section-number">2.4.3. </span>When not to use scripts<aclass="headerlink" href="#when-not-to-use-scripts" title="Permalink to this headline">¶</a></h3>
the practical details of including tests in your code here.</p>
651
651
<p>There are a number of Python packages which support code testing. The
652
652
concepts are largely similar so rather than get bogged down in the
653
-
details of multiple frameworks, we will introduce <aclass="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v0.1.dev208+g22c0dac)"><spanclass="xref std std-doc">pytest</span></a>, which is one of the most widely used. Pytest is simply a Python
653
+
details of multiple frameworks, we will introduce <aclass="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v0.1.dev223+g79b03ce)"><spanclass="xref std std-doc">pytest</span></a>, which is one of the most widely used. Pytest is simply a Python
654
654
package, so you can install it into your current environment using:</p>
0 commit comments