-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update docstrings for chart saving #1450
Conversation
Test: test_2_rounds_1k_duckdbPercentage change: -11.4%
Test: test_2_rounds_1k_sqlitePercentage change: -1.0%
Click here for vega lite time series charts |
Looks great to me @RossKen ! |
Whilst this looks like the best option, unfortunately it's not possible to do it this way. The reason is that chart.save(.html) produces (I believe , but worth checking) a chart which works as a standalone web page only if you have an internet connection, whilst this function seeks to allow users in airgapped environments to use the chart. So it needs to follow a similar approach as before, but now retrieve the chart spec from the altair chart (sorry can't remember the method for that and am on my phone) I'm not actually sure how this interacts with the .PNG saving. I guess that probably does work offline, so the need for this function is somewhat lower, but you'd probably loose the tooltip and any other interactivity |
Ahhh, yes that makes sense. Darn. It looks like https://github.com/altair-viz/altair_saver solves this with |
Good spot! - I was not aware of that. So comes down to whether we want the additional dependency. Since we already have working code, and Splink gets installed on quite a lot of strange infrastructure (often airgapped, with limited access to pypi) I'd probably err on the side of not adding the dependency, but I don't have particularly strong views |
Given we probably don't want to add more dependencies, should we close this PR? |
There's still a bug, it's just that now the charts are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I shall rescind my approval upon reading Robin's review...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once addressed, I'll approve
#1450 (comment)
This is already fixed by https://github.com/moj-analytical-services/splink/pull/1694/files |
Type of PR
Is your Pull Request linked to an existing Issue or Pull Request?
Closes #1441
Give a brief description for the solution you have provided
Update chart saving examples in chart docstrings
PR Checklist