#!/usr/bin/env python
from IPython.external import mathjax; mathjax.install_mathjax()

@@ -15,16 +15,47 @@
  python%0A
+if __name__ == %22__main__%22:%0A    
 from IPy

add if __name__ == "__main__" to scripts/setup_mathjax.py