{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "py3Dmol\n", "=======\n", "\n", "A simple [IPython/Jupyter](http://jupyter.org/) widget to\n", "embed an interactive [3Dmol.js](http://3dmol.csb.pitt.edu) viewer in a notebook.\n", "\n", "The widget is completely static, which means the viewer doesn't need a running\n", "IPython kernel to be useful and web pages and presentations generated from\n", "the notebook will work as expected. However, this also means there is only\n", "one-way communication between the notebook and the viewer.\n", "\n", "Installation\n", "------------\n", "\n", "From PyPI:\n", "\n", " pip install py3Dmol\n", " \n", "API\n", "---\n", "\n", "The returned view object has the exact same API as [3Dmol.GLViewer](http://3dmol.csb.pitt.edu/doc/$3Dmol.GLViewer.html)\n", "with the exception that functions return None.\n", "\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import py3Dmol" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false, "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Hello\n" ] }, { "data": { "text/html": [ "