MarcSkovMadsen commited on
Commit
934b31e
1 Parent(s): 3c2bcb1

update template

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -125,7 +125,10 @@ class AsyncComponent(pn.viewable.Viewer):
125
  time.sleep(np.random.randint(1, 2))
126
  return 5
127
 
128
- if __name__.startswith("bokeh"):
129
- pn.extension(template="fast")
130
- pn.pane.Markdown(__doc__).servable()
131
- AsyncComponent().servable() # pylint: disable=no-value-for-parameter
 
 
 
 
125
  time.sleep(np.random.randint(1, 2))
126
  return 5
127
 
128
+ if pn.state.served:
129
+ pn.extension()
130
+
131
+ component = AsyncComponent()
132
+ pn.template.FastListTemplate(
133
+ site="Awesome Panel", title="Async Tasks", main=[component], main_layout=None, main_max_width="400px"
134
+ ).servable()