-
Notifications
You must be signed in to change notification settings - Fork 33
Unable to save to png format under Windows 10 using node #95
Comments
This package has not been tested with Windows (I don't have access to any windows machine on which to test). Any help would be appreciated! |
Happy to help if I can. |
I was able to solve a very similar issue by installing the required packages globally When I installed vega itself my issues went away |
I played around with a few different configurations, but indeed, it seems that installing these four packages globally (in addition to vega-lite-cli and vega-cli existing in conda) is the only one that works. Thanks @TravisNeils. |
@TravisNeils solution worked for me on Win10 as well. Is this caused by a dependency not being installed correctly on Windows? |
I'm having the same issue saving Altair charts to any format from within VSCode-Python (VSCode v1.58.2) on Windows 10, neither running a Python script nor a Jupyter-Notebook opened in VSCode. The error message is the same.
I'm not familiar with node, I'm afraid. Could you provide pointers on how to save Altair charts using node? I understand the npm install commands should be run from a node.js command prompt. How do I proceed from there to save my charts? |
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. |
Despite many attempts, I cannot seem to save charts in "png" format (really any format, but that's what I want) under Anaconda w/Windows 10. I have no issue on a Mac.
The last part of the error is always:
JSONDecodeError: Expecting value: line 2 column 1 (char 2)
A png file is created, but it appears to contain a command rather than its output.
If I try specifying mode="vega", it succeeds and produces a file, but it just contains a command not an PNG file:
FWIW:
Python 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 15:37:01) [MSC v.1916 64 bit (AMD64)] on win32
The text was updated successfully, but these errors were encountered: