Skip to content

Instantly share code, notes, and snippets.

@austinogilvie
Last active December 27, 2015 05:09
Show Gist options
  • Select an option

  • Save austinogilvie/7271636 to your computer and use it in GitHub Desktop.

Select an option

Save austinogilvie/7271636 to your computer and use it in GitHub Desktop.
Tab trigger for importing scientific libraries in a python file using Sublime Text 2.

Save this thing in your

~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User

folder.

Oh, and drop the .xml file extension at the end.

<snippet>
<content><![CDATA[#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
${1}]]></content>
<!-- Optional: Tab trigger to activate the snippet -->
<tabTrigger>impsci</tabTrigger>
<!-- Optional: Scope the tab trigger will be active in -->
<scope>source.python</scope>
<!-- Optional: Description to show in the menu -->
<description>imports</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment