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).

Installation

From PyPI:

pip install icn3dpy

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 icn3dpy

view = icn3dpy.view(q=’mmdbid:1tup’,command=’color spectrum’)

view

view = icn3dpy.view(q=’mmdbid:6m0j’,para=’closepopup=1’,command=’line graph interaction pairs | !A !E | hbonds,salt bridge,interactions,halogen,pi-cation,pi-stacking | false | threshold 3.8 6 4 3.8 6 6; show selection; add residue number labels’)

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.8.tar.gz (4.4 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.8-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icn3dpy-0.1.8.tar.gz
  • Upload date:
  • Size: 4.4 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.8.tar.gz
Algorithm Hash digest
SHA256 829cd195fafb95d3283e8160f2cfb2433a2379183f0d05d2f4b3c6a9d5823a0b
MD5 9c73a7c6c5b38ecb5e0277f38fdac631
BLAKE2b-256 9ddb6a999f43a3717709257434841adfd9767cefc30c7469fee1684ea32f6332

See more details on using hashes here.

File details

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

File metadata

  • Download URL: icn3dpy-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1a997256762944338a3088c24e13d337094520bb19e1905b7f95538fe583783b
MD5 0681a658f749697144567f51cc2e7945
BLAKE2b-256 d61188639bad49ca8427f7a10e85c26974e0d3966760f9c8bef3ee204a9d0a36

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