Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMDCube

GitHub GitHub issues GitHub pull requests GitHub last commit GitHub contributors GitHub repo size GitHub stars GitHub forks

Description

A simple pip-installable Python module to generate pretty 3D visualizations of molecular orbitals like the one below:

Example of orbital rendered with VMDCube.

VMDCube is designed to work with VMD (Visual Molecular Dynamics) and can render isocountour surfaces saved in the standard cube file format. VMDCube can visualize molecular orbitals, electron density, and other volumetric data.

Features

VMDCube can be used in Python scripts and Jupyter notebooks to render cube files. Here is an example of how to use it in Python:

from vmdcube import VMDCube
vmd = VMDCube() # by default, render all cube files in the current directory
vmd.run()

The following showcases VMDCube's visualization capabilities in Jupyter notebooks:

Example use of VMDCube in Jupyter.

Installation and setup

VMDCube

VMDCube is available on PyPI and can be installed using pip:

pip install vmdcube

VMD Path

VMDCube requires the environment variable VMDPATH to be set to the location of the VMD executable.

For example, if you’re using zsh and the VMD executable is /Applications/VMD 1.9.4a55-arm64-Rev11.app/Contents/vmd/vmd_MACOSXARM64, set VMDPATH to this value in your shell configuration file. For example, for zsh add this line to your ~/.zshrc file:

export VMDPATH=/Applications/VMD\ 1.9.4a55-arm64-Rev11.app/Contents/vmd/vmd_MACOSXARM64

After updating ~/.zshrc, either restart your terminal or run the following so the change takes effect:

source ~/.zshrc

VMD

VMDCube requires VMD to be installed on your system. You can download VMD from the official website: VMD Download.

Installation from source

Clone the repository, then run:

git clone git@github.com:fevangelista/VMDCube.git
cd VMDCube
pip install -e .

Tutorials

See the VMDCube introductory tutorial for how to use VMDCube in Jupyter notebooks and available rendering options.

About

A Python module to simplify the rendering of cube files

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages