"""
Jupyter notebook could be good for educational purpose.
Before release in class, output generated during testing and execution number need to be removed.
Some people already wrote some scripts but have problem dealing with special characters  
"""

import os
import sys

import nbformat

if __name__ == '__main__':

    def main(argv):
        help(nbformat)
        if 1 < len(argv):
            filename = argv[1]
            print(filename)
        else:
            print("Usage : python %s <notebook file path>" % os.path.split(__file__)[-1])


    main(sys.argv)

@@ -337,31 +337,8 @@
 v):%0A
-        help(nbformat)%0A
     
@@ -416,16 +416,42 @@
 filename
+, os.path.exists(filename)
 )%0A      
@@ -548,16 +548,43 @@
 _)%5B-1%5D)%0A
+            help(nbformat)%0A
 %0A%0A    ma

check of the file exists