def write_result(ofnamevalue)with open(ofname' 'as outprint >>out"result is:"value write_result('output txt'resone small inconvenience of using jug is that we must always write functions to output the results to files as shown in the preceding examples this is small price to pay for the extra convenience of using jug not all features of jug could be mentioned in this but here is summary of the most potentially interesting ones that we didn' cover in the main textjug invalidatethis feature declares that all results from given function should be considered invalid and in need of recomputation this will also recompute any downstream computation that depended (even indirectlyon the invalidated results jug status --cacheif jug status takes too longyou can use the --cache flag to cache the status and speed it up note that this will not detect any changes to jugfile pybut you can always use --cache --clear to remove the cache and start again jug cleanupthis feature removes any extra files in the memoization cache this is garbage collection operation there are other more advanced featureswhich allow you to look at values that have been computed inside jugfile py read up on the use of "barriersin the jug documentation (online at rtfd orgusing amazon web services (awswhen you have lot of data and lot of computationyou might start to crave for more computing power amazon (aws amazon com/allows you to rent computing power by the hour thusyou can access large amount of computing power without having to precommit by purchasing large number of machines (including the costs of managing the infrastructurethere are other competitors in this marketbut amazon is the largest playerso we briefly cover it here amazon web services (awsis large set of services we will focus only on the elastic compute cluster (ec service this service offers you virtual machines and disk spacewhich can be allocated and deallocated quickly