##// END OF EJS Templates
handle unicode output
Matthias BUSSONNIER -
Show More
@@ -1,9 +1,10 b''
1 1 # coding: utf-8
2 2 import sys
3 import io
3 4 from converters.template import *
4 5 C = ConverterTemplate(tplfile=sys.argv[1])
5 6 C.read('tests/ipynbref/IntroNumPy.orig.ipynb')
6 7
7 8 S = C.convert()
8 with open('temp.txt','w') as f:
9 with io.open('temp.txt','w') as f:
9 10 f.write(S)
@@ -5,7 +5,7 b''
5 5 <head>
6 6 <style type="text/css">
7 7 /**
8 * HTML5 Boilerplate
8 * HTML5 Boilerplate
9 9 *
10 10 * style.css contains a reset, font normalization and some base styles.
11 11 *
General Comments 0
You need to be logged in to leave comments. Login now