Skip to main content

An IPython interface for embedding iCn3D viewer

Project description

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

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

Installation

From PyPI:

pip install pyiCn3D

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

jupyter labextension install jupyterlab_3dmol

Usage

Open a notebook

jupyter notebook

and issue

`Python import pyiCn3D view = pyiCn3D.view(query='mmdbid:1kq2') view `

Command —

All [iCn3D commands](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d.html#commands) work.

License

United States Government Work

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

icn3dpy-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

icn3dpy-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file icn3dpy-0.1.1.tar.gz.

File metadata

  • Download URL: icn3dpy-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for icn3dpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b4b99c5141366e9d122a3ee7553372eb84a322c3ff8354379f7b86cd35eaed1
MD5 f8b23335c16b061f30b9908677396699
BLAKE2b-256 ea9c5bde5625c11f817ea400261c99bd499bf330067155f35f0ea7915ef4e46a

See more details on using hashes here.

File details

Details for the file icn3dpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: icn3dpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for icn3dpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5298c05fcf1f6e052f66f6a51fcded2c0c34d0472d2b2925c2c229f452abb6d7
MD5 a149be74e44ebc4680ab2108aa0d288b
BLAKE2b-256 fae3ef52e87f47fe552c16c655a11b18ebb8a2bb562ea539a80cc13bc3947772

See more details on using hashes here.

Supported by

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