colab -> notebook

This commit is contained in:
Laurent Perron
2017-11-20 17:12:12 +01:00
parent 4abd300cdd
commit 4a58e5ce38
6 changed files with 1 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ nbook = v4.upgrade(nbook) # Upgrade v3 to v4
jsonform = v4.writes(nbook) + "\n"
output = input
output = output.replace('.py', '.ipynb')
output = output.replace('examples/python', 'examples/colab')
output = output.replace('examples/python', 'examples/notebook')
print('writing %s' % output)
with open(output, "w") as fpout:
fpout.write(jsonform)