Skip to content

could not save html from plot_lignetwork version 2 #170

Answered by cbouy
tjrong123 asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to save the plot you have to use the LigNetwork class directly, like in your other issue #169:

net = LigNetwork.from_fingerprint(fp, lig_mol,
threshold=float(threshold),
rotation=270)
net.save(os.path.join(output_name + ".html"))

fp.plot_lignetwork is only useful to display the plot in an interactive Jupyter Notebook, it doesn't return the underlying LigNetwork object

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tjrong123
Comment options

Answer selected by tjrong123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants