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: 85
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!

Post Reply