Solved 3 and fixed bug in publish script.
This commit is contained in:
@@ -40,7 +40,7 @@ def render_solutions(solutions):
|
||||
|
||||
def convert_solutions_to_html(solutions):
|
||||
for s in solutions:
|
||||
if getmtime(s.html) < getmtime(s.ipynb):
|
||||
if not os.path.isfile(s.html) or getmtime(s.html) < getmtime(s.ipynb):
|
||||
args = ["ipython", "nbconvert", s.ipynb]
|
||||
subprocess.call(args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user