Hi, all. I'm using songbird through the Artifact API and I have a question that I think applies broadly to Visualizations.
What I would like to do is retrieve the html itself from a Visualization in Python (i.e. the contents of data/index.html). As an example, songbird paired_summary returns a visualization that I can check in a notebook
Yes you can! I cannot promise this won’t break someday (as it is private), but for any of our archive objects you can do this:
my_viz._archiver.data_dir
That will give you a pathlib object. If you need a boring old string, then just use str to coerce it.
That said, I think this does indicate that some of the data is useful on it’s own, and perhaps there should be an intermediate artifact, so that more processing can be done (or perhaps alternative visualizations). You might open an issue on the songbird repository requesting such a feature.