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.9.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.9-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icn3dpy-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 0e6352c6102684d3b2c96891e1a72342bef011305d1cb41d0de33acba460d47a
MD5 5d3fa463b2a08b356d339c810acb9968
BLAKE2b-256 2b5376b20d837d3be17fd4978cf122994ca6919a23bf688b3785b9d2adcfcdd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: icn3dpy-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 68c2cf9ddadba3193f4610bb80af66da92005f727d6cb130731b04db7296cdce
MD5 ee8772574a1fad89e91e5aeab3ddfe0e
BLAKE2b-256 fa6f23d9020aafa509d95c0e42cb01db9b4fc51d9179f43af2699b9b4c7818b9

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