Skip to content

Instantly share code, notes, and snippets.

@HacksonClark
HacksonClark / ipynb_to_html.py
Created February 27, 2023 20:13
Converts all jupyter notebook (ipynb) files in current directory to html files.
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}')