are you using the 5V pin to power the LCD and other stuff?
when you upload the code through the IDE locally, you are connected through USB at 5V. When you upload the code from the cloud powered by your 9V adaptor, that would be a difference :
- 5V: This pin outputs 5V from the board when powered from the USB connector. Note: for it to work, you need to short theor VBUS jumper on the back of the board. If you power the board from the VIN pin, you won’t get any regulated 5V and even if you do the solder bridge.
(from the documentation)