Skip to content

Instantly share code, notes, and snippets.

from numpy import pi, sin, cos, exp, linspace, meshgrid
import matplotlib.pyplot as plt
from matplotlib import cm
def mod(x, y):
return x % y
def surf(X, Y, Z):
ax = plt.axes(projection='3d')
from __future__ import print_function
from subprocess import Popen, PIPE
import sys
import re
try:
import vim
except ImportError:
print("warning: importing ipython_cell outside vim, some functions will "