Skip to content

Create export to Gridstack Voila (Dejavu?) HTML menu item in Jupyter Lab? #180

Open
@bdklahn

Description

Screenshot_20220802_152058
Hello!
I love the gridstack template! I almost feel like it should be used as the default one for HTML export. It seems only natural to not want to limit display to only one column, for an html page.
Even old-school, primitive, web pages have sidebars, etc. :-)

But I understand the legacy of just wanting to clearly display the linear progression of a notebook exploration.

Anyway . . . I wonder how hard it might be to include a menu option to (apply the Voila/Dejavu settings and) export using the gridstack template. I mean . . . I guess one can download the displayed "breakout web page", but . . .

Here's how I now do it in a small "render_utils" library I created (which also handles papermill parameters cell injection).

    c = Config()
    c.TemplateExporter.exclude_input = True
    c.TemplateExporter.exclude_output_prompt = True
    c.TemplateExporter.exclude_input_prompt = True
    c.ExecutePreprocessor.enabled=True
    c.HTMLExporter.template_name = 'gridstack'

(and I guess that might even be able to just inherit from the Voila template???)
Would it be too hard to add something like the Reveal.js one?

Thanks!

PS. It occurs to me that maybe the Jupyter Lab repo is a more appropriate place to post this, but . . .

Activity

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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions