![learning factory box folder learning factory box folder](https://sc01.alicdn.com/kf/HTB1DCtiPFXXXXb4aXXXq6xXFXXXL/230005220/HTB1DCtiPFXXXXb4aXXXq6xXFXXXL.jpg)
#Learning factory box folder code
You use the control script to control how and where your machine learning code is run.
![learning factory box folder learning factory box folder](https://sc01.alicdn.com/kf/H5a74ae5994ee454db6e1e490ce118227m/200577035/H5a74ae5994ee454db6e1e490ce118227m.jpg)
Create a control scriptĪ control script allows you to run your hello.py script on different compute resources. Close the tab and select Terminate to close the session. You'll see the output of the script in the terminal window that opens. Select Save and run script in terminal to run the script. Wait about a minute for state to change to Running. If you have previously stopped your compute instance, start it now with the Start compute tool to the right of the compute dropdown. Running code locally has the benefit of interactive debugging of code.
![learning factory box folder learning factory box folder](https://img.waimaoniu.net/680/680-201901111009361548.jpg)
You can run your code locally, which in this case means on the compute instance. Your project folder structure will now look like: Switch the File type to Python (.py)*.Ĭopy this code into your file: # src/hello.py