How does one specify templates?
mil-ad opened this issue · comments
Milad Alizadeh commented
I've been staring at the API docs for a while now and I can't figure out how one specifies a template when creating an App()
object!
Milad Alizadeh commented
The docs are sooo thin
Milad Alizadeh commented
I'm trying to DescriptivePagesTemplate
but not sure where to import it from
Dr. Shahin Rostami commented
Hello @mil-ad.
The templates are a feature of the Jupyter integration, i.e. an App
generated through dp.App.from_notebook()
.
To set a template, you can use the template
parameter, e.g. for your desired template above:
dp.App.from_notebook(template="descriptive_pages")
If you run it without a template, we'll select one automatically - this includes a list of templates you can specify.
I hope this helps! Please let us know if there's anything else.