@@ -262,17 +262,15 @@ def apply(self, expr, args, evaluation):
262
262
if not instantiator .add (arg , evaluation ): # not a valid argument pattern?
263
263
return
264
264
except IllegalWidgetArguments as e :
265
- evaluation .error ('Manipulate' , 'widgetargs' , strip_context (str (e .var )))
265
+ return evaluation .message ('Manipulate' , 'widgetargs' , strip_context (str (e .var )))
266
266
except JupyterWidgetError as e :
267
- evaluation .error ('Manipulate' , 'widgetmake' , e .err )
268
- return Symbol ('$Aborted' )
267
+ return evaluation .message ('Manipulate' , 'widgetmake' , e .err )
269
268
270
269
clear_output_callback = evaluation .clear_output_callback
271
270
display_data_callback = evaluation .display_data_callback # for pushing updates
272
271
273
272
if clear_output_callback is None or display_data_callback is None :
274
- evaluation .error ('Manipulate' , 'imathics' )
275
- return Symbol ('$Aborted' )
273
+ return evaluation .message ('Manipulate' , 'imathics' )
276
274
277
275
def callback (** kwargs ):
278
276
clear_output_callback (wait = True )
@@ -293,7 +291,6 @@ def callback(**kwargs):
293
291
box = _interactive (instantiator .build_callback (callback ), widgets ) # create the widget
294
292
formatter = IPythonDisplayFormatter ()
295
293
if not formatter (box ): # make the widget appear on the Jupyter notebook
296
- evaluation .error ('Manipulate' , 'widgetdisp' )
297
- return Symbol ('$Aborted' )
294
+ return evaluation .message ('Manipulate' , 'widgetdisp' )
298
295
299
296
return Symbol ('Null' ) # the interactive output is pushed via kernel.display_data_callback (see above)
0 commit comments