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

HTML generated from save method of panel cannot be viewed in a no-network environment even though the resources is set to INLINE #6759

Open
naveen-mahendrakar opened this issue Apr 19, 2024 · 1 comment

Comments

@naveen-mahendrakar
Copy link

Description

Save method of panel does not open in a no-network environment if resources are set to INLINE. Though the HTML report is generated, the HTML file cannot be viewed in a no-network environment, since there are CDN paths in the generated HTML for the resources (CSS, JS).

Code

from bokeh.resources import INLINE
panel.save('test.html', resources=INLINE)

Software Details

Panel: 1.3.8
Python: 3.11.8
OS: Windows 10
Browser: Chrome 123.0.6312.124

Conclusion

Save method of panel should be able to generate HTML file with the resources inlined when the parameter "resources" is set to "INLINE".

@philippjfr
Copy link
Member

It depends a little bit on what resources you're talking about. Certain extensions can't easily be inlined and in the case of js modules it's sometimes entirely impossible. So I'd love to hear more details of the precise use case.

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

No branches or pull requests

2 participants