-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
87 lines (87 loc) · 4.47 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<title>Software Carpentry: Testing, debugging, and profiling</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="css/swc.css" />
<link rel="alternate" type="application/rss+xml" title="Software Carpentry Blog" href="http://software-carpentry.org/feed.xml"/>
<meta charset="UTF-8" />
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="lesson">
<div class="container card">
<div class="banner">
<a href="http://software-carpentry.org" title="Software Carpentry">
<img alt="Software Carpentry banner" src="img/software-carpentry-banner.png" />
</a>
</div>
<article>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<h1 class="title">Testing, debugging, and profiling</h1>
<section class="prereq panel panel-warning">
<div class="panel-heading">
<h2 id="prerequisites"><span class="glyphicon glyphicon-education"></span>Prerequisites</h2>
</div>
<div class="panel-body">
<p>This lesson covers testing, debugging and optimization of Python code. If you have basic knowledge of Python and numpy (mostly used for illustrating examples), then you are ready to go.</p>
<p>If you have already written a test suite, used a symbolic debugger and profiled your Python code to find performance bottlenecks, then this lesson is probably too basic for you.</p>
</div>
</section>
<section class="getready panel panel-warning">
<div class="panel-heading">
<h2 id="getting-ready"><span class="glyphicon glyphicon-check"></span>Getting ready</h2>
</div>
<div class="panel-body">
<p>This lesson is based on <em>Python 3</em>, <em>numpy</em>, and <em>ipython</em> (or the <em>jupyter notebook</em>) and introduces a few tools: <em>pytest</em>, <em>line_profiler</em>, and <em>snakeviz</em> (all included in a standard installation of <a href="https://www.continuum.io/downloads">Anaconda</a>).</p>
</div>
</section>
<p>Material: <a href="testing_debugging_profiling.zip">Example files (zip)</a></p>
<h2 id="topics">Topics</h2>
<ol style="list-style-type: decimal">
<li><a href="00-introduction.html">Introduction</a></li>
</ol>
<h3 id="part-1-testing">Part 1: Testing</h3>
<ol start="2" style="list-style-type: decimal">
<li><a href="01-testing-exceptions.html">Exceptions</a></li>
<li><a href="02-testing-assertions.html">Assertions</a></li>
<li><a href="03-testing-units.html">Unit tests</a></li>
<li><a href="04-testing-pytest.html">Running tests with pytest</a></li>
<li><a href="05-testing-summary.html">Summary</a></li>
</ol>
<h3 id="part-2-debugging">Part 2: Debugging</h3>
<ol start="7" style="list-style-type: decimal">
<li><a href="06-debugging-introduction.html">Introduction</a></li>
<li><a href="07-debugging-post-mortem.html">Post-mortem debugging</a></li>
<li><a href="08-debugging-stepping.html">Step-by-step debugging</a></li>
</ol>
<h3 id="part-3-profiling">Part 3: Profiling</h3>
<ol start="10" style="list-style-type: decimal">
<li><a href="09-profiling-introduction.html">Introduction</a></li>
<li><a href="10-profiling-basic.html">Total runtime measurements</a></li>
<li><a href="11-profiling-detailed.html">Detailed runtime measurements</a></li>
</ol>
</div>
</div>
</article>
<div class="footer">
<a class="label swc-blue-bg" href="http://software-carpentry.org">Software Carpentry</a>
<a class="label swc-blue-bg" href="https://github.com/paris-swc/python-testing-debugging-profiling">Source</a>
<a class="label swc-blue-bg" href="mailto:[email protected]">Contact</a>
<a class="label swc-blue-bg" href="LICENSE.html">License</a>
</div>
</div>
<!-- Javascript placed at the end of the document so the pages load faster -->
<script src="http://software-carpentry.org/v5/js/jquery-1.9.1.min.js"></script>
<script src="css/bootstrap/bootstrap-js/bootstrap.js"></script>
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
</body>
</html>