Skip to content

Commit

Permalink
fix py3dmol save snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouy committed Sep 3, 2023
1 parent b76bbb5 commit 40ac0ea
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 44 deletions.
17 changes: 6 additions & 11 deletions docs/notebooks/docking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -757,15 +757,9 @@
"\n",
"The advantage of using a count fingerprint in that case is that it will automatically select the interaction occurence with the shortest distance for a more intuitive visualization.\n",
"\n",
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:\n",
"\n",
"```python\n",
"from IPython.display import Javascript\n",
"\n",
"Javascript(\n",
Expand All @@ -776,9 +770,10 @@
" a.download = \"prolif-3d.png\"\n",
" a.click()\n",
" a.remove()\n",
"\"\"\"\n",
" \"\"\"\n",
" % view.uniqueid\n",
")"
")\n",
"```"
]
}
],
Expand Down
17 changes: 6 additions & 11 deletions docs/notebooks/md-ligand-protein.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -637,15 +637,9 @@
"\n",
"The advantage of using a count fingerprint in that case is that it will automatically select the interaction occurence with the shortest distance for a more intuitive visualization.\n",
"\n",
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:\n",
"\n",
"```python\n",
"from IPython.display import Javascript\n",
"\n",
"Javascript(\n",
Expand All @@ -656,9 +650,10 @@
" a.download = \"prolif-3d.png\"\n",
" a.click()\n",
" a.remove()\n",
"\"\"\"\n",
" \"\"\"\n",
" % view.uniqueid\n",
")"
")\n",
"```"
]
}
],
Expand Down
27 changes: 16 additions & 11 deletions docs/notebooks/md-protein-protein.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,16 @@
":::"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
":::{admonition} Advanced usage\n",
"If you would like to ignore backbone interactions in the analysis, head over to the\n",
"corresponding section of the advanced tutorial: {ref}`notebooks/advanced:Ignoring the protein backbone`\n",
":::"
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand Down Expand Up @@ -637,15 +647,9 @@
"source": [
"As in the lignetwork plot, you can hover atoms and interactions to display more information.\n",
"\n",
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:\n",
"\n",
"```python\n",
"from IPython.display import Javascript\n",
"\n",
"Javascript(\n",
Expand All @@ -656,9 +660,10 @@
" a.download = \"prolif-3d.png\"\n",
" a.click()\n",
" a.remove()\n",
"\"\"\"\n",
" \"\"\"\n",
" % view.uniqueid\n",
")"
")\n",
"```"
]
},
{
Expand Down
17 changes: 6 additions & 11 deletions docs/notebooks/pdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,9 @@
"\n",
"The advantage of using a count fingerprint in that case is that it will automatically select the interaction occurence with the shortest distance for a more intuitive visualization.\n",
"\n",
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Once you're satisfied with the orientation, you can export the view as a PNG image with the following snippet:\n",
"\n",
"```python\n",
"from IPython.display import Javascript\n",
"\n",
"Javascript(\n",
Expand All @@ -460,9 +454,10 @@
" a.download = \"prolif-3d.png\"\n",
" a.click()\n",
" a.remove()\n",
"\"\"\"\n",
" \"\"\"\n",
" % view.uniqueid\n",
")"
")\n",
"```"
]
}
],
Expand Down

0 comments on commit 40ac0ea

Please sign in to comment.