File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2525
2626import copy
2727import threading
28- from typing import TYPE_CHECKING
28+ from typing import TYPE_CHECKING , Literal
2929
3030import reacton .ipywidgets as widgets
3131import solara
@@ -93,15 +93,16 @@ def Card(
9393@solara .component
9494def SolaraViz (
9595 model : "Model" | solara .Reactive ["Model" ],
96- components : list [solara .component ] | None = None ,
96+ components : list [solara .component ] | Literal [ "default" ] = "default" ,
9797 * args ,
9898 play_interval = 150 ,
9999 model_params = None ,
100100 seed = 0 ,
101101 name : str | None = None ,
102102):
103- if components is None :
104- components = []
103+ update_counter .get ()
104+ if components == "default" :
105+ components = [components_altair .make_space_altair ()]
105106
106107 # Convert model to reactive
107108 if not isinstance (model , solara .Reactive ):
You can’t perform that action at this time.
0 commit comments