Skip to content

Commit

Permalink
Added batch processing in featured recipe generation tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Jul 27, 2014
1 parent 7c53a9c commit 34758c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/genfeatured.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ def transform_featured(notebook_filename):
f.write(contents)

def main():
transform_featured(sys.argv[1])
if len(sys.argv) == 1:
for nb in sorted([x for x in os.listdir(featured_dir)
if x.endswith('.ipynb')]):
print(nb)
transform_featured(nb)
else:
transform_featured(sys.argv[1])

if __name__ == '__main__':
main()
Expand Down

0 comments on commit 34758c2

Please sign in to comment.