@@ -150,6 +150,13 @@ casper.notebook_test(function () {
150
150
check_output_area . apply ( this , [ 'execute_result' , [ 'text' , 'html' ] ] ) ;
151
151
} ) ;
152
152
153
+ this . then ( function ( ) {
154
+ clear_and_execute ( this ,
155
+ "from base64 import b64decode;" +
156
+ "black_dot_png = b64decode(" + black_dot_png + ");" +
157
+ "black_dot_jpeg = b64decode(" + black_dot_jpeg + ")"
158
+ ) ;
159
+ } ) ;
153
160
this . then ( function ( ) {
154
161
clear_and_execute ( this ,
155
162
"from IPython.display import HTML, display; display(HTML('<b>it works!</b>'))" ) ;
@@ -162,7 +169,7 @@ casper.notebook_test(function () {
162
169
163
170
this . then ( function ( ) {
164
171
clear_and_execute ( this ,
165
- "from IPython.display import Image; Image(" + black_dot_png + " )") ;
172
+ "from IPython.display import Image; Image(black_dot_png)" ) ;
166
173
} ) ;
167
174
this . thenEvaluate ( function ( ) { IPython . notebook . save_notebook ( ) ; } ) ;
168
175
@@ -172,7 +179,7 @@ casper.notebook_test(function () {
172
179
173
180
this . then ( function ( ) {
174
181
clear_and_execute ( this ,
175
- "from IPython.display import Image, display; display(Image(" + black_dot_png + " ))") ;
182
+ "from IPython.display import Image, display; display(Image(black_dot_png))" ) ;
176
183
} ) ;
177
184
178
185
this . then ( function ( ) {
@@ -182,7 +189,7 @@ casper.notebook_test(function () {
182
189
183
190
this . then ( function ( ) {
184
191
clear_and_execute ( this ,
185
- "from IPython.display import Image; Image(" + black_dot_jpeg + " , format='jpeg')") ;
192
+ "from IPython.display import Image; Image(black_dot_jpeg, format='jpeg')" ) ;
186
193
} ) ;
187
194
188
195
this . then ( function ( ) {
@@ -191,7 +198,7 @@ casper.notebook_test(function () {
191
198
192
199
this . then ( function ( ) {
193
200
clear_and_execute ( this ,
194
- "from IPython.display import Image, display; display(Image(" + black_dot_jpeg + " , format='jpeg'))") ;
201
+ "from IPython.display import Image, display; display(Image(black_dot_jpeg, format='jpeg'))" ) ;
195
202
} ) ;
196
203
197
204
this . then ( function ( ) {
0 commit comments