This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from os import listdir | |
from os.path import isfile, join | |
onlyfiles = [f for f in listdir('.') if isfile(join('.', f))] | |
for file in onlyfiles: | |
if file.split('.')[-1] == 'ipynb': | |
print(file) | |
os.system(f'jupyter nbconvert --to html {file}') |