Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
py3Dmol ignore pyc Jul 22, 2019
LICENSE.txt lic Apr 25, 2018
examples.ipynb add ability to specify zoomto selection in embedded viewer Mar 4, 2019
insert.ipynb initial support for jupyterlab Mar 25, 2018
prody.ipynb fix bug with exportVRML (clear out cached molobjs) Jan 5, 2019
rdkit.ipynb fix setup bug and provide rdkit example May 10, 2016
setup.cfg py3Dmol: Makes IPython an optional depend Jul 16, 2019
updating.ipynb Fix package.json to use gulp Jul 10, 2019
volumetric.ipynb Switch to gulp Jul 7, 2019


A simple IPython/Jupyter widget to embed an interactive 3Dmol.js viewer in a notebook.

The widget is completely static, which means the viewer doesn't need a running IPython kernel to be useful and web pages and presentations generated from the notebook will work as expected. However, this also means there is only one-way communication between the notebook and the viewer.

If you experience problems, please file an issue.

An example notebook


From PyPI:

pip install py3Dmol

Important: In order to use with JupyterLab you must install the JupyterLab extension:

jupyter labextension install jupyterlab_3dmol


Open a notebook

jupyter notebook

and issue

import py3Dmol
view = py3Dmol.view(query='pdb:1ubq')


The returned view object has the exact same API as $3Dmol.GLViewer with the exception that functions return None.



You can’t perform that action at this time.