From 014c6b6227713f2df9e602a970490f2707b31954 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Wed, 4 Dec 2024 13:28:00 -0500 Subject: [PATCH] more --- notebooks/trajectory_player.ipynb | 68 +++++++++++++------------------ 1 file changed, 28 insertions(+), 40 deletions(-) diff --git a/notebooks/trajectory_player.ipynb b/notebooks/trajectory_player.ipynb index de44ca0d..91c438d4 100644 --- a/notebooks/trajectory_player.ipynb +++ b/notebooks/trajectory_player.ipynb @@ -8,7 +8,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "13fe7a0340e640caac615d7c098176a3", + "model_id": "3de104bc16ba4fdba33696d94704831c", "version_major": 2, "version_minor": 0 }, @@ -20,7 +20,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "747cd969ad49416694cd336d3e99806f", + "model_id": "c32624f79dc1454e97a7b79f474f9dd1", "version_major": 2, "version_minor": 0 }, @@ -55,16 +55,24 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frame_range is not provided. Do not serialize coordinates. Default to use current frame.\n" + ] + } + ], "source": [ "nv.write_html('index.html', view)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -73,7 +81,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -82,7 +90,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -98,25 +106,13 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "9169c19f8f55401bae1667d0b37c1166", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "b773c0465d4f4b28bf1fca34861ac8ff", + "model_id": "739b42afb8224eca83241b55d30f8eec", "version_major": 2, "version_minor": 0 }, @@ -124,9 +120,8 @@ "MolstarView()" ] }, - "execution_count": 1, "metadata": {}, - "output_type": "execute_result" + "output_type": "display_data" } ], "source": [ @@ -146,34 +141,27 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ - "params = {\n", - " \"type\": \"spacefill\",\n", - " \"typeParams\": { \"sizeFactor\": 0.5 },\n", - " \"color\": \"hydrophobicity\",\n", - " \"colorParams\": { \"scale\": \"DGwoct\" },\n", - "}\n", - "view._remote_call(\"addRepresentation\", args=[params, 0])" + "view.add_trajectory(traj)" ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ - "view.add_trajectory(traj)" + "params = {\n", + " \"type\": \"spacefill\",\n", + " \"typeParams\": { \"sizeFactor\": 0.5 },\n", + " \"color\": \"hydrophobicity\",\n", + " \"colorParams\": { \"scale\": \"DGwoct\" },\n", + "}\n", + "view._remote_call(\"addRepresentation\", args=[params, 0])" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {