Interactive Plots with Chemical Structures
It’s often useful to be able to associate chemical structures with a set of points on a scatter plot. While it’s easy to do this with commercial software like Spotfire or Vortex , I haven’t found an easy way to integrate an interactive plot like this into a Python script. In this post, I’ll cover how I was able to generate an interactive scatter plot with about a page of Python code, most of which was boilerplate. I was able to pull this off by integrating Dash , a Python library for interactive dashboards from the nice folks who brought you the Plotly plotting library, with the RDKit . For a quick view of what the application does, check out the movie below. For a higher quality version, try this YouTube link. Actually, just grab the code from GitHub and run it, the application looks a lot better in real life than it does in the video. At this point, this is more of a Saturday afternoon hack than a complete application. I did this as proof of concept to prove to m