Skip to content

Instantly share code, notes, and snippets.

View satyamsatyarthi's full-sized avatar

Satyam Satyarthi satyamsatyarthi

View GitHub Profile
satyamsatyarthi /
Created September 11, 2014 05:58
Convert IPython notebooks to Jekyll compatiblem markdown.
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.')