Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does one specify templates? #350

Closed
mil-ad opened this issue Feb 21, 2023 · 3 comments
Closed

How does one specify templates? #350

mil-ad opened this issue Feb 21, 2023 · 3 comments

Comments

@mil-ad
Copy link

mil-ad commented Feb 21, 2023

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!

@mil-ad
Copy link
Author

mil-ad commented Feb 21, 2023

The docs are sooo thin

@mil-ad
Copy link
Author

mil-ad commented Feb 21, 2023

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

@shahinrostami
Copy link
Contributor

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.

@datapane datapane locked and limited conversation to collaborators Feb 22, 2023
@shahinrostami shahinrostami converted this issue into discussion #351 Feb 22, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants