Anyone recommending a good IDE?
Re: Anyone recommending a good IDE?
G'day,
I am new to, well all of it.
I have been using uPyCraft (https://dfrobot.gitbooks.io/upycraft/co ... -yuan.html) and I find it very convenient to write the code, upload and see the results right there and easy to make alterations.
It has an editor, syntax checker, file manager, uploads directly to the board, and if you have the correct board (I am using a Wemos ESP32 Lite Revision 1, and it isn't supported in uPyCraft) you can erase and update the firmware from within. Again I don't have a board they list in the firmware updater so I don't know if it works.
Its fast and efficient, no need to use an editor and then an FTP program to upload the file and then some terminal program to run your scripts.
It also has word completion in the runtime pane to quickly get to the definition names.
Oh, I forgot to mention that the developer has released the source code so you can add/change what you like.
Cheers.
I am new to, well all of it.
I have been using uPyCraft (https://dfrobot.gitbooks.io/upycraft/co ... -yuan.html) and I find it very convenient to write the code, upload and see the results right there and easy to make alterations.
It has an editor, syntax checker, file manager, uploads directly to the board, and if you have the correct board (I am using a Wemos ESP32 Lite Revision 1, and it isn't supported in uPyCraft) you can erase and update the firmware from within. Again I don't have a board they list in the firmware updater so I don't know if it works.
Its fast and efficient, no need to use an editor and then an FTP program to upload the file and then some terminal program to run your scripts.
It also has word completion in the runtime pane to quickly get to the definition names.
Oh, I forgot to mention that the developer has released the source code so you can add/change what you like.
Cheers.
Last edited by goochy on Thu Apr 19, 2018 5:10 am, edited 2 times in total.
Re: Anyone recommending a good IDE?
I like uPyCraft. I use something similar... but is based on Ampy... Adafruit's utility.
I think they are working on a Linux version, which would be great. I know there are many on this board that use Linux.
A cross-platform IDE would be nice!
I think they are working on a Linux version, which would be great. I know there are many on this board that use Linux.
A cross-platform IDE would be nice!
Re: Anyone recommending a good IDE?
I'm using PyCharm + with Micropython plugin (https://github.com/vlasovskikh/intellij-micropython)
This plugin does not support ESP32 dialect but anyway works fine.
It's possible to upload and run files directly from the IDE.
I've modified some plugin's scripts to work with Loboris port.
For this moment it's located in
This plugin does not support ESP32 dialect but anyway works fine.
It's possible to upload and run files directly from the IDE.
I've modified some plugin's scripts to work with Loboris port.
For this moment it's located in
Code: Select all
cd ~/Library/Application\ Support/PyCharmCE2018.1/intellij-micropython/scripts/
Code: Select all
diff microcleanfs.py-orig microcleanfs.py
39a40
> port_baudrate=115200
42c43
< board = Pyboard(port)
---
> board = Pyboard(port, baudrate=port_baudrate)
51c52
< for name in files.ls():
---
> for name in files.ls("/flash"):
54a56
> print("- {}".format(name))
57a60
> print("- /{}/".format(name))
77a81
> print('')
Code: Select all
diff microupload.py-orig microupload.py
54a55
> port_baudrate=115200
56c57
< board = Pyboard(port)
---
> board = Pyboard(port, baudrate=port_baudrate)
62a64,65
> exclude_files = opts['--exclude']
> exclude_files.extend(['.git','.DS_Store'])
64c67
< for x in list_files(root, opts['--exclude'])]
---
> for x in list_files(root, exclude_files)]
Code: Select all
diff microcleanfs.py-orig microcleanfs.py
39a40
> port_baudrate=115200
42c43
< board = Pyboard(port)
---
> board = Pyboard(port, baudrate=port_baudrate)
51c52
< for name in files.ls():
---
> for name in files.ls("/flash"):
54a56
> print("- {}".format(name))
57a60
> print("- /{}/".format(name))
77a81
> print('')
Re: Anyone recommending a good IDE?
I use Atom with the remote-ftp and linter-flake8 packages. I run the Lobo firmware with built-in FTP server. The remote-ftp package automatically syncs files in Atom to the ESP32. I adjust the flake8 rules as needed for the differences between Python and MicroPython.
The same strategy should also work with VS Code or Sublime.
The same strategy should also work with VS Code or Sublime.
-
- Posts: 6
- Joined: Tue Sep 12, 2017 10:26 am
Re: Anyone recommending a good IDE?
A lot of Python is nowadays written in the Jupyter IPython notebook environment.
So I've got Micropython working through this interface.
https://github.com/goatchurchprime/jupy ... on_kernel/
I use its commands to flash the board and to upload files.
https://github.com/goatchurchprime/jupy ... ning.ipynb
So I've got Micropython working through this interface.
https://github.com/goatchurchprime/jupy ... on_kernel/
I use its commands to flash the board and to upload files.
https://github.com/goatchurchprime/jupy ... ning.ipynb
Re: Anyone recommending a good IDE?
Hi,rdagger wrote: ↑Sun Apr 22, 2018 4:38 pmI use Atom with the remote-ftp and linter-flake8 packages. I run the Lobo firmware with built-in FTP server. The remote-ftp package automatically syncs files in Atom to the ESP32. I adjust the flake8 rules as needed for the differences between Python and MicroPython.
The same strategy should also work with VS Code or Sublime.
thanks! First, I am still looking for a good solution that works with Sublime Text. Using FTP requires, if I understand correctly, a Wifi ink to the module, right? I am still looking for an integrated workflow that works via USB UART for
1. syncing the code and file system and
2. REPL
because for an FTP-based approach, I would need to have the uP board and my development machine join the same Wifi, which is not an option in my work environment due to security constraints (the board cannot join the Wifi without using my private credentials, which would be a security risk).
https://github.com/gepd/uPiotMicroPythonTool in principle does what I need, but does not work reliably with my Adafruit Feather boards (maybe their USB UART is a bit too unreliable).
I am thinking of simply using ampy + a REPL via UART; my main problem is that I have not yet found out how I can copy the entire directory of my project to the *root* directory of the Micropython board.
Code: Select all
ampy put <projectdir>
Code: Select all
ampy put <projectdir> /
Code: Select all
ampy put *.*
Best wishes.
Martin
Re: Anyone recommending a good IDE?
Try Dave Hyland's rshell.
Re: Anyone recommending a good IDE?
Just make sure that you use --buffer-size=30 and probably -a with rshell
-
- Posts: 6
- Joined: Wed Aug 12, 2020 11:09 am
Re: Anyone recommending a good IDE?
Thonny is the best IDE I've found for MicroPython ESP-32 and ESP-8266, you can also flash using Thonny.
Late reply, but it may help others too.
Late reply, but it may help others too.