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.5.tar.gz (4.3 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.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icn3dpy-0.1.5.tar.gz
  • Upload date:
  • Size: 4.3 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.5.tar.gz
Algorithm Hash digest
SHA256 478941fb1e496847aad93aebe6f2fdb50987e7669caee34ebf8bf14d213ec467
MD5 4923c5c94804c54bc5d61c01f7ee0fcb
BLAKE2b-256 7dd3f1639297b3dce6d2dde6986f51fa4675417c51925ec133eed8e57a1e9b24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: icn3dpy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9a51388a96403fc02fcf66c8e3cf8c4e820a2de91c11e76ed28619167a2234f3
MD5 b8cfccfbe18b15905bdc5d0541b1afab
BLAKE2b-256 00b7c824b28aaf7960a6876c0f1a2cef054a135d434295e4a1b51a74610a7f46

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