[Python] Visualizing molecule with imolecule only prints HTML. How can I fix this?

Discussão em 'Python' iniciado por Stack, Janeiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    I have been trying to visualize a molecule using imolecule.draw, the molecule I am trying to visualize is ethanol, I am using the smiles so that is ("CCO"). I am working on Jupyter Notebook.

    from openbabel import openbabel, pybel
    pip install imolecule
    import imolecule
    imolecule.draw("CCO")


    I expect the molecule to appear in the output of the cell in jupyter note book but there is no output, just this html text:

    <div id="molecule_c9761e1e-b228-4731-8f01-9ce74dd67f80"></div>

    Continue reading...

Compartilhe esta Página