Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Saving to svg using Node on Windows #70

Closed
sjorspeterse opened this issue May 17, 2020 · 6 comments
Closed

Saving to svg using Node on Windows #70

sjorspeterse opened this issue May 17, 2020 · 6 comments

Comments

@sjorspeterse
Copy link

Hi, thank you for your amazing work!

I tried generating svg images using NodeJS, but got an ValueError: Unsupported format: 'svg'.
After removing a newline character from the npm_bin path, it worked.
In savers/_node.py, I changed
return check_output_with_stderr(cmd).decode()
for
return check_output_with_stderr(cmd).decode().rstrip('\n')

I don't really understand where that newline came from, but I'm using Windows 10.
Hope this helps!

@sjorspeterse
Copy link
Author

Oops, just saw that this is already fixed!

@sjorspeterse
Copy link
Author

I can't seem to update from version 0.1.0 to 0.5.0 because that requires vega-cli and vega-lite-cli, and those are not available for Windows on Anaconda. Does that mean you're no longer supporting Windows? I'm sorry if this is a trivial question.

@sjorspeterse sjorspeterse changed the title Saving to svg using npm Saving to svg using Node on Windows May 17, 2020
@jamesmyatt
Copy link

jamesmyatt commented Dec 5, 2020

I'm also on Windows and stuck on 0.1.0 because of the vega-cli and vega-lite-cli dependencies. And the selenium version is not working for me, despite the python-chromedriver-binary being available and installed.

@jakevdp
Copy link
Member

jakevdp commented Dec 5, 2020

For selenium, the chromedriver binary is not enough. You also need a compatible version of Google Chrome.

@jamesmyatt
Copy link

0.5.0 is available on conda-forge for win64 now, since @xhochy updated the vega-cli and vega-lite-cli dependencies for Windows.

@joelostblom
Copy link
Member

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.

@joelostblom joelostblom closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants