-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
468 lines (402 loc) · 19.7 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="shortcut icon" href="https://thonny.org/favicon.ico" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.ie.min.css" />
<![endif]-->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SHGHXYBLDM"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag("consent", "default", {
ad_storage: "denied",
analytics_storage: "denied",
functionality_storage: "denied",
personalization_storage: "denied",
security_storage: "denied"
});
gtag('config', 'G-SHGHXYBLDM');
</script>
<title>Thonny, Python IDE for beginners</title>
<style>
body {margin:2em; padding:1em}
h1 {
font-family: Georgia, serif;
margin-bottom: 0em;
font-size: 2.8em;
_color: #8B0000;
}
h2 {
font-family: Verdana, Arial, Helvetica, sans serif;
font-size: 2em;
}
h3 {
font-size: 1.4em;
}
h2.morespace {
margin-top:5em;
}
p {
font-size: 1.15em;
}
#maincolumn {
width:40em;
margin: 0 auto;
}
#downloadbox {
border-style: solid;
border-width: 1px;
border-color: #cccccc;
border-radius: 0.7em;
background-color: #fafafa;
font-size: 1em;
font-family: Georgia, serif;
text-align: left;
white-space: nowrap;
}
#downloadbox td {
padding: 0em;
_border-style: solid;
}
#features-table td {
vertical-align:top;
padding: 0em;
padding-bottom: 2em;
}
#features-table td.imgcell {
padding-left:2em;
}
#features-table img.framed {
border-style: solid;
border-width: 1px;
border-color: gray;
}
.github-fork-ribbon:before {
background-color: #647C64;
}
a {
color: #004cbd;
}
.with-tooltip {
position: relative;
display: inline-block;
text-decoration-style: dashed;
}
.trigger {
border-bottom: 1px dashed;
}
.tooltip-box {
visibility: hidden;
background-color: #fafafa;
text-align: left;
padding: 1em 2em;
border-style: solid;
border-width: 1px;
border-color: #cccccc;
border-radius: 0.7em;
box-shadow: 0.4em 0.8em 0.7em #888888;
right: -1em;
/* Position the tooltip text - see examples below! */
position: absolute;
z-index: 1;
}
.tooltip-box p {
font-size: 1.0em;
}
_.tooltip-box tt {
background: gray;
color: white;
}
.with-tooltip:hover .tooltip-box {
visibility: visible;
}
</style>
</head>
<body>
<a
class="github-corner"
href="https://github.com/thonny/thonny/"
target="_blank"
aria-label="View source on GitHub"
><svg
width="80"
height="80"
viewBox="0 0 250 250"
style="
fill: #60745c;
color: #fff;
position: absolute;
top: 0;
border: 0;
right: 0;
"
aria-hidden="true"
>
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor"
style="transform-origin: 130px 106px"
class="octo-arm"
></path>
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor"
class="octo-body"
></path></svg
></a>
<style>
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
</style>
<div id="maincolumn">
<p align="center" style="margin:1em;margin-bottom:3em; background-color:#fdffdf;border-radius: 0.7em; padding:1em; border-style:solid; border-width: 1px; border-color: #005BBB">
Thonny 4 is dedicated to Ukraine fighting the Russian invasion.<br/>
🇺🇦 Please <a href="https://github.com/thonny/thonny/wiki/Support-Ukraine">support Ukraine</a>! 🇺🇦
</p>
<table id="downloadbox" style="float:right; margin-right:1.1em" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" style="padding:0.8em 0.8em 0.4em 0.8em">
<a href="https://github.com/thonny/thonny/releases"><img src="img/download.png" width="40" height="40" border="0" alt="Download icon"/></a>
</td>
<td style="padding:0.8em 1.2em 0.2em 0em">Download version <b><a href="https://github.com/thonny/thonny/releases/tag/v4.1.6">4.1.6</a></b> for</td>
</tr>
<tr>
<td style="padding:0em 1.2em 0.8em 0em; font-size:1em">
<div class="with-tooltip"><span class="trigger">Windows</span>
<div class="tooltip-box" style="_width: 20em; margin-right: -8em">
<h3>Official downloads for Windows</h3>
<p id="py310_win_64"><b>Installer with 64-bit Python 3.10</b>, requires 64-bit Windows 8.1 / 10 / 11<br/>
<a href="https://github.com/thonny/thonny/releases/download/v4.1.6/thonny-4.1.6.exe">thonny-4.1.6.exe (21 MB)</a></p>
<p id="py38_win_32"><b>Installer with 32-bit Python 3.8</b>, suitable for all Windows versions since 7<br/>
<a href="https://github.com/thonny/thonny/releases/download/v4.1.6/thonny-py38-4.1.6.exe">thonny-py38-4.1.6.exe (20 MB)</a></p>
<p><b>Portable variant with 64-bit Python 3.10</b><br/>
<a href="https://github.com/thonny/thonny/releases/download/v4.1.6/thonny-4.1.6-windows-portable.zip">thonny-4.1.6-windows-portable.zip (31 MB)</a></p>
<p><b>Portable variant with 32-bit Python 3.8</b><br/>
<a href="https://github.com/thonny/thonny/releases/download/v4.1.6/thonny-py38-4.1.6-windows-portable.zip">thonny-py38-4.1.6-windows-portable.zip (29 MB)</a></p>
<p><b>Re-using an existing Python installation</b> (for advanced users)<br/>
<code>pip install thonny</code></p>
</div>
</div>
•
<div class="with-tooltip"><span class="trigger">Mac</span>
<div class="tooltip-box" style="_width: 20em; margin-right: -5em">
<h3>Official downloads for macOS</h3>
<p><b>Installer with Python 3.10</b> (universal2)<br/>
<a href="https://github.com/thonny/thonny/releases/download/v4.1.6/thonny-4.1.6.pkg">thonny-4.1.6.pkg (42 MB)</a></p>
<p><b>Re-using an existing Python installation</b> (for advanced users)<br/>
<code>pip install thonny</code></p>
<hr/>
<h3>3rd party distributions <span style="font-weight:normal">(may have older version)</span></h3>
<p><b>Downloading and launching the installer with Homebrew</b><br/>
<code>brew install thonny</code></p>
</div>
</div>
•
<div class="with-tooltip"><span class="trigger">Linux</span>
<div class="tooltip-box" style="_width: 20em; _margin-left: -10em">
<h3>Official downloads for Linux</h3>
<p><b>Installer</b> (installs private Python 3.10 on x86_64, uses existing python3 elsewhere) <br/>
<code>bash <(wget -O - https://thonny.org/installer-for-linux)</code></p>
<p><b>Re-using an existing Python installation</b> (for advanced users)<br/>
<code>pip3 install thonny</code></p>
<hr/>
<h3>3rd party distributions <span style="font-weight:normal">(may have older version)</span></h3>
<p><b>Flatpak</b><br/>
<code>flatpak install org.thonny.Thonny</code></p>
<p><b>Snap</b><br/>
<code>sudo snap install thonny</code></p>
<p><b>Debian</b>, <b>Raspbian</b>, <b>Ubuntu</b>, <b>Mint</b> and others<br/>
<code>sudo apt install thonny</code></p>
<p><b>Fedora</b><br/>
<code>sudo dnf install thonny</code></p>
</div>
</div>
</td>
</tr>
<!--
<tr><td></td><td style="padding:0.3em 0.8em 0.8em 0.8em;font-size:x-small;text-align:right;font-style:italic">For the curious: <a href="https://github.com/thonny/thonny/releases/tag/v4.1.6">4.1.6</a></td></tr>
-->
</table>
<script>
var recommended;
if (navigator.appVersion.indexOf("Windows ")!=-1 || navigator.appVersion.platform == "Win32") {
// We're on Windows
if ((navigator.userAgent.indexOf("WOW64") != -1 || navigator.userAgent.indexOf("Win64") != -1)
&& (navigator.appVersion.indexOf("Windows NT 11.")!=-1
|| navigator.appVersion.indexOf("Windows NT 10.")!=-1
|| navigator.appVersion.indexOf("Windows NT 6.3")!=-1)) {
recommended = "py310_win_64";
} else {
recommended = "py38_win_32";
}
}
if (recommended) {
elem = document.getElementById(recommended);
if (elem) {
elem.innerHTML += " ⇐ <i>recommended for you</i>";
}
}
</script>
<h1 style="padding-left:0.4em">Thonny</h1>
<div style="font-size:1.2em; font-family: Georgia, serif;padding-left:1em">Python IDE for beginners</div>
<p>
<img width="637" style="clear:both; margin-top:0em; margin-bottom:1.8em" src="img/screenshot.png" alt="Main screenshot"/>
</p>
<div style="margin-left:1.6em; margin-right:1.6em">
<h2>Features</h2>
<table id="features-table" border="0" cellspacing="0" cellpadding="0">
<tr><td>
<p><b>Easy to get started.</b>
Thonny comes with Python 3.10 built in, so just one simple installer is needed and you're ready to learn programming. (You can also use a separate Python installation, if necessary.) The initial user interface is stripped of all features that may distract beginners.</p>
</td><td class="imgcell"><img src="img/get_started.png" width="252" alt="Initial layout" /></td></tr>
<tr><td>
<p><b>No-hassle variables.</b>
Once you're done with hello-worlds, select <i>View → Variables</i> and see how your programs and shell commands affect Python variables.</p>
</td><td class="imgcell"><img class="framed" src="img/variables.png" width="250" alt="Variables table" /></td></tr>
<tr><td>
<p><b>Simple debugger.</b>
Just press Ctrl+F5 instead of F5 and you can run your programs step-by-step, no breakpoints needed.
Press F6 for a big step and F7 for a small step. Steps follow program structure, not just code lines.</p>
</td><td class="imgcell"><img class="framed" src="img/step_by_step.png" width="250" alt="Stepping through statements"/></td></tr>
<tr><td>
<p><b>Step through expression evaluation.</b>
If you use small steps, then you can even see how Python evaluates your expressions. You can think of this light-blue box as a piece of paper where Python replaces subexpressions with their values, piece-by-piece.</p>
</td><td class="imgcell"><img class="framed" src="img/expressions.png" width="250" alt="Visualization of expression evaluation" /></td></tr>
<tr><td>
<p><b>Faithful representation of function calls.</b>
Stepping into a function call opens a new window with separate local variables table and code
pointer. Good understanding of how function calls work is especially important for understanding recursion.</p>
</td><td class="imgcell"><img class="framed" src="img/calls.png" width="250" alt="Visualization of call frames" /></td></tr>
<tr><td>
<p><b>Highlights syntax errors.</b>
Unclosed quotes and parentheses are the most common beginners' syntax errors. Thonny's editor makes these easy to spot.</p>
</td><td class="imgcell"><img class="framed" src="img/unclosed.png" width="250" alt="Visualization of syntax errors" /></td></tr>
<tr><td>
<p><b>Explains scopes.</b>
Highlighting variable occurrences reminds you that the same name doesn't always mean the same variable and helps spotting typos. Local variables are visually distinguished from globals.</p>
</td><td class="imgcell"><img class="framed" src="img/names.png" width="250" alt="Local and global names are visually distinguished" /></td></tr>
<tr><td>
<p><b>Mode for explaining references.</b>
Variables are initially presented according to simplified model (name →
value) but you can switch to more realistic model (name → address/id → value).</p>
</td><td class="imgcell"><img class="framed" src="img/heap.png" width="250" alt="Variables table vs values table"/></td></tr>
<tr><td>
<p><b>Code completion.</b>
Students can explore APIs with the help of code completion.</p>
</td><td class="imgcell"><img class="framed" src="img/completion.png" width="250" alt="Code completion" /></td></tr>
<tr><td>
<p><b>Beginner friendly system shell.</b>
Select <i>Tools → Open system shell</i> to install extra packages or learn handling Python on command line. PATH and conflicts with other Python interpreters are taken care of by Thonny.</p>
</td><td class="imgcell"><img class="framed" src="img/system_shell.png" width="250" alt="System shell prepared for Python commands" /></td></tr>
<tr><td>
<p><b>Simple and clean pip GUI.</b> Select <i>Tools → Manage packages</i> for even easier installation of 3rd party packages.</p>
</td><td class="imgcell"><img class="framed" src="img/pipgui_small.png" width="250" alt="System shell prepared for Python commands" /></td></tr>
</table>
<h2>Demo</h2>
<a href="https://www.youtube.com/watch?v=nwIgxrXP-X4"><img src="img/thonny_youtube.png" style="max-width:100%; height: auto" /></a>
<h2 class="morespace">Credits</h2>
<a href="https://www.ut.ee"><img src="img/unitartu600_blue.png"/></a>
<p>From 2014 to 2018 the main development of Thonny took place in <a href="https://www.cs.ut.ee/">Institute of Computer Science</a> of <a href="https://www.ut.ee">University of Tartu</a>, Estonia.</p>
<p>
<a href="https://cyber.ee/"><img src="img/cybernetica.svg" width="250"/></a><br/>
Since September 2018 development of Thonny is partially supported by <a href="https://cyber.ee/">Cybernetica AS</a>.
</p>
<p>
<a href="https://www.raspberrypi.org/"><img src="img/raspberrypi.png"/></a><br/>
Development of several features in Thonny 3.0 and 3.3 was proposed and supported by <a href="https://www.raspberrypi.org/">Raspberry Pi Foundation</a>.
</p>
<p>
We are also grateful for the help of <a href="https://github.com/thonny/thonny/blob/master/CREDITS.rst">several contributors from the open-source community around the world</a>.
</p>
<h2 class="morespace">Instructions & downloads</h2>
<ul>
<li>Installation instructions</li>
<ul>
<li><a href="https://github.com/thonny/thonny/wiki/Windows">for Windows </a></li>
<li><a href="https://github.com/thonny/thonny/wiki/MacOSX">for Mac</a></li>
<li><a href="https://github.com/thonny/thonny/wiki/Linux">for Linux</a></li>
<li><a href="https://github.com/thonny/thonny/wiki/SeparateInstall">
<code>pip install thonny</code></a></li>
</ul>
<li><a href="https://github.com/thonny/thonny/wiki/FAQ">FAQ</a></li>
<li><a href="https://github.com/thonny/thonny/wiki">Wiki</a></li>
</ul>
<p>Latest stable releases are linked in the download box at the top of this page. Older releases and prereleases can be found at <a
href="https://github.com/thonny/thonny/releases">https://github.com/thonny/thonny/releases</a>
</p>
<a name="plugins"></a>
<h2 class="morespace">Plug-ins</h2>
<p>Thonny has <a href="https://github.com/thonny/thonny/wiki/Plugins">simple infrastructure for extensions</a>.</p>
<p>These are some known Thonny plug-ins:</p>
<ul>
<li><a href="https://pypi.org/project/thonny-gitonic/">thonny-gitonic</a> adds a command for opening <a href="https://github.com/kr-g/gitonic">gitonic</a></li>
<li><s><a href="https://pypi.org/project/thonny-black-format/">thonny-black-format</a></s> (abandoned)</li>
<li><a href="https://pypi.org/project/thonny-black-formatter/">thonny-black-formatter</a> adds a command for formatting current file with <a href="https://black.readthedocs.io/en/stable/">Black</a></li>
<li><a href="https://pypi.org/project/thonny-ev3dev/">thonny-ev3dev</a> allows uploading code to EV3 (and much more)</li>
<li><a href="https://pypi.org/project/thonny-error-explainer/">thonny-error-explainer</a> extends Assistant with new error checkers</li>
<li><a href="https://pypi.org/project/thonny-lahendus/">thonny-lahendus</a> allows loading exercises from <a href="https://lahendus.ut.ee">lahendus.ut.ee</a> and submitting solutions for automatic assessment.</li>
<li><a href="https://pypi.org/project/thonny-edison/">thonny-edison</a> allows uploading Python code to <a href="https://meetedison.com/">Edison educational robot</a></li>
<li><a href="https://pypi.org/project/thonny-dracula/">thonny-dracula</a> adds Dracula syntax theme.</li>
<li><a href="https://pypi.org/project/thonny-onedark/">thonny-onedark</a> adds One Dark syntax theme.</li>
<li><a href="https://pypi.org/project/thonny-crosshair/">thonny-crosshair</a> adds commands for invoking <a href="https://github.com/pschanely/CrossHair">CrossHair analyzer</a>.</li>
<li><a href="https://pypi.org/project/thonny-icontract-hypothesis/">thonny-icontract-hypothesis</a> adds commands for invoking <a href="https://github.com/mristin/icontract-hypothesis">icontract-hypothesis analyzer</a>.</li>
<li><a href="https://pypi.org/project/thonny-py5mode/">thonny-py5mode</a> adds <a href="https://py5coding.org/">py5</a> support for a Processing-like creative coding environment.</li>
<li><a href="https://pypi.org/project/ThonnyFlake8/">ThonnyFlake8</a> adds warnings from <a href="https://github.com/PyCQA/flake8">flake8</a>.</li>
<li><a href="https://pypi.org/project/thonny-autosave/">thonny-autosave</a> adds the option for auto-saving your script in every 10 seconds.</li>
</ul>
<strong>Note that Thonny developers are neither endorsing nor responsible for these plug-ins!</strong>
<h2 class="morespace">Contact & News</h2>
<ul>
<li><a href="https://github.com/thonny/thonny/blob/master/CHANGELOG.rst">Changelog</a></li>
<li><a href="https://groups.google.com/forum/#!forum/thonny">Forum / mailing list</a></li>
<li><a href="https://github.com/thonny/thonny/issues">Issues</a></li>
<li><a href="https://github.com/thonny/thonny/discussions">GitHub Discussions</a></li>
</ul>
<h2 class="morespace">Papers</h2>
<ul>
<li><a
href="https://dl.acm.org/citation.cfm?id=2729094.2754849&coll=DL&dl=GUIDE&CFID=729521140&CFTOKEN=81247902">Thonny,
a Python IDE for learning programming (poster paper at
ITiCSE'15)</a></li>
<li><a href='https://dl.acm.org/citation.cfm?id=2828969'>Introducing
Thonny, a Python IDE for learning programming (short
paper at Koli Calling'15)</a></li>
</ul>
</div>
</div>
</body>
</html>