This file contains 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 json #for reading .ipynb | |
import sys #python version for proper unicode support | |
import os #directory and path operations | |
import errno #safe directory creation | |
import argparse #command line args | |
import re #latex to liquid | |
parser = argparse.ArgumentParser(description='Convert IPython notebooks to Jekyll Markdown with Liquid Tags.') | |
parser.add_argument('filename', metavar='file', type=str, nargs=1, help='full path to .ipynb file') | |
parser.add_argument('--f', action='store_true', help='overwrite existing files without warning.') |