diff --git a/snippets/python.snippets b/snippets/python.snippets index 860b572..77d74e4 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -135,6 +135,10 @@ snippet iem # ipython debugger (pdbbb) snippet pdbbb import pdbpp; pdbpp.set_trace() +# python_prompt_toolkit +snippet ppt + from prompt_toolkit.contrib.repl import embed + embed(globals(), locals(), vi_mode=${1:default=False}, history_filename=${2:default=None}) # python console debugger (pudb) snippet pudb import pudb; pudb.set_trace()