Molecular Visualization powered by Plotly
Last updated Jul 27, 2025
18
Stars
4
Forks
10
Issues
0
Stars/day
Attention Score
6
Language breakdown
Python 99.1%
Shell 0.9%
▸ Files
click to expand
README
Features:
Geometry Volumes from Cube FilesSupports:
xyz files Psi4 geometries QCElemental moleculesInstallation
- git:
git clone https://github.com/VHchavez/moly.git
cd moly
pip install .
- pip:
pip install moly
- conda:
coming soon!
- ### Basic Geometry
import moly
fig = moly.Figure()
molecule = moly.Molecule.from_file("caffeine.xyz")
fig.add_molecule("caffeine", molecule)
fig.show()
- ### Basic Layering
#Molecules from QCArchive
import qcportal as ptl client = ptl.FractalClient()
#Get molecule from QCArchive ds = client.get_collection("ReactionDataset", "S22") dimers = ds.get_molecules() ammonia_dimer = dimers.loc['Ammonia Dimer', 'molecule'][0]
#Different surfaces are available. #Resolution can be increased if saving figure is desired. fig = moly.Figure(figsize=(800,800), surface="shiny") fig.addmolecule("dimer", ammoniadimer) fig.addmolecule("bucky ball", moly.Molecue.fromfile("bucky.xyz")) fig.show()
Copyright
Copyright (c) 2020, VH ChavezAcknowledgements
Project based on the Computational Molecular Science Python Cookiecutter version 1.1. Victor H. Chavez was supported by a fellowship from The Molecular Sciences Software Institute under NSF grant OAC-1547580.🔗 More in this category