From 45ef7b642514cb609de241132e302767ec7ee26a Mon Sep 17 00:00:00 2001 From: yvhn Date: Sat, 21 Nov 2015 15:18:02 +0200 Subject: [PATCH] Add "ipy" snippet to embed IPython shell into the code --- UltiSnips/python.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index af81069..9372bdc 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -630,6 +630,10 @@ snippet pdb "Set PDB breakpoint" b import pdb; pdb.set_trace() endsnippet +snippet ipy "Embed IPython shell" b +import IPython; IPython.embed() +endsnippet + snippet ipdb "Set IPDB breakpoint" b import ipdb; ipdb.set_trace() endsnippet