panel icon indicating copy to clipboard operation
panel copied to clipboard

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

Open naveen-mahendrakar opened this issue 1 year ago • 1 comments

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".

naveen-mahendrakar avatar Apr 19 '24 06:04 naveen-mahendrakar

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.

philippjfr avatar Apr 19 '24 07:04 philippjfr