Skip to content

Interactive HTML figures direct bokeh div directly #7

@syntonym

Description

@syntonym

Hey LaurentRDC!

I'm trying out the new feature to include bokeh interactive plots and run into the problem that the dimensions of the embedded figure are hardcoded to 600x600 px. If I understand correctly the main reason is the usage of the embed tag to embed the entire HTML document created by bokeh. For bokeh this is not necessary, it can generate a script and a div tag that can be embedded in any html file (documentation). This way no embed tag needs to be used, no dimensions need to be hardcoded and the resulting html file is standalone (currently plots are stored in plots/).

I'm not sure how the situation looks for plotly. I couldn't find a solution with a quick google search, but I'm pretty sure it should be possible. Alternatively one could only use the embed tag for plotly but use the div tag for bokeh.

I would provide and example implementation, but unfortunately I'm not well versed in haskell.

Best,
syntonym

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions