Table of Contents | ||||
---|---|---|---|---|
|
...
Following the calls to import required packages and the code for the parsing function (Fig. 5) that should be at the head of the script, all of the remaining script needs to be indented within a function called
main
.To do this, add a main function and indent all of the code within
main
.
Example:
def main():
# all the code from Jupyter notebook
if __name__ == '__main__':
main()
Tip: You can highlight the entire block of code and hit “tab”, and it will indent all the highlighted code at one time.
...
In the above command, edit the “ConfigurationFileName.json” to reflect the name of your configuration file.
Tip |
---|
Success! You have completed this How-To module.Read next: Data Output: Converting output JSON format to CSV tables |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Info |
---|
Breeding Insight is funded by USDA at Cornell University. For more information, please visit http://www.breedinginsight.org. |
...