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

Saved HTML files do not get CSS resources inlined #1949

Closed
chmielcode opened this issue Jan 29, 2021 · 0 comments · Fixed by #1956
Closed

Saved HTML files do not get CSS resources inlined #1949

chmielcode opened this issue Jan 29, 2021 · 0 comments · Fixed by #1956
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@chmielcode
Copy link

ALL software version info

python 3.8.7
panel 0.10.3
bokeh 2.2.3

Description of expected behavior and the observed behavior

Saved HTML files do not get CSS resources inlined.

        <link rel="stylesheet" href="http://localhost:5006/static/extensions/panel/css/alerts.css" type="text/css" />
        <link rel="stylesheet" href="http://localhost:5006/static/extensions/panel/css/card.css" type="text/css" />
        <link rel="stylesheet" href="http://localhost:5006/static/extensions/panel/css/dataframe.css" type="text/css" />
        <link rel="stylesheet" href="http://localhost:5006/static/extensions/panel/css/json.css" type="text/css" />
        <link rel="stylesheet" href="http://localhost:5006/static/extensions/panel/css/markdown.css" type="text/css" />
        <link rel="stylesheet" href="http://localhost:5006/static/extensions/panel/css/widgets.css" type="text/css" />

Since there is no server running, the page loads without styles and with additional delay.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
from bokeh.resources import INLINE
pn.panel('# Test').save("test.html", resources=INLINE)
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jan 29, 2021
@philippjfr philippjfr added this to the v0.10.4 milestone Jan 29, 2021
@philippjfr philippjfr modified the milestones: v0.10.4, v0.11.0 Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants