9 ms·
Thonny: A hassle-free Python micro-IDE
- deleted 6y ago[deleted]
- throwawaybutwhy 6y agoA neat teaching environment with visual AST walkthroughs. Having inspection/reflection facilities built into the standard library of a programming language is a boon we rarely appreciate.
- Naac 6y agoThe debugger looks neat. Would be nice to have the same micro-IDE for Go, Rust, Ruby, etc. Something like the Jetbrains tools, but open source.
- eitland 6y agoFun fact: the core of Jetbrains IntelliJ is a very capable real, extensible open source IDE that they've released themselves. I suspect (but I'm not sure) that the rest of their desktop products are built on top of that.
- muad_kyrlach 6y agoSounds a lot like eclipse of yore...
- eitland 6y agoAlso true.
- buildbot 6y agoThis seems pretty true, basically each IDE seems to be the same core with different plugins enabled. At one point you could turn IntelliJ into basically PyCharm with a few plugins supplied by jetbrains themselves.
- Naac 6y agoYes, the community edition set of editors are the only ones I use. But there are no open source plugins for Go or Rust in top of intellij. So for all intents and purposes the editor is not open source for those languages. As far as I know no one in the community has tried implementing an open source plugin to compete with the proprietary ones.
- eitland 6y agoThey also have generous early access programs. (And for anyone who wonders, no, I'm not paid and I don't use it - because of ergonomics - for me it is almost as painful to use as Macs are for me. I see inconsistencies and weird defaults everywhere since I'm a NetBeans / VSCode / Sublime Text kind of person. I just love Jetbrains business model.)
- mahathu 6y agoJust by the screenshot, does this remind anyone else of R Studio? I'm a psychology major and working as a "student tutor", which in my case means helping lower year students work with R for statistical analysis. A lot of them are struggling, but for the ones that aren't and show further interest beyond R, I might recommend this IDE after looking into it more!
- Adisuki 6y agoDidn't use RStudio for a while, but I find Spyter to be more similar.
- mattbk1 6y agoFWIW, it's rare these days that I need to go "beyond R" for anything. If there were a Python IDE that worked as well as RStudio, I might explore it.
- newswasboring 6y agoIt reminds me of the MATLAB IDE, early versions. The matlab IDE is still pretty simple, but it used to simpler.
- joshlk 6y agoLooks similar to Spyder: https://www.spyder-ide.org/ https://www.spyder-ide.org/
- muad_kyrlach 6y agoNo disrespect intended, but why is this needed? VScode is free, cross-platform, extremely easy to use, and you can run jupyter notebooks in it. I can't imagine telling someone to start python and not starting them in a notebook.
- mixmastamyk 6y agoWell, imagine harder. ;-)
- thom 6y agoI've used this in the past with my son to teach him simple stuff. Would be nice if it somehow had integrated docs though, at which point it would be roughly up to speed with QuickBasic in the 80s.
- codetrotter 6y agoI see that Thonny has the Python shell built into it. You can use the help function to see some information about things. For example: help(list) Of course all of the help that you get that way is only useful if you already know the concepts you need and the names of things. It’s not like a tutorial or a guide or anything. But still, if you find yourself forgetting some detail about something it can be a way of finding the information you need.
- passerby1 6y agoUI definitely reminds qbasic and other similar IDEs of an era (turbo pascal, turbo cpp, etc.). And docs on lang + stdlib would be very good!
- kodeninja 6y agoBuilt on Eclipse, or just leveraging the LAF?
- andrewshadura 6y agoNo, it’s actually Tk.
- qwerty456127 6y agoIt's the best-looking Tk app I've seen. I occasionally launch it just for aesthetic pleasure.
- agumonkey 6y agoSeems brilliantly simple yet featured.
- lrossi 6y agoI like it. Less distracting than an IDE for beginners. The GUI is based on tkinter. It looks surprisingly good.
- protonfish 6y agoWhy is everything an IDE? I don't want an integrated development environment - I want a modular one. And as one of those modules, I would love a simple, lightweight code editor. UTF-8 only, auto-indent, a file list column, a good find-in-page feature, and file type dependent syntax highlighting and multi-line comment key. That's all I need. It seems I am always stuck between bloated IDEs (or bloated text editors like VSCode and Atom) or painfully low-featured ones like notepad or nano.
- jerf 6y agoYou seem to be spec'ing either vim or emacs, there.
- protonfish 6y agoSorry, I guess I didn't know I had to include "and without a completely unnecessary non-standard interface that requires a massive learning curve to get started." as a feature.
- jerf 6y agoWell, if you want all the things, you're going to end up at "write your own", it seems. If you can't find yourself a text editor, of all the things programmers love to write to scratch their own itches and which we have coming out of our metaphorical collective ears....
- jjice 6y agoThere are plenty of mid-level editors out there. Sounds like Notepad++ and Sublime Text are up you alley. Also, it depends what you mean by bloated, but VS Code can be stripped down to work just like the two I listed above. Language servers aren't required by any means. If you're looking for sub 50MB ram usage, then stick to the two above and search for "Sublime Text alternative" and I'm sure you'll find more equivalents than you ever wanted.
- protonfish 6y ago
- comprev 6y agoThonny is included by default in the Raspberry Pi OS
- rcoder 6y agoOne thing I haven't seen mentioned here yet: Thonny explicitly supports Micropython for embedded systems development: https://github.com/thonny/thonny/wiki/MicroPython https://github.com/thonny/thonny/wiki/MicroPython IME Thonny is a great sketchpad for Micropython ideas, and makes work on that platform nearly as easy as locally-run Python code.
- VectorLock 6y agoSolid push into Arduino IDE territory as well.
- OliverJones 6y agoYup, and Raspberry Pis. ... good stuff. It would be double-cool if they could do something about the need for lots of RPi hardware-hacker programs to run as root. It's open source, though ... pull request time?
- bertobully 6y agoI've used this in the past. Excellent learning environment.
- zython 6y agoWho is this made for ? I'm not hating but genuinely curious.
- MarcScott 6y agoKids. It's a beginner's IDE for Python, without all the GUI frustrations of IDLE.
- F00Fbug 6y agoI recommend this to my students frequently. I teach an intro to programming class to college students who have no experience. Inevitably, some try to use PyCharm and they just get lost in it! I tell them it's like learning to drive in an 18 wheeler with a manual transmission. Thonny is very much the Toyota Corolla of IDEs and it's perfect for beginners. The debugger and variable pane really help beginners figure out what's going as their program runs.
- qwerty456127 6y ago> Inevitably, some try to use PyCharm and they just get lost in it! I tell them it's like learning to drive in an 18 wheeler with a manual transmission. Not really. You don't have to use all its features, they are neither necessary nor intrusive. E.g. I hardly know, let alone use more than 10% of its functionality. The only reasons I use it are very smart code completion, refactoring (rename variable/class/function/whatever, jump to definition, find all usages), breakpoint debugger, auto imports suggestions, and type hints derivation. I barely even use menu items besides "reformat code". But the smart code completion IntelliJ IDEs offer is by far the best on the market so its worth that. Extremely useful for lazy/occasional/novice coders who don't remember APIs by heart and don't want to sopend much time browsing the docs every time.
- mstolpm 6y agoI'd assume you are not working in education? Of course, PyCharm has great features and you don't need to use all of them when working with the IDE on your own as a novice coder. But as a teacher, you have a completely different problem: You need a really simple, easy to explain environment - no fuss, no unnecessary complexity. Students /will/ explore unused features on their own and get lost or mess up. There is simply no time to deal with all possible problems individually as a teacher.
- qwerty456127 6y ago> I'd assume you are not working in education? Not right now, but I did. > But as a teacher, you have a completely different problem: You need a really simple, easy to explain environment - no fuss, no unnecessary complexity. Just tell them to ignore that complexity and only press this and this. When I was a kid we were taught to code (simple games in C/WinAPI and C++/MFC) in Visual Studio 6 Enterprise Edition on Windows NT. Visual Studio (especially its enterprise editions) traditionally has tons of features which still seem extraterrestrial to me but you are safe to ignore them. Just don't click those weird menu/toolbar items. Just create a project, write the code (with help of super-smart auto-completion) and press Run, use some conveniences (like refactoring and debugging) once you are told or read about those particular. Easy-peasy.
- nyellin 6y agoI would love to see someone change the tiny debugger icons for actions like "pause" and "next step" to giant, obvious, text only buttons with a clear and colorful call to action. They're the most important buttons on the IDE for beginners and they're the least obvious. Also, make breakpoints discoverable if you don't know that they're possible.
- OliverJones 6y agopull request time? a teacher might have a lot of influence on that team.
- aivarannamaa 6y agoRight, pull request or https://github.com/thonny/thonny/issues/new https://github.com/thonny/thonny/issues/new
- djrobstep 6y agoIt's so irritating that good clear visualization and minimal boilerplate is considered "for beginners". These features should be available in every programming environment.
- nine_k 6y agoIt is friendly to beginners, but of course not limited to beginners. Thonny just seems to do few things, but do them rather well.
- ZoomZoomZoom 6y agoI'm probably nostalgic, but the GUI looks so refreshing. I think I need more Tk in my interacting-with-guis part of life.
- kangalioo 6y agoI think it may be the whitespace in the UI. It really gives the thing room to breath
- ZoomZoomZoom 6y agoNo! Fwiw, there's a bit too much of it, but it's not even close to the offendingly huge margins of some modern UIs (not arguing there's no place for this UI style at all). The main window on the first shot from the site is about 620px wide and I feel I could write some code not even resizing it. I easily imagine 2 buttons, dropdown and 2 textboxes filling this whole window instead.
- qwerty456127 6y agoThonny is very cool and also a proof a Tkinter GUI doesn't have to be ugly and can actually be beautiful. I hope it's going to be developed actively and becomes smarter and smarter (but not bloated).
- mrweasel 6y agoThat's Tkinter? I didn't even realise it. It looks perfectly ... normal.
- sireat 6y agoI start complete beginners to programming with Thonny. Thonny has everything included to start quickly no external plugins, installs needed. The debugger and the shell work quite nicely. Key bindings are a bit different (instead of Ctrl+/ you have to use Ctrl+3) After a few weeks I migrate them to VS Code or PyCharm and later Jupyter . Every semester a few students stay with Thonny and it does not hold them back from making great projects. You can install packages with Thonny but it tends to conflict with Anaconda installation leading to https://xkcd.com/1987/ https://xkcd.com/1987/ situation.
- MarcScott 6y agoLove for Thonny here. It's a great IDE, supports MicroPython, has an intuitive interface with a very kid friendly mode. The perfect beginners IDE in my opinion. Of note, it is the default installed Python IDE on Raspberry Pi OS.
- m1sta_ 6y agoHas anyone ever attempted a web/browser based port?
- zelon88 6y agoI love Thonny. I got my first taste with the original RPi and it is hands-down the best Python IDE out there. My 10 year old son uses it frequently. It is so simple, approachable, and un-intimidating. There is really no learning curve. Just type something and click run.
- barbs 6y agoCool, simple app. I can see this being really useful for teaching programming to beginners, although I'm curious where the name "Thonny" comes from? Couldn't find anything on the website, does anyone know?
- aivarannamaa 6y ago"thon" is from "Python" and "Thonny" is diminutive of this.
- barbs 6y agoDon't know how I didn't see that before! Thanks.
- fermigier 6y agoSeems very nice, I'll have my kids try it next. They're currently using Mu (https://codewith.mu/ https://codewith.mu/) which has similar goals (very streamlined IDE aimed at kids and beginners).
- jvvw 6y agoI've done lots of volunteering teaching programming to kids and recommend this for Python - it is pretty much foolproof to install which is a major thing of you only have an hour and a half session and you can get pygame working on it extremely easily - which a lot of projects for kids use.
- 29athrowaway 6y agoAnother recommendation: bpython. bpython is the friendly alternative to ipython.
- mixmastamyk 6y agoptpython is awesome too, sort of in the middle.
- purrrfect 6y agoI like the thonny IDE for small programs. I've been making all kinds of small scripts https://python-commandments.org/python-zip-function/ https://python-commandments.org/python-zip-function/