feat: make the inference in examples homomorphic

This commit is contained in:
Umut
2021-09-10 14:26:56 +03:00
parent fb2b7eb003
commit b7a7d3d064
5 changed files with 670 additions and 533 deletions

View File

@@ -1,23 +0,0 @@
import json
import sys
from pathlib import Path
def main():
path_to_glob = Path(sys.argv[1])
notebooks = path_to_glob.glob("*.ipynb")
for notebook_file in notebooks:
with open(notebook_file, "r") as f:
notebook_dict = json.load(f)
execution = notebook_dict["metadata"].get("execution", {})
execution["timeout"] = 1000
notebook_dict["metadata"]["execution"] = execution
with open(notebook_file, "w", newline="\n") as f:
json.dump(notebook_dict, f, indent=1, ensure_ascii=False)
if __name__ == "__main__":
main()