-
Notifications
You must be signed in to change notification settings - Fork 33
Saving to .svg on Windows 10: JSONDecodeError #97
Comments
I am having the exact same problem. Any news on that? @gregorhd did you find a solution? Thanks! |
Hi Simone, unfortunately not. I just gave up and ended up saving a low-res png directly from the browser… :-/
From: Simone Parisi ***@***.***>
Sent: 29 January 2022 08:09
To: altair-viz/altair_saver ***@***.***>
Cc: Gregor Herda ***@***.***>; Mention ***@***.***>
Subject: Re: [altair-viz/altair_saver] Saving to .svg on Windows 10: JSONDecodeError (#97)
I am having the exact same problem. Any news on that? @gregorhd <https://github.com/gregorhd> did you find a solution? Thanks!
—
Reply to this email directly, view it on GitHub <#97 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ASBC5CYFNLIET6JNCBSMLNTUYOHB7ANCNFSM5BWGODBQ> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ASBC5C7WFB3PJ7H6A73ORQTUYOHB7A5CNFSM5BWGODB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHULAMVI.gif> Message ID: ***@***.*** ***@***.***> >
|
Got it, thanks anyway. |
Ah good to know! I’ll try that as a workaround next time. Cheers!
From: Simone Parisi ***@***.***>
Sent: 29 January 2022 08:36
To: altair-viz/altair_saver ***@***.***>
Cc: Gregor Herda ***@***.***>; Mention ***@***.***>
Subject: Re: [altair-viz/altair_saver] Saving to .svg on Windows 10: JSONDecodeError (#97)
Got it, thanks anyway.
Btw, I partially fixed the low-quality problem by manually setting height and width of my chart to some large values, but I have to manually rescale everything else as well (labels, fonts, ticks, ...). And it doesn't work in some cases (for example with resolve_scale(x='independent').
It is something, but saving directly in high-res would be much better .
—
Reply to this email directly, view it on GitHub <#97 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ASBC5C2RSB6NT7GXNBF4R4DUYOKHJANCNFSM5BWGODBQ> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ASBC5C3RZATMFC6RJUUZBFLUYOKHJA5CNFSM5BWGODB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHULBKIY.gif> Message ID: ***@***.*** ***@***.***> >
|
Hi there!
|
* adjusted Figures and numbers * altair saver -> has trouble saving pngs on windows see: altair-viz/altair_saver#97
* added every png manually because the altair saver modle has bugs if you use it on windows * see bug: altair-viz/altair_saver#97
Since Altair 5.2, the functionality of Altair Saver is now available in Altair via the vl-convert package. Most of the functionality has been available since 5.0, and the main addition in 5.2 was PDF export. See the docs on how to save charts for more details We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for saving charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo. |
Hi there, even after reading the instructions multiple times, I'm still not able to save a geoshapes-based chart to .svg with
altair_saver
on Windows 10 (executing in VSCode-Python). I'm getting this error reported elsewhere when calling bothchart.save("test.svg", webdriver='firefox')
as well aschart.save("test.svg", webdriver='chrome')
:JSONDecodeError: Expecting value: line 2 column 1 (char 2)
My relevant package versions are
My Chrome browser is version 92.0.4515.131.
I added the path to a chromedriver.exe to the
Path
environment variable (in the system variables). Callingprint(os.environ)
from within my Python environment also shows this path clearly being listed.I know this package hasn't been tested for Windows, but Is there anything else I could try to get this to work?
Thanks a million!
The text was updated successfully, but these errors were encountered: