I had some problems to run the file 'main.py' at boot of esp8266.
file 'main.py' is edited under ESPLORER, and transfered to the esp8266.
At RESET, it did not work.
the solution must be added an EOL ('\ n') to each line.
example:
import time\n
import machine\n
pin = machine.Pin(2...