Open jeromekelleher opened 6 months ago
I've started looking into this, and have a basic png of the mutations plot:
This requires selenium
which is available with a pip install. Are we ok with this as it is a heavy dependency, we could make it an optional one?
Would need some discussion I think. Is there a way to do a "screen grab" with some JS, client side?
Ah, I now realise this issue is focussed on having a save button on the UI when viewing on web. I was mainly thinking about the non-interactive pipeline use case.
Yeah, that's a separate issue
There's no easy way to screenshot part of a webpage from JavaScript. (You have to play games like re-rendering the html to a canvas) Best way would be to serve pngs made by the API suggested at #158.
Best way would be to serve pngs made by the API suggested at #158.
It is a somewhat different use-case as we want poeple to be able to do some zooming in etc. But they can always just use screen grabs to be honest, so maybe we should just not bother with this.
Bokeh supports saving plots to some degree. We should see if we can use this to export particular views of (e.g.) the mutations browser.