{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "ca494fca", "metadata": {}, "outputs": [], "source": [ "import py3Dmol" ] }, { "cell_type": "code", "execution_count": 2, "id": "fc0d8521", "metadata": {}, "outputs": [ { "data": { "application/3dmoljs_load.v0": "
\n

You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension:
\n jupyter labextension install jupyterlab_3dmol

\n
\n", "text/html": [ "
\n", "

You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension:
\n", " jupyter labextension install jupyterlab_3dmol

\n", "
\n", "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "v = py3Dmol.view(query='1ycr')\n", "v.setStyle('cartoon')\n", "v.zoomTo()\n", "v.spin()" ] }, { "cell_type": "code", "execution_count": 3, "id": "3b0c9674", "metadata": {}, "outputs": [ { "data": { "application/3dmoljs_load.v0": "\n ", "text/html": [ "\n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "v.apng(100)" ] }, { "cell_type": "code", "execution_count": null, "id": "97fb8690", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 5 }