Abstract
Snippets—code templates one line or longer—boost researcher productivity because they are faster to insert than writing the code from scratch and because they reduce debugging time. Several extensions support the use of snippets in Jupyter. We developed a Python version of the pymolsnips library and customized it for the use in the jupyterlab-snippets-multimenus extension for JupyterLab. The extension provides access to the snippets by pull-down menus. Each snippet performs one task. Each task often requires many lines of code. This library’s availability in Jupyter enables PyMOL users to run PyMOL efficiently inside Jupyter while storing the code and the associated molecular graphics images next to each other in one notebook document. This proximity of code and images supports reproducible research in structural biology, and the use of one computer file facilitates collaborations.
Funding Information
  • Warren Delano Memorial Open-Source PyMOL Fellowship (NIH R01CA242845, NIH R01AI088011, NIH P20GM103640, NSF MCB-1616845)
  • Presbyterian Health Foundation Team Science
  • Oklahoma Center for the Advancement of Science and Technology (HR20-002)

This publication has 10 references indexed in Scilit: