tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Global state style for svg/html drawing methods

Open benjeffery opened this issue 2 years ago • 1 comments

It would be handy for notebooks and jupyterbooks to be able to set a style for tskit generated SVG and HTML in a given session. A method such as tskit.set_svg_style(css_string) this global state would be used if no style was specified for draw_svg class.

benjeffery avatar Jun 22 '22 12:06 benjeffery

Jupyter notebooks are weird because any style defined anywhere in the notebook percolates to the rest of the book (this doesn't happen in Jupyterbooks because the HTML and SVG elements are served as separate files, I think). So you may have to define unique IDs or classes for HTML and SVG elements to get exactly the style you expect.

hyanwong avatar Jun 29 '22 08:06 hyanwong

No longer needed.

benjeffery avatar Aug 16 '22 12:08 benjeffery