Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Notebook Molecular Visualization: ipywidgets-based molecular visualization for molecular structures

Project description

[![PyPI version](](

A Python widgets library for 2D and 3D molecular visualization in Jupyter notebooks

## Installation

$ pip install nbmolviz
$ jupyter nbextension enable --python --system nbmolviz
$ jupyter nbextension enable --python --system widgetsnbextension

## Examples

To draw an OpenBabel molecule:
import nbmolviz
import pybel
benzene = pybel.read_string('smi','c1cccc1').next()

## Dev install
Requires npm.

$ git clone
$ cd notebook-molecular-visualization/nbmolviz
$ python jsdeps
$ pip install -e .
$ jupyter nbextension install --py --symlink --user nbmolviz
$ jupyter nbextension enable --py --user nbmolviz

This will build your widgets into a folder at `notebook-molecular-visualization/nbmolviz/static`

During development, to see the effects of changes to any javascript files (in notebook-molecular/visualization/js/src), run `python jsdeps` and reload any notebook browser windows.

## Contributing

This project is developed and maintained by the [Molecular Design Toolkit]( project. Please see that project's [CONTRIBUTING document]( for details.

## About
This package started life as hackathon project for the <a href="">CECAM 2015 Macromolecular Simulation Workshop.</a> It's since undergone a complete source rewrite, and is being released by BioNano Research at Autodesk as part of our suite of Molecular Design Tools.

The visualizers offered by this library were built using:
- <a href="">ipywidgets</a> - UI library for interactivity in Jupyter notebooks
- <a href="">3Dmol.js</a> - 3D molecular visualization library for web browsers
- <a href="">D3.js</a> - javascript library for graph visualization

## License

Copyright 2016 Autodesk Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
nbmolviz-0.6.6.tar.gz (572.2 kB) Copy SHA256 hash SHA256 Source None Jul 26, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page