Open arifin-chemist89 opened 3 years ago
Sure.
The first thing to determine is if this is something that needs to be displayed only or if it needs bidirectional communication.
If its the first then the job is to determine how to get the html to display in a HTML
pane. If its the second then its more complicated and involves a custom bokeh model.
As far as I can see this is something to display only.
Looking at the MolGrid.display
function can give inspiration for how to display this in Panel.
I see two ways of "including" it in panel-chemistry. 1) We just create an example notebook showing how to use this with Panel. 2) We create a MolGrid
pane that can take a molds2grid.MolGrid
as input. What would you prefer @arifin-chemist89 ?
Could you describe you use case and requirement some more @arifin-chemist89? This can be done in many ways. If you could write some pseudo example code of how you would like this to work. Maybe with an image or two. That would guide me the best.
Thanks @MarcSkovMadsen for quick response.
There are some of use cases for it that I can imagine.
Hi @MarcSkovMadsen, as you said, it is really easy to render it through panel's HTML pane. However, since the callback seems important, I prefer to have MolGrid
pane.
Chemical gallery viewer seems very interested. Example: https://github.com/cbouy/mols2grid
Do you think it is possible to add it to panel-chemistry?