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

Patch to make tabulator work offline in jupyter notebook in "pn.config.inline" mode #6607

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Mar 31, 2024

  1. Patch to make tabulator work offline in "pn.config.inline" mode

    - notebook `render_mimebundle` defaults to resources=inline when pn.config.inline=True instead of always using cdn
    - In this mode, we patch the doc json to replace ImportedStyleSheet with InlineStyleSheet
    - resources.py patches loading of inlined js file to make require defines work in cases where the define() call has the module name not specified
    - layout.ts: watch_stylesheets() makes sure to call "style_redraw()" in case no css link needs to be loaded. This is done after a timeout since some models (eg Tabulator) aren't completely setup when the watch_stylesheets() call is made.
    pankajp committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    a9160e8 View commit details
    Browse the repository at this point in the history