Upload The File To The micro:bit
To upload a Python file to the micro:bit, connect the micro:bit to your computer and select the desired Python file in the Project panel.
Click on the hamburger icon to bring up the main menu. Slide the mouse over the Tools selection and then select External Tools and click on uflash.
When the upload completes, the results are displayed in the Run window at the bottom of the screen.