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