Closed sacundim closed 3 years ago
Well, turns out that PNG doesn't just save fine... it saves fine in one context but not another. I say "context" because I can't understand at all why it would be any different, it's the same code path more than once in the same process.
Ah, I found the problem. It's not in altair_saver, it's Altair producing invalid JSON with a NaN
tokens. I have filed an issue in Altair.
I just made some changes to my app that had nothing to do with the code that saves charts, and somehow now SVG saving is broken with the exception below. PNG saves just fine. Seriously, I didn't touch the code for saving charts; the only way I can imagine my code changes affecting these code paths are that I added a bunch of library dependencies.
I'm using:
poetry.lock
fileI'm enabling altair_saver renderers here, and my call into the Altair save method is here.
Stack trace: