Skip to content

allow Paths in save()#2355

Merged
jakevdp merged 2 commits into
vega:masterfrom
RoyalTS:save_paths
Dec 1, 2020
Merged

allow Paths in save()#2355
jakevdp merged 2 commits into
vega:masterfrom
RoyalTS:save_paths

Conversation

@RoyalTS
Copy link
Copy Markdown
Contributor

@RoyalTS RoyalTS commented Nov 30, 2020

Fixes #2354

@jakevdp
Copy link
Copy Markdown
Collaborator

jakevdp commented Nov 30, 2020

This is great, thanks! It would be useful to add a test as well; the current test of saving to a string filepath is here: https://github.com/altair-viz/altair/blob/4f6dd28b3d8d540533d59ad1b638f4da8480b87e/altair/vegalite/v4/tests/test_api.py#L284-L292

You could add another few lines of code below this to save via a path object as well.

@jakevdp
Copy link
Copy Markdown
Collaborator

jakevdp commented Dec 1, 2020

Looks great, thanks!

@jakevdp jakevdp merged commit 2aeab22 into vega:master Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Paths in save()

2 participants