Skip to content
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

can't find the list of available metadata options #927

Open
12rambau opened this issue Aug 2, 2021 · 5 comments
Open

can't find the list of available metadata options #927

12rambau opened this issue Aug 2, 2021 · 5 comments

Comments

@12rambau
Copy link
Contributor

12rambau commented Aug 2, 2021

Problem

I use the voila dashboarding to display Python Jupyter notebooks in a cloud plateform. I realized recently that some parameters such as the theme can be passed directly in the metadata of the notebook (https://voila.readthedocs.io/en/stable/customize.html):

this is extremely useful as I can controll the way my notebook are displayed directly from the notebook. I wanted to set the following option: --show_tracebacks=True as follow but it seems that it doesn't work.

{
  "voila": {
   "show_tracebacks": "true",
   "theme": "dark"
}

where can I found a list of the available voila metadata options ?

Suggested Improvement

Add in the customizing section the list of option that can be set from notebook metadata

note

I would be happy to make a PR on this very page to make it clearer if someone can provide me with such a list

@jtpio
Copy link
Member

jtpio commented Aug 30, 2021

Thanks @12rambau for opening this.

Looking at the PR that implemented that feature, it looks like only theme and template are supported for now? #637

@12rambau
Copy link
Contributor Author

12rambau commented Sep 1, 2021

Do you think that it would make sense to add show_tracebacks in this list ?

@jtpio
Copy link
Member

jtpio commented Sep 1, 2021

At first glance I would say yes. Maybe something that can be tested and discussed in a new PR?

@12rambau
Copy link
Contributor Author

12rambau commented Sep 2, 2021

I'll be glad to work on PR on this but I have several question before I start:

I assume I'll be coding something that looks like what have been done for theme and template here:

# we can override the template via notebook metadata or a query parameter

But I'm not completely sure where to code it. Do I want to alter the voila_configuration attribute or is it to late in the initialization process ? Or should I introduce this modification before the init of this class ?

@fkohrt
Copy link

fkohrt commented Dec 16, 2022

Similarly, strip_sources could be an option configured in the notebook's metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants