Skip to content

Commit

Permalink
fix : minor edit in notebook_to_html.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Jul 22, 2024
1 parent 363fa4c commit 517f8d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Otherfiles/notebook_to_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@
tprint("PYCM", "bulbhead")
tprint("v{0}".format(pycm.__version__), "bulbhead")
tprint("Notebook Convert", "amc3line")
print("Processing ...")
if OUTPUT_FOLDER_PATH in os.listdir():
shutil.rmtree(OUTPUT_FOLDER_PATH)
time.sleep(5)
os.mkdir(OUTPUT_FOLDER_PATH)
for index, notebook in enumerate(sorted(EXAMPLES_LIST)):

print("Documents:")
print("Processing ...")
for index, notebook in enumerate(sorted(MAIN_DOC_LIS)):
notebook_path = os.path.join(
DOCUMENTS_FOLDER_PATH, notebook + NOTEBOOK_EXTENSION)
notebook_copy_path = os.path.join(
Expand All @@ -65,7 +67,9 @@
os.remove(notebook_copy_path)
print("\t{0}.{1} [OK]".format(index + 1, notebook))

for index, notebook in enumerate(sorted(MAIN_DOC_LIS)):
print("\nExamples:")
print("Processing ...")
for index, notebook in enumerate(sorted(EXAMPLES_LIST)):
notebook_path = os.path.join(
DOCUMENTS_FOLDER_PATH, notebook + NOTEBOOK_EXTENSION)
notebook_copy_path = os.path.join(
Expand Down

0 comments on commit 517f8d4

Please sign in to comment.