Search found 171 matches
- Sun Jan 24, 2021 6:31 pm
- Forum: Development of MicroPython
- Topic: Typesheds
- Replies: 15
- Views: 9080
Re: Typesheds
Can you give a practical example i.e. real-life code you'd use, and the information returned? Just trying to understand why this should be part of MicroPython. That's how I see it used by Thonny IDE: The user selects a device Thonny enters the REPL and queries sys.stubs_info and receives something ...
- Sun Jan 24, 2021 8:19 am
- Forum: Development of MicroPython
- Topic: Typesheds
- Replies: 15
- Views: 9080
Re: Typesheds
What is the use of an API for querying stub information? The IDE uses this info for installing the stubs to an automatically created virtual environment, which will be the base for code completions. For example, the jedi code completion library can be configured to offer completions from a virtual ...
- Sun Jan 24, 2021 8:09 am
- Forum: Development of MicroPython
- Topic: Typesheds
- Replies: 15
- Views: 9080
Re: Typesheds
I'm preparing the next major update (4.0) of Thonny IDE and one of the themes is more robust and comprehensive code completion and inline API documentation (both for CPython and MicroPython). Here are some of my dreams releated to MicroPython: Each built-in C module (or a group of them) gets a PyPI ...
- Sat Jan 16, 2021 7:04 am
- Forum: ESP8266 boards
- Topic: Thonny, webrepl error
- Replies: 2
- Views: 4392
Problems with different REPL modes (Re: Thonny, webrepl error)
It may be Thonny's problem, but at the moment I don't know what can Thonny do to avoid this. In your case Thonny is trying to use the new, unreleased "raw paste" mode for communicating with the device (https://docs.micropython.org/en/latest/reference/repl.html#raw-mode-and-raw-paste-mode). You are u...
- Tue Dec 22, 2020 12:25 pm
- Forum: micro:bit boards
- Topic: unable to flash on microbitv2
- Replies: 2
- Views: 4593
Re: unable to flash on microbitv2
This seems to be a known issue: https://github.com/ntoll/uflash/issues/67 Instead of combining MicroPython and your code into single hex, I'd recommend flashing your micro:bit once with https://github.com/microbit-foundation/micropython-microbit-v2/releases/download/v2.0.0-beta.3/micropython-microbi...
- Wed Nov 25, 2020 5:02 pm
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 15286
Re: Using webrepl instead of USB connection with Thonny IDE
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...
- Fri Nov 20, 2020 5:42 pm
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 15286
Re: Using webrepl instead of USB connection with Thonny IDE
I added this to my TODO list: https://github.com/thonny/thonny/issues/1439
- Fri Nov 20, 2020 3:58 pm
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 15286
Re: Using webrepl instead of USB connection with Thonny IDE
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-a...
- Fri Nov 20, 2020 6:49 am
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 15286
Re: Using webrepl instead of USB connection with Thonny IDE
I don't fully understand everything that you guys here discussed, so I'm kind of unsure - so, what is the best way to go around sending direct keystrokes via Thonny to ESP? Unfortunately there is no way for it. What you can do is * use Thonny for saving your code to main.py * select "Tools => Open ...
- Mon Nov 16, 2020 11:24 am
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 15286
Re: Using webrepl instead of USB connection with Thonny IDE
The characters get sent directly. This is what allows things like tab completion to work on the REPL. Indeed. I never thought about tab-completion and arrow up/down, but now I understand that it must work like this. I assume you mean sys.stdin.read though? Yes, my mistake. How does Thonny avoid the...