Skip to content

[BUG]: Unexpected warning when using write_image #5512

@MarcelloSciarra

Description

@MarcelloSciarra

I am getting an unexpected warning message

Support for the 'engine' argument is deprecated and will be removed after September 2025. Kaleido will be the only supported engine at that time.

when using function write_image without specifying the engine.

After some investigation, my suspicion is that function io/_kaleido/write_image is setting engine = "auto" but then when function to_image is called the expected default value for engine would be "None" and a warning is raised for any value except "None". Then, in the same function engine is set to "auto" but the warning is already raised. I suspect that the two default values should be made uniform.

I have confirmed this by running:

write_image(.... engine=None)

and the warning is not raised.

Thanks for taking a look at that!

Metadata

Metadata

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions