Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 2.77 KB

README.md

File metadata and controls

46 lines (34 loc) · 2.77 KB

Version License: MIT

jupyter-st3-pymolpysnips

Purpose

A PyMOL Python snippet library to edit live Jupyter notebook cells with Sublime Text 3 using browser plugin GhostText and the Ghost Text plugin for Sublime Text 3. The later plugin links a server in Sublime Text 3 with any text area in the web browser including jupyter notebooks. This snippet library includes snippets for loading PyMOL's Python API into an active Jupyter notebook.

Installing and using snippets with Sublime Text 3

The snippets are stored in separate files with the extension .sublime-snippet.

To install the snippets via the Sublime Text's GUI (Mac, Windows, Linux), go to Preferences→Browse Packages...→User→snippets, you may need to create the subdirectory called snippets. Copy and paste the folder st3pymolpysnips into the snippets folder.

To install the snippets on the command line on macOS, create the snippets directory in the Sublime Text 3 folder:

mkdir ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/snippets/

Move the st3pymolpysnips folder into the snippets folder.

mv st3pymolpysnips ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/snippets/.

Note

Some snippets depend on some pymolshortcuts. Add the pymolshortcuts.py file to your working directory.

Related repositories