runme.py
10 lines
| 257 B
| text/x-python
|
PythonLexer
Matthias BUSSONNIER
|
r9011 | #!/usr/bin/env python | ||
Matthias BUSSONNIER
|
r8994 | # coding: utf-8 | ||
Matthias BUSSONNIER
|
r9014 | from __future__ import print_function | ||
Matthias BUSSONNIER
|
r8997 | import sys | ||
Matthias BUSSONNIER
|
r9003 | import io | ||
Matthias BUSSONNIER
|
r8994 | from converters.template import * | ||
Matthias BUSSONNIER
|
r8997 | C = ConverterTemplate(tplfile=sys.argv[1]) | ||
Matthias BUSSONNIER
|
r8994 | C.read('tests/ipynbref/IntroNumPy.orig.ipynb') | ||
Matthias BUSSONNIER
|
r8997 | |||
Matthias BUSSONNIER
|
r9014 | print(C.convert().encode('utf-8')) | ||