Using webrepl instead of USB connection with Thonny IDE

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
laukejas
Posts: 29
Joined: Thu May 02, 2019 5:17 pm

Re: Using webrepl instead of USB connection with Thonny IDE

Post by laukejas » Fri Nov 20, 2020 5:02 pm

aivarannamaa wrote:
Fri Nov 20, 2020 3:58 pm
laukejas wrote:
Fri Nov 20, 2020 3:24 pm
Pressing "Open system shell" opens the shell, but I don't think WebREPL is running. All I'm seeing is plain command line, waiting for regular inputs, not like WebREPL. Am I missing some dependency or something?
Oops, I forgot that we were talking about WebREPL. In this case I can't offer any work-arounds at the moment.
laukejas wrote:
Fri Nov 20, 2020 3:24 pm
Also, I am not quite sure I understand what you meant by "send your keystrokes in normal way", could you please explain?
I meant just pressing the keys in terminal window and doing sys.stdin.read(1) in your MicroPython code. But at the moment Thonny provides terminal window for MicroPython REPL only via serial connection.
Understood... That's really unfortunate. Thank you for your time, though. Perhaps this functionality could be something you might consider for the future versions of Thonny, if it's not too difficult to implement?

User avatar
aivarannamaa
Posts: 86
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: Using webrepl instead of USB connection with Thonny IDE

Post by aivarannamaa » Fri Nov 20, 2020 5:42 pm

laukejas wrote:
Fri Nov 20, 2020 5:02 pm
Perhaps this functionality could be something you might consider for the future versions of Thonny, if it's not too difficult to implement?
I added this to my TODO list: https://github.com/thonny/thonny/issues/1439
Aivar Annamaa
https://thonny.org

laukejas
Posts: 29
Joined: Thu May 02, 2019 5:17 pm

Re: Using webrepl instead of USB connection with Thonny IDE

Post by laukejas » Fri Nov 20, 2020 5:53 pm

aivarannamaa wrote:
Fri Nov 20, 2020 5:42 pm
laukejas wrote:
Fri Nov 20, 2020 5:02 pm
Perhaps this functionality could be something you might consider for the future versions of Thonny, if it's not too difficult to implement?
I added this to my TODO list: https://github.com/thonny/thonny/issues/1439
Awesome, thank you very much!

Daniel R
Posts: 2
Joined: Mon Nov 23, 2020 7:12 pm

Re: Using webrepl instead of USB connection with Thonny IDE

Post by Daniel R » Wed Nov 25, 2020 3:57 pm

aivarannamaa wrote:
Mon Nov 02, 2020 9:12 pm
I just released the next beta of Thonny 3.3, which should work much better with WebREPL: https://github.com/thonny/thonny/releases/tag/v3.3.0b7

Looking forward to your feedback!
Great! WebREPL support is just what I need.

Unfortunately, it's not very stable for me. Using a TinyPICO ESP32. Some things not working for me:

- Run current script
- Start/stop

To make code changes, I have to first save, and then restart the board (ctrl-d). Also frequently have to restart Thonny.

Also, any plans for Github support? Would be great to have files on the board automatically sync to GitHub (or somewhere on my computer).

Daniel

User avatar
aivarannamaa
Posts: 86
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: Using webrepl instead of USB connection with Thonny IDE

Post by aivarannamaa » Wed Nov 25, 2020 5:02 pm

Daniel R wrote:
Wed Nov 25, 2020 3:57 pm
Unfortunately, it's not very stable for me. Using a TinyPICO ESP32. Some things not working for me:

- Run current script
- Start/stop

To make code changes, I have to first save, and then restart the board (ctrl-d). Also frequently have to restart Thonny.
Please report the bugs at https://github.com/thonny/thonny/issues/new

Daniel R wrote:
Wed Nov 25, 2020 3:57 pm
Also, any plans for Github support? Would be great to have files on the board automatically sync to GitHub (or somewhere on my computer).
No, at the moment I don't have plans for this.
Aivar Annamaa
https://thonny.org

Post Reply