@@ -69,6 +69,10 @@ class App:
6969 If True (the default), a Download button is available to export results as
7070 a PDF or HTML file. Set to False to hide the Download button.
7171
72+ allow_share : bool, default True
73+ If True (the default), a Share button is available to export results as a
74+ URL. Set to False to hide the Share button.
75+
7276 stop_on_error : bool, default False
7377 If True, the notebook will stop execution when an error occurs in a cell.
7478 The default is False, meaning the notebook will execute all cells even with
@@ -100,6 +104,7 @@ def __init__(
100104 show_sidebar = True ,
101105 full_screen = True ,
102106 allow_download = True ,
107+ allow_share = True ,
103108 stop_on_error = False ,
104109 ):
105110 self .code_uid = WidgetsManager .get_code_uid ("App" )
@@ -115,6 +120,7 @@ def __init__(
115120 self .show_sidebar = show_sidebar
116121 self .full_screen = full_screen
117122 self .allow_download = allow_download
123+ self .allow_share = allow_share
118124 self .stop_on_error = stop_on_error
119125 display (self )
120126
@@ -141,6 +147,7 @@ def _repr_mimebundle_(self, **kwargs):
141147 "show_sidebar" : self .show_sidebar ,
142148 "full_screen" : self .full_screen ,
143149 "allow_download" : self .allow_download ,
150+ "allow_share" : self .allow_share ,
144151 "stop_on_error" : self .stop_on_error ,
145152 "model_id" : "mercury-app" ,
146153 "code_uid" : self .code_uid ,
0 commit comments