Closed ale94mleon closed 1 year ago
Thanks!
You'd have to replace the "mols2grid example" code with:
prolif_ligplot_html_document = net.display(height="400px").data
prolif_plot_callback = mols2grid.make_popup_callback(
title="${data['SMILES']}",
html=prolif_ligplot_html_document,
style="max-width: 80%;"
)
df = mols2grid.sdf_to_dataframe(SDF_FILE)
mols2grid.display(
df,
n_rows=4,
subset=["mols2grid-id", "img"],
tooltip=["SOL", 'SMILES'],
callback=prolif_plot_callback ,
)
I've set the height="400px"
and n_rows=4
so that it displays things nicely otherwise the callback display was a bit cramped but feel free to adjust those to your use case.
Thank you so much @cbouy, it works perfect!
Hi, excellent package, so useful!!! I am trying to combine the
LigNetwork
output of ProLIF ascallback
but without succes. I am trying to do the following:But it doe not work. I let the full code example just for reproducibility: