File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -177,15 +177,19 @@ def _(func: F) -> F:
177
177
# This part is hidden from the typechecker because shinylive is not a direct
178
178
# dependency of shiny and we only need this section when building the docs.
179
179
try :
180
- import shinylive
180
+ from shinylive import ShinyliveApp
181
+ except ImportError :
182
+ raise RuntimeError (
183
+ "Please install the latest version of shinylive to build the docs."
184
+ )
181
185
except ModuleNotFoundError :
182
186
raise RuntimeError ("Please install shinylive to build the docs." )
183
187
184
188
class ShinyliveExampleWriter (ExampleWriter ):
185
189
def write_example (self , app_files : list [str ]) -> str :
186
190
app_file = app_files .pop (0 )
187
- app = shinylive . url_encode (app_file , app_files , language = "py" )
191
+ app = ShinyliveApp . from_local (app_file , app_files , language = "py" )
188
192
189
- return app .chunk (layout = "vertical" , viewerHeight = 400 )
193
+ return app .chunk (layout = "vertical" , viewer_height = 400 )
190
194
191
195
example_writer = ShinyliveExampleWriter ()
You can’t perform that action at this time.
0 commit comments