![]() ![]() Since September 2018 development of Thonny is partially supported by Cybernetica AS.ĭevelopment of several features in Thonny 3.0 and 3.3 was proposed and supported by Raspberry Pi Foundation. Select Tools → Manage packages for even easier installation of 3rd party packages.įrom 2014 to 2018 the main development of Thonny took place in Institute of Computer Science of University of Tartu, Estonia. PATH and conflicts with other Python interpreters are taken care of by Thonny. Select Tools → Open system shell to install extra packages or learn handling Python on command line. Students can explore APIs with the help of code completion. Value) but you can switch to more realistic model (name → address/id → value). Variables are initially presented according to simplified model (name → Local variables are visually distinguished from globals. Highlighting variable occurrences reminds you that the same name doesn't always mean the same variable and helps spotting typos. Thonny's editor makes these easy to spot. Unclosed quotes and parentheses are the most common beginners' syntax errors. Good understanding of how function calls work is especially important for understanding recursion. Stepping into a function call opens a new window with separate local variables table and code You can think of this light-blue box as a piece of paper where Python replaces subexpressions with their values, piece-by-piece.įaithful representation of function calls. ![]() If you use small steps, then you can even see how Python evaluates your expressions. Steps follow program structure, not just code lines. Press F6 for a big step and F7 for a small step. Just press Ctrl+F5 instead of F5 and you can run your programs step-by-step, no breakpoints needed. Once you're done with hello-worlds, select View → Variables and see how your programs and shell commands affect Python variables. (You can also use a separate Python installation, if necessary.) The initial user interface is stripped of all features that may distract beginners. Ĭreated using WordPress.Thonny comes with Python 3.10 built in, so just one simple installer is needed and you're ready to learn programming. If you want to explore Thonny further, visit. (I have made a portable copy of it available here if anyone is interested.) This would clearly benefit classes where you don’t have the ability to install programs. The download site doesn’t say that the program runs portably (i.e., off a USB key) but so far my tests indicate that it does. The debugger seems very easy to use, and I really like how easy it is to show the variable values as the program is run the object inspector, which should give students an incredible insight into what functions are available to them as they code and code completion which can be accessed by tapping the key. …but then as you start getting comfortable programming you can turn on additional view options, as shown here: Its claim to fame is that it can start as a simple editor with just an editing window and a shell, as shown here: I recently learned about this editor from a post someone sent to the ACSE mail list. Today I’m giving a demo of the Thonny Python IDE (Integrated Development Environment) to my Computer Studies students.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |