@@ -78,6 +78,11 @@ class App:
7878 The default is False, meaning the notebook will execute all cells even with
7979 errors.
8080
81+ hide_errors : bool, default True
82+ If True, the notebook will not display errors and exceptions from notebook
83+ execution. Please set to False if you would like to see error messages and
84+ traceback in the notebook.
85+
8186 Examples
8287 --------
8388 Constructing Mercury App with `title` and `description` arguments.
@@ -106,6 +111,7 @@ def __init__(
106111 allow_download = True ,
107112 allow_share = True ,
108113 stop_on_error = False ,
114+ hide_errors = True ,
109115 ):
110116 self .code_uid = WidgetsManager .get_code_uid ("App" )
111117 self .title = title
@@ -122,6 +128,7 @@ def __init__(
122128 self .allow_download = allow_download
123129 self .allow_share = allow_share
124130 self .stop_on_error = stop_on_error
131+ self .hide_errors = hide_errors
125132 display (self )
126133
127134 def __repr__ (self ):
@@ -149,6 +156,7 @@ def _repr_mimebundle_(self, **kwargs):
149156 "allow_download" : self .allow_download ,
150157 "allow_share" : self .allow_share ,
151158 "stop_on_error" : self .stop_on_error ,
159+ "hide_errors" : self .hide_errors ,
152160 "model_id" : "mercury-app" ,
153161 "code_uid" : self .code_uid ,
154162 }
0 commit comments