Files
3Dmol.js/py3Dmol
2024-07-06 22:27:54 -04:00
..
2024-07-06 22:27:54 -04:00
2022-12-24 22:49:53 -05:00
2022-12-24 22:49:53 -05:00
2022-12-24 22:49:53 -05:00
2024-06-21 20:49:33 +01:00
2023-02-10 14:40:00 -05:00
2022-12-24 22:49:53 -05:00
2022-12-24 22:49:53 -05:00
2024-01-13 14:47:27 -05:00
2022-12-24 22:49:53 -05:00
2024-02-06 11:31:36 -05:00
2023-01-04 19:51:32 -05:00
2022-12-24 22:49:53 -05:00
2024-07-06 22:27:54 -04:00
2022-12-24 22:49:53 -05:00

py3Dmol

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

Installation

From PyPI:

pip install py3Dmol

Usage

Open a notebook

jupyter notebook

and issue

import py3Dmol
view = py3Dmol.view(query='pdb:1ubq')
view.setStyle({'cartoon':{'color':'spectrum'}})
view

API

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

License

MIT