Voila: Ability to pass parameters to the 'Render with Voila' button

Created on 14 Apr 2021  路  2Comments  路  Source: voila-dashboards/voila

Background:

The 'Render with Voila' button is great when checking the voila view of a notebook, but it currently shows everything. Often times voila is ran with some configuration eg) hiding some cells based on tags, or using a dark theme.

Issue:

To see what the notebook would look like when put into production - it would be convenient if one could embed parameters into the 'Render with Voila' button.

For Example, if there was some mechanism to embed some parameters such as these:

--theme=dark --TagRemovePreprocessor.remove_cell_tags hide

for the button:
image

jupyterlab-preview

Most helpful comment

Thanks @afonit.

Maybe this could be a combination of https://github.com/voila-dashboards/voila/issues/606 and https://github.com/voila-dashboards/voila/issues/486.

for the button:
image

If this button is also in the preview toolbar, then maybe it could "pick up" the parameters from the other toolbar widgets, such as the template and themes:

image

Those options are not part of the toolbar yet though.

All 2 comments

Thanks @afonit.

Maybe this could be a combination of https://github.com/voila-dashboards/voila/issues/606 and https://github.com/voila-dashboards/voila/issues/486.

for the button:
image

If this button is also in the preview toolbar, then maybe it could "pick up" the parameters from the other toolbar widgets, such as the template and themes:

image

Those options are not part of the toolbar yet though.

I'll add to this the ability to strip sources or not

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laserman781 picture laserman781  路  3Comments

choldgraf picture choldgraf  路  8Comments

johnjarmitage picture johnjarmitage  路  6Comments

janfreyberg picture janfreyberg  路  6Comments

cornhundred picture cornhundred  路  4Comments