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
Fix hv.save for png images #4304
base: main
Are you sure you want to change the base?
Conversation
AFAIK panel only supports I am not familiar with the tests of the package. But If you point me to the place where you are testing the function I modified I can add a test to assert the I can also change the message of the error if you have a better suggestion. |
To be clear the intention was that the format would be specified as part of the filename and fmt would mostly be used to switch between different widget types, i.e. widgets or scrubber. |
I think |
I have been using this wrong all the time 😅, I will modify the code of my libraries to reflect this. Thanks for the tip! |
That's likely more of a failure of our docs, if you have suggestions on how and where to clarify this I'd be very open to make those changes. |
Should I remove the If you send me a link with the valid formats (just to be sure I am not missing anything) I can make another PR with that. |
I think the ValueError is fine tbh, that's all the formats that bokeh can export directly. Anything else is already handled in a different way. |
I will think about it and make an informed suggestion (I hope in the form of a PR) |
Closes #4302
Calling
holoviews.save
on panels ignores the parameterfmt
and outputs all the layout objects ashtml
files.This PR updates the name of the file passed to
plot.layout.save
to include the file extension when the selected format ispng
. This allows panel to also export the panels aspng
images.