jupyter_micropython_kernel
jupyter_micropython_kernel copied to clipboard
Viewing/editing files on a device
Sorry if this is the wrong place for this, but I'm getting confused about what the intention of Jupyter is.
I can connect to my ESP32, and run any code successfully in the cell and see a response on the device, but I can't see or edit any of the files that are on the device. Is Jupyter intended only as a playground for testing out bits of code? Can't actually make any permanent changes on the device?
There's a set of magic commands, which you can see using %lsmagic
The one you probably want is this one:
%sendtofile [--append] [--mkdir] [--binary] [--execute]
[--source [SOURCE]] [--quiet] [--QUIET]
[destinationfilename]
send cell contents or file/direcectory to the device
My workflow is usually to hack up the different functions I need, gradually developing them (you can use esc-I-I to control-C and interrupt loops. Then when I have something working I put "%sendtofile main.py" at the start of a cell and it's good to go.
Here's an example: https://github.com/goatchurchprime/jupyter_micropython_developer_notebooks/blob/master/projects/esp8266buttontoUDP.ipynb
Thanks @goatchurchprime ! Are you the Julian at DoES Liverpool?
yes. I suppose I should update my profile then.