awesome-panel / panel-chemistry

🧪📈 🐍. The purpose of the panel-chemistry project is to make it really easy for you to do DATA ANALYSIS and build powerful DATA AND VIZ APPLICATIONS within the domain of Chemistry using using Python and HoloViz Panel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add NGL Molecule Viewer

MarcSkovMadsen opened this issue · comments

PyHDX has an existing NGL Molecule Viewer which is ok to copy or get inspiration from.

https://github.com/Jhsmit/PyHDX/blob/master/dev/bokeh_extension.py

https://twitter.com/Jhsmit_/status/1398233190519693317

image

The code you reference is a standalone working example but the code in this folder is more our testing/playground folder.
The current implementation in PyHDX is found here:
typescript: https://github.com/Jhsmit/PyHDX/blob/master/pyhdx/panel/ngl_viewer.ts
widget: https://github.com/Jhsmit/PyHDX/blob/12fc2b5f67200885706226823bd8e1f46e3b5db1/pyhdx/panel/widgets.py#L130

The two-way NGL viewer as bokeh extension was done by @sebaztiano

With inspiration from the PR provided by @Jhsmit I started working on this here https://github.com/MarcSkovMadsen/panel-chemistry/tree/ngl_viewer