Thonny blog
发布时间:2026-09-21 | 浏览:1
Thonny blog https://thonny.org/blog/ Python IDE for beginners en-us Sat, 09 Feb 2019 00:00:00 +0200 https://thonny.org/blog/2019/02/09/version_3_1_1.html https://thonny.org/blog/2019/02/09/version_3_1_1.html <![CDATA[Version 3.1.1]]> <h1>Version 3.1.1</h1> <p>This is last release announcement in the blog. From now on Thonny’s development takes place in GitHub (<a class="reference external" href="https://github.com/thonny/thonny">https://github.com/thonny/thonny</a>) and the releases will be described there:</p> <ul class="simple"> <li><a class="reference external" href="https://github.com/thonny/thonny/releases/tag/v3.1.0">https://github.com/thonny/thonny/releases/tag/v3.1.0</a></li> <li><a class="reference external" href="https://github.com/thonny/thonny/releases/tag/v3.1.1">https://github.com/thonny/thonny/releases/tag/v3.1.1</a></li> </ul> releases Sat, 09 Feb 2019 00:00:00 +0200 https://thonny.org/blog/2018/11/17/version_3_0_8.html https://thonny.org/blog/2018/11/17/version_3_0_8.html <![CDATA[Version 3.0.8]]> <h1>Version 3.0.8</h1> <p>This is a bug-fix release.</p> <p>Changes since 3.0.5:</p> <div class="section" id="id1"> <h2>3.0.8 (2018-11-15)</h2> <ul class="simple"> <li>FIXED #597: The directory with Python scripts may not be in path for executing system commands from shell</li> <li>FIXED: Make executing shell commands compatible with Python 3.5</li> <li>FIXED: Make MyPy support compatible with older MyPy versions</li> <li>FIXED: Make turtle.pyi compatible with Python 3.5 and remove Windows linebreaks</li> <li>FIXED: MyPy error col offset</li> </ul> </div> <div class="section" id="id2"> <h2>3.0.7 (2018-11-14)</h2> <ul class="simple"> <li>FIXED #592: MyPy doesn’t work when cwd == sys.prefix</li> <li>FIXED #593: No-message exceptions crash the Assistant</li> <li>FIXED #595: Running system commands causes an error</li> <li>FIXED #596: Arguments are ignored when running system commands from shell in Posix</li> </ul> </div> <div class="section" id="id3"> <h2>3.0.6 (2018-11-13)</h2> <ul class="simple"> <li>FIXED #538: Turtle programs may give false warnings (Typeshed stubs were not packaged)</li> <li>FIXED #586: Import interception mechanism fails for some modules</li> <li>FIXED #591: Assistant fails when filename is missing from error info</li> </ul> </div> releases Sat, 17 Nov 2018 00:00:00 +0200 https://thonny.org/blog/2018/10/28/version_3_0_5.html https://thonny.org/blog/2018/10/28/version_3_0_5.html <![CDATA[Version 3.0.5]]> <h1>Version 3.0.5</h1> <p>Here are the changes since <a class="reference external" href="https://thonny.org/blog/2018/10/18/version_3_0_1.html">version 3.0.1</a>:</p> <div class="section" id="id1"> <h2>3.0.5 (2018-10-26)</h2> <ul class="simple"> <li>FIXED #573: “Highlight matching names” and “Highlight local variables” makes editor very slow</li> <li>FIXED #574: Error in outline</li> <li>FIXED #578: resizing local variable pane in debugger causes error</li> </ul> </div> <div class="section" id="id2"> <h2>3.0.4 (2018-10-22)</h2> <ul class="simple"> <li>FIXED #564: In Windows “Highlight local variables” and “Higlight matching names” cause Thonny to load Jedi files</li> </ul> </div> <div class="section" id="id3"> <h2>3.0.3 (2018-10-21)</h2> <ul class="simple"> <li>FIXED: Regression from 3.0.2 (incomplete code refactoring)</li> </ul> </div> <div class="section" id="id4"> <h2>3.0.2 (2018-10-21)</h2> <ul class="simple"> <li>FIXED #563: Problems with HeapView and EventsView</li> <li>FIXED #565: Don’t replace tabs in shell</li> </ul> </div> releases Sun, 28 Oct 2018 00:00:00 +0300 https://thonny.org/blog/2018/10/18/version_3_0_1.html https://thonny.org/blog/2018/10/18/version_3_0_1.html <![CDATA[Version 3.0.1]]> <h1>Version 3.0.1</h1> <p>This is the first published stable release of Thonny 3.0.</p> <p>Thonny 3.0 has many new features and most of them have been introduced already in previous posts or explained elsewhere:</p> <ul class="simple"> <li>Syntax and UI themes (<a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Theming">https://bitbucket.org/plas/thonny/wiki/Theming</a>)</li> <li>Breakpoints and different debug modes (<a class="reference external" href="https://thonny.org/blog/2018/08/11/version_3_0_beta.html">https://thonny.org/blog/2018/08/11/version_3_0_beta.html</a>)</li> <li>Core built-in support for MicroPython (<a class="reference external" href="https://bitbucket.org/plas/thonny-micropython">https://bitbucket.org/plas/thonny-micropython</a>)</li> <li>Assistant view which performs static analysis on your code and tries to explain error messages (<a class="reference external" href="https://thonny.org/blog/2018/09/01/version_3_0_0b5.html">https://thonny.org/blog/2018/09/01/version_3_0_0b5.html</a>)</li> <li>Stepping back while debugging (<a class="reference external" href="https://thonny.org/blog/2018/05/04/version_2_2_0_beta.html">https://thonny.org/blog/2018/05/04/version_2_2_0_beta.html</a>)</li> <li>New Windows installer allows installing Thonny for all users (<a class="reference external" href="https://thonny.org/blog/2018/07/25/version_2_1_21.html">https://thonny.org/blog/2018/07/25/version_2_1_21.html</a>)</li> </ul> <p><strong>Development of several features were suggested and supported by</strong> <a class="reference external" href="https://www.raspberrypi.org/">Raspberry Pi Foundation</a>. <strong>Many thanks to them!</strong></p> <p>There are some important changes in the requirements:</p> <ul class="simple"> <li>Minimum supported Python version (both for the front-end and back-end) is Python 3.5</li> <li>Minimum supported Tk version is 8.6 (recent Python versions published at <a class="reference external" href="https://www.python.org">https://www.python.org</a> come with Tk 8.6)</li> <li>macOS bundle requires at least macOS 10.9. For older macs you need to <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/SeparateInstall">install Python (with Tk 8.6) and Thonny separately</a>.</li> <li>By default Thonny runs user programs with the same interpreter, which runs the front-end (<a class="reference external" href="https://thonny.org/blog/2018/08/11/version_3_0_beta.html">https://thonny.org/blog/2018/08/11/version_3_0_beta.html</a>, section “New default back-end”)</li> <li>pip GUI (Tools => Manage packages) now installs packages to different location (<a class="reference external" href="https://thonny.org/blog/2018/08/11/version_3_0_beta.html">https://thonny.org/blog/2018/08/11/version_3_0_beta.html</a>, section “More straightforward user package management”)</li> </ul> <p>All new features and changes are listed in the changelog: <a class="reference external" href="https://bitbucket.org/plas/thonny/src/master/CHANGELOG.rst">https://bitbucket.org/plas/thonny/src/master/CHANGELOG.rst</a></p> <p>Big thank you to everybody who have helped Thonny so far!</p> <p>You can find download links from <a class="reference external" href="https://thonny.org">Thonny’s homepage</a>.</p> releases Thu, 18 Oct 2018 00:00:00 +0300 https://thonny.org/blog/2018/09/01/version_3_0_0b5.html https://thonny.org/blog/2018/09/01/version_3_0_0b5.html <![CDATA[Version 3.0.0b5]]> <h1>Version 3.0.0b5</h1> <p>Most new features happened in <a class="reference external" href="/blog/2018/05/04/version_0_0_0_beta.html">previous betas</a>, but this one still has one big new feature – meet the Assistant!</p> <p>See Thonny’s Bitbucket <a class="reference external" href="https://bitbucket.org/plas/thonny/downloads/">downloads page</a> for download links or <cite>pip install –pre thonny</cite> into a virtual environment.</p> <div class="section" id="assistant"> <h2>Assistant</h2> <p><em>Just like new debugger features, this feature has been supported by Raspberry Pi Foundation (https://www.raspberrypi.org/). Many thanks to them!</em></p> <p>Assistant is a new view in Thonny, which observes your program runs and offers help if you get an exception or if it finds something fishy in your code. It uses <a class="reference external" href="https://www.pylint.org/">Pylint</a> and <a class="reference external" href="http://mypy-lang.org/">MyPy</a> for static analysis and custom dynamic analysis for understanding the error situations better.</p> <p>Here is an example:</p> <img alt="https://thonny.org/img/assistant.png" src="https://thonny.org/img/assistant.png"/> <p>Many error types are not supported yet – you may even call it a proof of concept for now. Here is where your help is needed – if you meet a situation where Assistant could be more helpful, then click on the feedback link at the bottom of the view and let us know! You are welcome to discuss this feature also here under this blog post or in the <a class="reference external" href="https://groups.google.com/forum/#!forum/thonny">main forum</a>.</p> </div> <div class="section" id="all-changes-since-3-0-0b3"> <h2>All changes since 3.0.0b3</h2> <ul class="simple"> <li>NEW: When program has syntax error or crashes with an exception, Assistant pane opens and tries to help diagnose the problem. Uses Pylint, MyPy and custom dynamic analysis under the hood. (Big “Thank you!” to Raspberry Pi Foundation for the support!)</li> <li>ENHANCEMENT: Resizing the main window doesn’t mess up views’ layout anymore.</li> <li>ENHANCEMENT: Better support for debugging f-strings.</li> <li>ENHANCEMENT: Nice debugger now recovers better when it is not able to understand a program.</li> <li>FIXED #496: Regression which caused Variables view to skip variables updates during “nicer debugging”.</li> <li>FIXED #440: Copy&paste over a selection will now delete the text selection first (was problem for some Linuxes)</li> <li>FIXED: Removed a nasty debugging statement left into b3, which may cause a crash in the end of debugging.</li> </ul> </div> releases Sat, 01 Sep 2018 00:00:00 +0300 https://thonny.org/blog/2018/08/20/version_2_1_22.html https://thonny.org/blog/2018/08/20/version_2_1_22.html <![CDATA[Version 2.1.22]]> <h1>Version 2.1.22</h1> <p>Happy re-independence day to Estonia!</p> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links, and <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Home">wiki</a> for installation instructions.</p> <p>Changes since <a class="reference external" href="/blog/2018/07/25/version_2_1_21.html">2.1.21</a>:</p> <ul class="simple"> <li>ENHANCEMENT: Less intrusive logging for AST marking problems</li> <li>FIXED #340: Validate geometry before loading</li> <li>FIXED #363: subprocess.run causes Thonny backend to hang</li> <li>FIXED #419: logging doesn’t work in user programs</li> <li>FIXED #440: In Linux paste over selection doesn’t remove the selection</li> <li>FIXED #487: Use PyPI.org and turn off pip warnings in package manager</li> <li>FIXED #490: Debugger gets confused with f-strings</li> <li>FIXED: In case of back-end problems, kill backend instead of resetting</li> <li>FIXED: Colorize f-string prefixes</li> </ul> releases Mon, 20 Aug 2018 00:00:00 +0300 https://thonny.org/blog/2018/08/11/version_3_0_beta.html https://thonny.org/blog/2018/08/11/version_3_0_beta.html <![CDATA[Version 3.0 beta]]> <h1>Version 3.0 beta</h1> <p>Thonny 2.2 beta already brought along <a class="reference external" href="/blog/2018/05/04/version_2_2_0_beta.html">many new features</a>, but they kept coming, so I decided to skip 2.2 stable release and continue under version 3.0.</p> <p>See Thonny’s Bitbucket <a class="reference external" href="https://bitbucket.org/plas/thonny/downloads/">downloads page</a> for download links.</p> <div class="section" id="debugging-enhancements"> <h2>Debugging enhancements</h2> <p>Thanks to the support from <a class="reference external" href="https://www.raspberrypi.org/">Raspberry Pi Foundation</a>, Thonny now has several new debugger-related features.</p> <p>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 <a class="reference external" href="https://thonny.org/blog/2018/05/04/version_2_2_0_beta.html#stepping-back-in-time">stepping back in time</a>). Although the performance has been greatly improved in 3.0 beta, larger programs would still benefit from a more efficient solution.</p> <p>Thonny now has <strong>two debug modes</strong>. Beside the original AST-based debug mode – <strong>the “nicer” one (Ctrl+F5)</strong>, there is new, traditional line-based mode – <strong>the “faster” one (Shift+F5)</strong>. The new mode is not as intuitive but much more efficient. We expect that most students start with the nicer debuger and move on to the faster one when their programs grow bigger.</p> <p>By default the new debugging mode still uses stacked windows for presenting the call stack. This gives good intuition about the concept, but it may become cumbersome to use. Therefore in 3.0 one can choose between <strong>two different styles for presenting call stack</strong>. In “Tools → Options → Debugger” you can switch to more traditional style with a separate view for presenting and switching call frames. Note that both styles can be used with both debugging modes.</p> <p>Last, but not least, Thonny finally supports <strong>breakpoints</strong>. For using them, you need to switch on line numbers (Tools → Options → Editor). This gives you the margin, where you can add or remove breakpoints with double-clicks. 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.</p> </div> <div class="section" id="new-default-back-end"> <h2>New default back-end</h2> <p>Thonny 2.1 introduced automatically managed virtual environment as default back-end. The idea was to allow students start from clean slate and add packages later without worrying about the integrity of whole system. It turned out that many instructors did not like this scheme as it often made things more complex and confusing, especially in classroom setting.</p> <p><strong>In version 3.0 the default back-end is “The same interpreter which runs Thonny”</strong> (by the way, this was already the default setting on Raspberry Pi). This means your programs will see all Python packages that are installed to this interpreter. Instructors can now install extra packages to the central interpreter and students will see the packages without any hassle.</p> <p>This change does not mean that I now consider virtual environments unimportant. As a new feature, <strong>Thonny 3.0 offers an easy way for creating and using virtual environments</strong> (Tools → Options → Back-end → Alternative Python 3 interpreter or virtual environment).</p> <p>“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. 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.</p> </div> <div class="section" id="more-straightforward-user-package-management"> <h2>More straightforward user package management</h2> <p>Now when default back-end is not a virtual environment, how can users install extra packages? In 3.0 the package manager (“Tools → Manage packages…”) installs to user site packages (with <span class="docutils literal"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">--user</span></span>) when back-end is not a virtual environment. The plug-ins manager always installs to user site packages, unless Thonny itself is run from a virtual environment.</p> <p>You can also install packages outside of Thonny (either with or without <span class="docutils literal"><span class="pre">--user</span></span>) and these will be visible in Thonny.</p> </div> <div class="section" id="basic-micropython-support-built-in"> <h2>Basic MicroPython support built-in</h2> <p><a class="reference external" href="https://thonny.org/blog/2018/06/05/thonny_and_micropython.html">MicroPython plug-ins for Thonny</a> have been available for a while, but so far this topic was kept separate from the main project. Since Thonny 3.0 the core of these plug-ins will be developed and distributed as part of the <span class="docutils literal"><span class="pre">thonny</span></span> package. For the end-user this means that it is possible to program MicroPython devices without installing any extra plug-ins (just select “Tools → Options → Back-end → MicroPython on a generic device”). For more complete support (eg. for installing or updating firmware) there are device-specific plug-ins/back-ends available. See <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/MicroPython">https://bitbucket.org/plas/thonny/wiki/MicroPython</a> for more info.</p> </div> <div class="section" id="new-windows-installer"> <h2>New Windows installer</h2> <p>This was already introduced in 2.1.21, but let’s repeat it here as well. You can now use Windows installer for installing either for current user or for all users. See the <a class="reference external" href="https://thonny.org/blog/2018/07/25/version_2_1_21.html">2.1.21 announcement</a> for more info.</p> </div> <div class="section" id="themes"> <h2>Themes</h2> <p>In case you missed <a class="reference external" href="https://thonny.org/blog/2018/05/04/version_2_2_0_beta.html">2.2 beta announcement</a> – Thonny now has ability for changing UI and syntax themes (Tools → Options → Theme & Font).</p> </div> <div class="section" id="new-versions-requirements"> <h2>New versions / requirements</h2> <ul class="simple"> <li>Thonny+Python bundles now come with Python 3.7.</li> <li>Python 3.4 is not supported anymore (neither for front-end nor as back-end).</li> <li>Tk 8.5 is not supported anymore.</li> <li>Mac bundle now requires macOS 10.9 or later (because it bundles 64-bit only Python). Note that you can still <span class="docutils literal"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">thonny</span></span> on older Macs (provided you have <a class="reference external" href="https://www.python.org/download/mac/tcltk/">Python with Tk 8.6</a>).</li> </ul> </div> <div class="section" id="how-to-test-the-beta-without-affecting-your-stable-thonny"> <h2>How to test the beta without affecting your stable Thonny?</h2> <p>If you don’t want to overwrite your current Thonny, then you can <span class="docutils literal"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">--pre</span> <span class="pre">thonny</span></span> into a virtual environment. Since 3.0, when Thonny is run from a virtual environment, it keeps all user data (eg. configuration.ini) also inside this environment. This way you don’t risk messing up the configuration of your stable Thonny version and you can get rid of the beta just by deleting the virtual environment.</p> </div> <div class="section" id="all-new-features-and-changes-since-2-2b4"> <h2>All new features and changes since 2.2b4</h2> <ul class="simple"> <li>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.</li> <li>NEW: Both debug modes now support breakpoints (switch on line numbers and double-click on the margin)</li> <li>NEW: Alternative presentation for call stack (in single window, just like in most debuggers; see Tools => Options => Debugger)</li> <li>NEW: Clicking on the links in stacktrace now shows the variables of those frames.</li> <li>NEW: You can re-run your changed program without closing it first (relevant for graphical programs).</li> <li>NEW: Checking “Run => Dock user windows” makes your Tkinter windows stay on top and appear always on the same location. This allows tweaking your turtle programs while looking at current output.</li> <li>NEW: “View => Program arguments” opens a box where you can write the argument string for your program</li> <li>NEW: “Tools => Options => Backend => Custom Python interpreter” now allows creating virtual environments</li> <li>NEW: “Tools => Manage packages” now allows installing new packages with all CPython backends, not only virtual environments. If the backend is not a virtual environment it installs to user site packages (with <cite>pip install –user</cite>)</li> <li>NEW: Thonny now includes basic support for MicroPython (former <cite>thonny_microbit</cite> plug-in). See <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/MicroPython">https://bitbucket.org/plas/thonny/wiki/MicroPython</a> for more info.</li> <li>CHANGED: Upgraded Python to version 3.7.0 in Thonny+Python bundles</li> <li>CHANGED: Dropped support for Python 3.4 (both for front-end and back-end)</li> <li>CHANGED: Dropped support for Tk 8.5. All bundles (including Mac’s) now come with Tk 8.6.8</li> <li>CHANGED: Default back-end is now “Same as front-end” (was “A special virtual environment”). This makes deployment easier in classroom setting and it is simpler scheme in general. “Special virtual environment” backend may be removed in future versions.</li> <li>CHANGED: Plug-ins will be now installed to regular user site packages directory (was ~/.thonny/plugins)</li> <li>CHANGED: If Thonny (front-end) is run from a virtual environment, user directory (with configuration.ini and logs) will be .thonny under virtual environment’s root directory (instead of usual ~/.thonny).</li> <li>ENHANCEMENT: Better Windows installer (run as administrator for all-users install)</li> <li>ENHANCEMENT: thonny.exe is now digitally signed</li> <li>ENHANCEMENT: On Linux Thonny now uses native file dialogs (via zenity)</li> <li>ENHANCEMENT: Nicer debugger can now step into your functions defined in other modules</li> <li>ENHANCEMENT: Nicer debugger can now stop before the assignement of loop variable in for-loops</li> <li>ENHANCEMENT: “Run to cursor” can be called by right-clicking desired line in the editor and selecting the command from context menu</li> <li>ENHANCEMENT: Great time and memory optimizations in nicer debug mode. The ability to step back in time is not so expensive anymore.</li> <li>ENHANCEMENT: Thonny now detects external file modifications and proposes to reload</li> <li>ENHANCEMENT: New Windows installer (run as administrator for all-users install)</li> <li>FIXED #163: Uninstaller now correctly removes “Open with Thonny” context menu entry</li> <li>FIXED #340: Validate geometry before loading</li> <li>FIXED #358: sys.exit() in user programs doesn’t show stacktrace anymore</li> <li>FIXED #363: subprocess.run causes Thonny backend to hang</li> <li>FIXED #375: Files are now saved with linebreaks suitable for current platform</li> <li>FIXED #419: logging doesn’t work in user programs</li> <li>FIXED #422: Make Ctrl+C, Ctrl+V etc. work on Greek keyboard</li> <li>FIXED #440: In Linux paste over selection doesn’t remove the selection</li> <li>FIXED #450: Locals marker doesn’t work with jedi 0.12</li> <li>FIXED #468: Problem with changing backend interpreter</li> <li>FIXED #471: Problem when Thonny uses jedi 0.11 or newer</li> <li>FIXED #475: Heap view misbehaving on startup</li> <li>FIXED: “Run => Run to cursor” works again</li> <li>FIXED: Thonny now honors PEP 263 style encoding markers when saving files. (UTF-8 is still the default)</li> <li>FIXED: Problem when jedi 0.10 and parso are both installed</li> <li>FIXED: Various problems with pip GUI</li> <li>FIXED: Variables view misses events</li> <li>FIXED: Error when last back-end was not available anymore</li> <li>FIXED: problems with pip GUI in virtualenv</li> <li>TECHNICAL: Plug-in writers can now control each import in user programs (thonny.backend.VM.add_import_handler)</li> <li>TECHNICAL: Communication messages between back-end and front-end were changed</li> <li>TECHNICAL: Thonny doesn’t tweak PYTHONUSERBASE anymore to put plugins under ~/.thonny. Regular user site packages is used instead</li> <li>TECHNICAL: Dependency to “packaging” introduced in 2.2 betas is now replaced with “setuptools”</li> <li>TECHNICAL: Implemented ChoiceDialog</li> </ul> </div> releases Sat, 11 Aug 2018 00:00:00 +0300 https://thonny.org/blog/2018/07/25/version_2_1_21.html https://thonny.org/blog/2018/07/25/version_2_1_21.html <![CDATA[Version 2.1.21]]> <h1>Version 2.1.21</h1> <p>Highlights:</p> <ul class="simple"> <li>New installer for Windows bundle. Now you can also install Thonny for all users (eg. under <span class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files</span> <span class="pre">(x86)</span></span>). For this you need to run the installer as administrator (right-click installer exe and select “Run as administrator”). If you run it with simple double-click, then you get old behaviour (installing for your user only).</li> <li>Bundled Python version was upgraded to 3.6.6.</li> </ul> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links, and <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Home">wiki</a> for installation instructions.</p> <p>Whole changelog since 2.1.17:</p> <div class="section" id="id1"> <h2>2.1.21 (2018-07-17)</h2> <ul class="simple"> <li>FIXED #471: Another problem when Thonny uses jedi 0.11 or newer</li> </ul> </div> <div class="section" id="id2"> <h2>2.1.20 (2018-07-16)</h2> <ul class="simple"> <li>FIXED: Problem when jedi 0.10 and parso are both installed</li> </ul> </div> <div class="section" id="id3"> <h2>2.1.19 (2018-07-16)</h2> <p>Updates in this version are relevant only on Windows</p> <ul class="simple"> <li>FIXED #467: Error when running Thonny with pythonw on Windows (regression from 2.1.18)</li> <li>ENHANCEMENT: New Windows installer (run as administrator for all-users install)</li> <li>ENHANCEMENT: Upgraded Python to version 3.6.6 in Thonny+Python bundles</li> </ul> </div> <div class="section" id="id4"> <h2>2.1.18 (2018-06-22)</h2> <ul class="simple"> <li>FIXED #450: Locals marker doesn’t work with jedi 0.12</li> </ul> </div> releases Wed, 25 Jul 2018 00:00:00 +0300 https://thonny.org/blog/2018/06/05/thonny_and_micropython.html https://thonny.org/blog/2018/06/05/thonny_and_micropython.html <![CDATA[Thonny and MicroPython]]> <h1>Thonny and MicroPython</h1> <p>Thonny 2.1 had a plug-in called <a class="reference external" href="https://bitbucket.org/KauriRaba/thonny-microbit">thonny-microbit</a>, which added possibility to program BBC micro:bit.</p> <p>Thonny 2.2 has plug-ins which add more general support for various MicroPython devices – see <a class="reference external" href="https://bitbucket.org/plas/thonny-micropython">https://bitbucket.org/plas/thonny-micropython</a> for more info.</p> <p>NB! You need at least <a class="reference external" href="https://bitbucket.org/plas/thonny/downloads/">Thonny 2.2b3</a> to test it!</p> Tue, 05 Jun 2018 00:00:00 +0300 https://thonny.org/blog/2018/05/04/version_2_2_0_beta.html https://thonny.org/blog/2018/05/04/version_2_2_0_beta.html <![CDATA[Version 2.2.0 beta]]> <h1>Version 2.2.0 beta</h1> <p>Version 2.2 contains several new features and some bug-fixes (listed below). This post will be updated during the beta phase to let you know about the progress.</p> <p>See Thonny’s Bitbucket <a class="reference external" href="https://bitbucket.org/plas/thonny/downloads/">downloads page</a> for download links.</p> <div class="section" id="stepping-back-in-time"> <h2>Stepping back in time</h2> <p>One of the new features in 2.2 is possibility to step back in time during debugging. This comes in handy when you are debugging with big steps (step over) and accidentally step over an interesting part in code. Instead of starting from scratch again, you can now issue the command “Run -> Step back” which brings the visual represetation of the program back to the state as it was before last debugger command. From there you can choose to continue with small steps (step into). You can make as many steps back as required and you can go back and forward as many times as you wish.</p> <p>Stepping back was implemented by Alar Leemet as part of his Bachelor thesis. <strong>Please give him <a href="https://goo.gl/forms/huwubX2XQEZRiQC42">feedback about this feature</a></strong>!</p></div> <div class="section" id="b4-2018-06-05"> <h2>2.2.0b4 (2018-06-05)</h2> <ul class="simple"> <li>FIXED: Couldn’t open menus with None backend</li> </ul> </div> <div class="section" id="b3-2018-06-05"> <h2>2.2.0b3 (2018-06-05)</h2> <ul class="simple"> <li>FIXED #425: Too big automatic scaling</li> <li>FIXED #427: Can’t run files with spaces in filename</li> <li>FIXED: Fixed a bug when debugging and encountering an exception (by Alar Leemet)</li> <li>ENHANCEMENT: Show indicator about stepping in the past in the text of editor tabs</li> <li>ENHANCEMENT: Added Thonny version guards for installing plug-ins</li> <li>EXPERIMENTAL: Preliminary support for running system commands in Thonny shell (eg. <cite>!ls</cite> or <cite>!dir</cite>)</li> <li>TECHNICAL: thonny.exe in Windows bundle is now signed</li> <li>TECHNICAL: Delay starting of Runner until UI is shown</li> <li>TECHNICAL: Various enhancements to support MicroPython plug-ins (<a class="reference external" href="https://bitbucket.org/plas/thonny-micropython">https://bitbucket.org/plas/thonny-micropython</a>)</li> </ul> </div> <div class="section" id="b2-2018-05-04"> <h2>2.2.0b2 (2018-05-04)</h2> <ul class="simple"> <li>FIXED: Options dialog crashes when Variables view hasn’t been created yet</li> </ul> </div> <div class="section" id="b1-2018-05-04"> <h2>2.2.0b1 (2018-05-04)</h2> <ul class="simple"> <li>NEW: Added support for stepping back in time during debugging (Run => Step back) by Alar Leemet. If you accidentally stepped over an interesting part of code, then now you can step back and step into.</li> <li>NEW: Added support for UI and syntax theming (<a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Theming">https://bitbucket.org/plas/thonny/wiki/Theming</a>)</li> <li>NEW: Added several built-in dark themes</li> <li>NEW: Added support for display scaling / high-DPI screens (Tools => Options => General)</li> <li>NEW: Added closing buttons to the tabs of all views</li> <li>NEW: Added support for (CPython) back-end plug-ins (<a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Plugins">https://bitbucket.org/plas/thonny/wiki/Plugins</a>)</li> <li>NEW: Current editor line can be highlighted (Tools => Options => Editor)</li> <li>NEW: Thonny can be started in simple mode (<a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Modes">https://bitbucket.org/plas/thonny/wiki/Modes</a>)</li> <li>NEW: Variables view now allows viewing variables from other modules beside __main__ (Tools => Options => General)</li> <li>CHANGED: Dropped support for Python 3.4 (both for front-end and back-end)</li> <li>CHANGED: Reorganized back-end configuration (“Tools => Options => Back-end” instead of “Tools => Options => Interpreter”)</li> <li>CHANGED: The roles of Interrupt and Stop commands are now more clear: Stop always restarts the backend and Interrupt only tries to interrupt</li> <li>CHANGED: Editing the running program doesn’t interrupt it anymore.</li> <li>CHANGED: Object inspector now shows attributes and object overview on different tabs</li> <li>CHANGED: Can’t set thonny.THONNY_USER_DIR directly in customize.py anymore (<a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/DeploymentOptions">https://bitbucket.org/plas/thonny/wiki/DeploymentOptions</a>)</li> <li>CHANGED: For plug-in writers: Unified early and late plug-ins (load_early_plugin should be renamed to load_plugin)</li> <li>CHANGED: For plug-in writers: get_workbench and get_runner moved from thonny.globals to thonny</li> <li>FIXED #358: Hide the stacktrace of SystemExit</li> <li>FIXED #368: “Open system shell” doesn’t work in Xfce (fix by Miro Hrončok)</li> <li>FIXED #370: Made zooming with Ctrl++ / Ctrl+- work on the numpad on Linux</li> <li>FIXED #372: Now it’s possible to specify a link as backend interpreter (fix by Miro Hrončok)</li> <li>FIXED #396: exec causes range marker to crash</li> <li>FIXED #403: Window width may become negative</li> <li>TECHNICAL: Changed the location and sharing of backend.py, common.py, ast_utils.py</li> <li>TECHNICAL: Cleaner approach for sharing jedi with the back-end</li> <li>TECHNICAL: Package manager now uses pypi.org instead of pypi.python.org</li> <li>TECHNICAL: Several changes in Runner and BackendProxy interface</li> <li>TECHNICAL: Saving an editor now forces writing to disk (see <a class="reference external" href="https://learn.adafruit.com/adafruit-circuit-playground-express/creating-and-editing-code#1-use-an-editor-that-writes-out-the-file-completely-when-you-save-it">https://learn.adafruit.com/adafruit-circuit-playground-express/creating-and-editing-code#1-use-an-editor-that-writes-out-the-file-completely-when-you-save-it</a>)</li> </ul> </div> releases Fri, 04 May 2018 00:00:00 +0300 https://thonny.org/blog/2018/03/21/version_2_1_17.html https://thonny.org/blog/2018/03/21/version_2_1_17.html <![CDATA[Version 2.1.17]]> <h1>Version 2.1.17</h1> <p>This version fixes a <a class="reference external" href="https://bitbucket.org/plas/thonny/issues/409/thonny-unable-to-load-packages">bug in package manager</a> (triggered by the release of pip 9.0.2).</p> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links, and <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Home">wiki</a> for installation instructions.</p> releases Wed, 21 Mar 2018 00:00:00 +0200 https://thonny.org/blog/2018/01/15/version_2_1_16.html https://thonny.org/blog/2018/01/15/version_2_1_16.html <![CDATA[Version 2.1.16]]> <h1>Version 2.1.16</h1> <p>Versions 2.1.14 - 2.1.16 were created to support Thonny packaging on Linux and don’t introduce anything new in the main code.</p> <p>2.1.16 was actually released in November, but today we are releasing Thonny+Python bundles for it.</p> <p>Changes:</p> <ul class="simple"> <li>Bundled Python has been upgraded to 3.6.4</li> <li>Bundled OpenSSL for Linux bundles been upgraded to 1.1.0g</li> <li>Windows installer has new signer (University of Tartu Institute of Computer Science). This means Windows Smart Screen filter may present warnings about its trustworthiness for some time.</li> </ul> <p>NB! The certificate for older Windows installers (2.1.13 and older) will expire on 26th January.</p> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links, and <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Home">wiki</a> for installation instructions.</p> releases Mon, 15 Jan 2018 00:00:00 +0200 https://thonny.org/blog/2017/10/29/version_2_1_13.html https://thonny.org/blog/2017/10/29/version_2_1_13.html <![CDATA[Version 2.1.13]]> <h1>Version 2.1.13</h1> <p>Version 2.1.13 introduces a workaround for an intermittent issue (#351). Because of this, features “Highlight local variables” and “Highlight matching names” are off by default. You can turn them on from <em>Tools => Options => Editor</em>.</p> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links, and <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Home">wiki</a> for installation instructions.</p> releases Sun, 29 Oct 2017 00:00:00 +0300 https://thonny.org/blog/2017/10/26/version_2_1_12.html https://thonny.org/blog/2017/10/26/version_2_1_12.html <![CDATA[Version 2.1.12]]> <h1>Version 2.1.12</h1> <p>Version 2.1.12 fixes following bugs / enhancement requests:</p> <ul class="simple"> <li>FIXED #303: Allow specifying same interpreter for backend as frontend uses</li> <li>FIXED #304: Allow specifying backend interpreter by relative path</li> <li>FIXED #312: Closing unsaved tab causes error</li> <li>FIXED #319: Linux install script needs quoting around the path(s)</li> <li>FIXED #320: Install gets recursive if trying to install within extracted tarball</li> <li>FIXED #321: Linux installer fails if invoked with relative, local user path</li> <li>FIXED #334: init.tcl not found (Better control over back-end environment variables)</li> <li>FIXED #343: Thonny now also works with jedi 0.11</li> </ul> <p>Some of these fixes allow for <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/DeploymentOptions">more flexible deployment options (eg. central installation for the classroom)</a>.</p> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links, and <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/Home">wiki</a> for installation instructions.</p> releases Thu, 26 Oct 2017 00:00:00 +0300 https://thonny.org/blog/2017/07/23/version_2_1_11.html https://thonny.org/blog/2017/07/23/version_2_1_11.html <![CDATA[Version 2.1.11]]> <h1>Version 2.1.11</h1> <p>Version 2.1.11 fixes following bugs:</p> <ul class="simple"> <li>FIXED #31: Infinite print loop freezes Thonny</li> <li>FIXED #285: Previous used interpreters are not shown in options dialog</li> <li>FIXED #296: Make it more explicit that pip GUI search box needs exact package name (shown in bold after failed “search”)</li> <li>FIXED #298: Python crashes keep backend hanging</li> <li>FIXED #305: Variables table doesn’t get updated, if it’s blocked by another view</li> </ul> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links.</p> releases Sun, 23 Jul 2017 00:00:00 +0300 https://thonny.org/blog/2017/06/11/version_2_1_10.html https://thonny.org/blog/2017/06/11/version_2_1_10.html <![CDATA[Version 2.1.10]]> <h1>Version 2.1.10</h1> <p>Version 2.1.10 fixes some smaller annoyances and provides more flexibility in classroom settings.</p> <ul class="simple"> <li>NEW: More flexibility for classroom setups (see <a class="reference external" href="https://bitbucket.org/plas/thonny/wiki/ClassroomSetup">https://bitbucket.org/plas/thonny/wiki/ClassroomSetup</a>)</li> <li>FIXED #276: Copy with Ctrl+C causes bell</li> <li>FIXED #277: Triple-quoted strings keep keyword coloring</li> <li>FIXED #278: Paste in shell causes bell</li> <li>FIXED #281: Wrong unindentation with SHIFT+TAB when last line does not end with linebreak</li> <li>FIXED #283: backend.log path doesn’t take THONNY_USER_DIR into account</li> <li>FIXED #284: Internal error when saving to a read-only folder/file (now proposes to choose another name)</li> </ul> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links.</p> releases Sun, 11 Jun 2017 00:00:00 +0300 https://thonny.org/blog/2017/06/03/version_2_1_9.html https://thonny.org/blog/2017/06/03/version_2_1_9.html <![CDATA[Version 2.1.9]]> <h1>Version 2.1.9</h1> <p>Version 2.1.9 fixes couple of bugs including a nasty memory leak. Upgrade is recommended!</p> <ul class="simple"> <li>FIXED #273: Memory leak in editor margin because of undo log</li> <li>FIXED #275: Updating line numbers is very inefficient</li> <li>FIXED: Pasted text occasionally was hidden below bottom edge of the editor</li> <li>FIXED: sys.exit() didn’t really close the backend</li> </ul> <p>See the <a class="reference external" href="https://thonny.org">homepage</a> for download links.</p> releases Sat, 03 Jun 2017 00:00:00 +0300 https://thonny.org/blog/2017/05/29/version_2_1_8.html https://thonny.org/blog/2017/05/29/version_2_1_8.html <![CDATA[Version 2.1.8]]> <h1>Version 2.1.8</h1> <p>Version 2.1.8 is mostly a bugfix release with some enhancements.</p> <p>See <a class="reference external" href="https://bitbucket.org/plas/thonny/src/master/CHANGELOG.rst?at=master&fileviewer=file-view-default">the changelog</a> for more details.</p> releases Mon, 29 May 2017 00:00:00 +0300 https://thonny.org/blog/2017/05/02/version_2_1_0.html https://thonny.org/blog/2017/05/02/version_2_1_0.html <![CDATA[Version 2.1]]> <h1>Version 2.1</h1> <p>I’m happy to announce the release of Thonny version 2.1!</p> <p>Most significant addition is a simple pip GUI (Tools => Manage packages …):</p> <img alt="https://thonny.org/img/pipgui_big.png" src="https://thonny.org/img/pipgui_big.png"/> <p>Other highlights:</p> <ul class="simple"> <li>Thonny plug-in system now allows installing separately packaged plug-ins (Tools => Manage plug-ins…). NB! I encourage you to try out a <strong>nice plug-in from Kauri Raba, which allows Thonny to use BBC micro:bit as its backend</strong> – see <a class="reference external" href="https://bitbucket.org/KauriRaba/thonny-microbit">https://bitbucket.org/KauriRaba/thonny-microbit</a> for more info.</li> <li>Built-in Python version has been upgraded to 3.6.1.</li> <li>The Shell finally accepts compound statements.</li> <li>Many bugs have been fixed.</li> <li>See <a class="reference external" href="https://bitbucket.org/plas/thonny/src/master/CHANGELOG.rst?at=master&fileviewer=file-view-default">the changelog</a> for more details.</li> </ul> <p>See <a class="reference external" href="https://thonny.org">the homepage</a> for download links.</p> <p>Let me know of your experiences with the new version!</p> <p><strong>UPDATE on 2017-05-04:</strong> <em>Seems that in some cases at first run the cursor gets stuck somewhere, ie. no entry is possible neither in the shell nor in the editor. This was fixed in 2.1.1, but if you’re reading this, the upgrade is not actually necessary – just re-start Thonny and you’re done (you won’t meet this issue on next runs).</em></p> releases Tue, 02 May 2017 00:00:00 +0300 https://thonny.org/blog/2017/04/19/version_2_1_0_beta.html https://thonny.org/blog/2017/04/19/version_2_1_0_beta.html <![CDATA[Version 2.1.0 beta]]> <h1>Version 2.1.0 beta</h1> <p>The release of Thonny version 2.1 is approaching, but you can already check out the beta – go to <a class="reference external" href="https://bitbucket.org/plas/thonny/downloads/">https://bitbucket.org/plas/thonny/downloads/</a> and find correct bundle for your platform.</p> <p>What are the news?</p> <ul class="simple"> <li>Most significant addition is a simple pip GUI (Tools => Manage packages …)</li> <li>Built-in Python version has been upgraded to 3.6.1</li> <li>The Shell finally accepts compound statements.</li> <li>Many bugs have been fixed</li> <li>See <a class="reference external" href="https://bitbucket.org/plas/thonny/src/master/CHANGELOG.rst?at=master&fileviewer=file-view-default">the changelog</a> for more details</li> </ul> <p>Let me know of your impressions! Your feedback is invaluable for preparing a stable 2.1.0!</p> releases Wed, 19 Apr 2017 00:00:00 +0300 https://thonny.org/blog/2017/01/05/version_2_0_7.html https://thonny.org/blog/2017/01/05/version_2_0_7.html <![CDATA[Version 2.0.7]]> <h1>Version 2.0.7</h1> <p>Happy New Year!</p> <p>New year comes with new Thonny version. There are no new features this time, but here’s the list of bugs fixed since 2.0.3:</p> <ul class="simple"> <li>Making font size too small would crash Thonny.</li> <li>Configuration file was occasionally getting corrupted (for mysterious reasons, maybe a bug in Python’s <span class="docutils literal"><span class="pre">configparser</span></span>). 2.0.4 added a workaround for this …</li> <li>… which introduced another bug: configuration file wasn’t created in new installations.</li> <li>Shift-Tab wasn’t working in some cases.</li> <li>System shell for built-in Python did not include Scripts directory in Windows PATH.</li> <li><span class="docutils literal"><span class="pre">from</span> <span class="pre">__future__</span> <span class="pre">import</span></span> crashed the debugger.</li> <li>There was a bug in Linux installer in short-lived 2.0.6.</li> </ul> releases Thu, 05 Jan 2017 00:00:00 +0200 https://thonny.org/blog/2016/12/28/hello_blog.html https://thonny.org/blog/2016/12/28/hello_blog.html <![CDATA[Hello Blog!]]> <h1>Hello Blog!</h1> <p>Hi everyone!</p> <p>Just want to let you know that Thonny is alive and well and I finally created a blog for it.</p> <p>Version 2.0.3 has been successful but there are some fixes and small enhancements already waiting to be released soon.</p> Wed, 28 Dec 2016 00:00:00 +0200