glotzerlab / signac-dashboard

Rapidly visualize signac projects through a customizable dashboard interface.
https://signac.io
BSD 3-Clause "New" or "Revised" License
16 stars 6 forks source link

Interactive Bokeh Plots #38

Open bdice opened 5 years ago

bdice commented 5 years ago

Users including @swerdfish and @berceanu have requested Bokeh interactive plots. This feature would be a great addition to signac-dashboard.

This page about embedding Bokeh plots should provide the info needed to add such a feature. Additionally, this pull request shows an example of what it takes to add a new JavaScript-enabled module to the dashboard.

bdice commented 5 years ago

The script linked below shows an example of using interactivity within Flask. However, it appears that an interactive Bokeh server requires a second port to be opened and forwarded to the user's machine. https://github.com/bokeh/bokeh/blob/1.1.0/examples/howto/server_embed/flask_gunicorn_embed.py