Skip to main content

A simple [IPython/Jupyter](http://jupyter.org/) widget to embed an interactive [3Dmol.js](http://3dmol.org) 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](https://github.com/3dmol/3Dmol.js/issues).

[An example notebook](http://nbviewer.jupyter.org/github/3dmol/3Dmol.js/blob/master/py3Dmol/examples.ipynb)

Installation

From PyPI:

pip install py3Dmol

Usage

Open a notebook

jupyter notebook

and issue

`Python 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](https://3dmol.org/doc/GLViewer.html) with the exception that functions return None.

License

MIT

Metadata

Release files for py3Dmol 2.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py3Dmol 2.5.5
File Size Uploaded
py3dmol-2.5.5.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py3Dmol 2.5.5
File Interpreter ABI Platform
py3dmol-2.5.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.0 kB

Release files / py3dmol-2.5.5.tar.gz

Download URL py3dmol-2.5.5.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb102cc3370800a9ca7679774759f008e34a0f3a283778d85b0410849d370298
BLAKE2b-256 checksum
How to use checksums
8fce8fa27aa0fcf37a99df16f72d59300040dec61f3a5126c28d6b625bcb7f9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / py3dmol-2.5.5-py2.py3-none-any.whl

Download URL py3dmol-2.5.5-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9717ea9a899ec641b458f53de538e5bae758281f5053be78bc2db0706ae60bcb
BLAKE2b-256 checksum
How to use checksums
8e5a7fd1b784a87e96e0078f49a0a13a98b4c5f644ba5597a4a3b70a2ba3e613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.5.5 This release

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

3 release files

0.8.1

1 release file

0.8.0

2 release files

0.7.2

1 release file

0.7.1

2 release files

0.7.0

2 release files

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

2 release files

0.6.0

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

1 release file

0.5.1

1 release file

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page