![]() NEW: Alternative presentation for call stack (in single window, just like in most debuggers see Tools => Options => Debugger).NEW: Both debug modes now support breakpoints (switch on line numbers and double-click on the margin).NEW: Thonny now has two debug modes: beside original AST based debug mode (the “nicer” one, Ctrl+F5) there is now also line-based mode (the “faster” one, Shift+F5), which is not so intuitive but much more efficient.If you are using Thonny+Python bundle, then 3.0 will start by creating new virtual environment, because the one created for Python 3.6 does not work with Python 3.7. “A special virtual environment” back-end is still available and if you used it with your older Thonny, then Thonny 3.0 will use it as well. As a new feature, Thonny 3.0 offers an easy way for creating and using virtual environments (Tools → Options → Back-end → Alternative Python 3 interpreter or virtual environment). This change does not mean that I now consider virtual environments unimportant. Instructors can now install extra packages to the central interpreter and students will see the packages without any hassle. This means your programs will see all Python packages that are installed to this interpreter. In version 3.0 the default back-end is “The same interpreter which runs Thonny” (by the way, this was already the default setting on Raspberry Pi). It turned out that many instructors did not like this scheme as it often made things more complex and confusing, especially in classroom setting. The idea was to allow students start from clean slate and add packages later without worrying about the integrity of whole system. ![]() Thonny 2.1 introduced automatically managed virtual environment as default back-end. Note that you don’t need to use breakpoints – if you start the debugger without breakpoints, Thonny stops before the first statement, just like it used to. This gives you the margin, where you can add or remove breakpoints with double-clicks. For using them, you need to switch on line numbers (Tools → Options → Editor). Last, but not least, Thonny finally supports breakpoints. Note that both styles can be used with both debugging modes. In “Tools → Options → Debugger” you can switch to more traditional style with a separate view for presenting and switching call frames. Therefore in 3.0 one can choose between two different styles for presenting call stack. ![]() This gives good intuition about the concept, but it may become cumbersome to use. We expect that most students start with the nicer debuger and move on to the faster one when their programs grow bigger.īy default the new debugging mode still uses stacked windows for presenting the call stack. The new mode is not as intuitive but much more efficient. Beside the original AST-based debug mode – the “nicer” one (Ctrl+F5), there is new, traditional line-based mode – the “faster” one (Shift+F5). Although the performance has been greatly improved in 3.0 beta, larger programs would still benefit from a more efficient solution. The original debugger has been very useful for explaining the meaning of Python constructs, but its memory and time overhead became noticeable when making bigger steps in some programs (especially after the introduction of stepping back in time). Thanks to the support from Raspberry Pi Foundation, Thonny now has several new debugger-related features. ![]() You can find download links from Thonny’s homepage. pip GUI (Tools => Manage packages) now installs packages to different location (, section “More straightforward user package management”)Īll new features and changes are listed in the changelog: īig thank you to everybody who have helped Thonny so far!.By default Thonny runs user programs with the same interpreter, which runs the front-end (, section “New default back-end”).For older macs you need to install Python (with Tk 8.6) and Thonny separately. macOS bundle requires at least macOS 10.9.Minimum supported Tk version is 8.6 (recent Python versions published at come with Tk 8.6).Minimum supported Python version (both for the front-end and back-end) is Python 3.5.There are some important changes in the requirements: ![]()
0 Comments
Leave a Reply. |