Skip to main content

An IPython interface for embedding 3Dmol.js views

Project description

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

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](http://3dmol.csb.pitt.edu/doc/$3Dmol.GLViewer.html) with the exception that functions return None.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py3Dmol-0.5.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

py3Dmol-0.5.0-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file py3Dmol-0.5.0.tar.gz.

File metadata

  • Download URL: py3Dmol-0.5.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for py3Dmol-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9a4c7ec199dee7b9f8552debdb2a2a3ac6d55fcbbc09d4b2ed6d87af151e2cf4
MD5 f24bbaeb9e065aba2621157adb2ff553
BLAKE2b-256 bbf2a6a9c21f817529bb206f547eff0f8102b6d4a36e085bbdae396ba3e0d3bd

See more details on using hashes here.

Provenance

File details

Details for the file py3Dmol-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for py3Dmol-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 78bf782d7f4c700a0c63dad18b5ad00d9d4ea1fe0ed85296dd7fecec9b9412c5
MD5 c44ddc1c541c8b04b769b42da6d24d8c
BLAKE2b-256 f4a9ce9f532362c3f1d9504e335483520d858f719a3380fccabe96362139161a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page