thonny / thonny

Python IDE for beginners
https://thonny.org
MIT License
3.13k stars 1.03k forks source link

"Device" / "Execute current script on device" #520

Closed aivarannamaa closed 5 years ago

aivarannamaa commented 6 years ago

Original report by Jens Diemer (Bitbucket: jedie GitHub: jedie ).


ampy (Adafruit MicroPython Tool) has the "run" command that: "Run a script and print its output."

It'd be great if we had that, too ;)

aivarannamaa commented 6 years ago

Maybe I'm misunderstanding your request, but "Run => Run current script (F5)" currently does this.

aivarannamaa commented 6 years ago

Original comment by Jens Diemer (Bitbucket: jedie GitHub: jedie ).


Yes, you are right "F5" does the job...

The problem was: I was just looking under "device" menu, because I was mistaken in thinking that the "run" main menu is only for "run with local python interpret" and not with "device interpreter" ;)

I don't know how better to solve this for beginners.

Here's what I can think of:

aivarannamaa commented 6 years ago

Everything under Run-menu is applied against current back-end, there is no local python interpreter available when MicroPython back-end is selected. Also, the editor (code-completion) works against current back-end. The Device menu contains the items that are specific to MicroPython.

At the moment I'd prefer not to change this

aivarannamaa commented 6 years ago

In the light of #531, I'm even considering getting rid of the "Device" menu:

aivarannamaa commented 5 years ago

Implemented in 3.2