datapane / datapane

Build and share data reports in 100% Python

Home Page:https://datapane.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How does one specify templates?

mil-ad opened this issue · comments

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!

The docs are sooo thin

I'm trying to DescriptivePagesTemplate but not sure where to import it from

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.

Screenshot 2023-02-22 at 10 11 32

I hope this helps! Please let us know if there's anything else.