Snippet for python prompt toolkit embed

https://github.com/jonathanslenders/python-prompt-toolkit

```python
from prompt_toolkit.contrib.repl import embed
embed(globals(), locals(), vi_mode=False, history_filename=None)
```
This commit is contained in:
Tony Narlock 2015-01-07 11:02:18 -08:00
parent 621e747bc1
commit 99fe636f09

View File

@ -135,6 +135,10 @@ snippet iem
# ipython debugger (pdbbb) # ipython debugger (pdbbb)
snippet pdbbb snippet pdbbb
import pdbpp; pdbpp.set_trace() 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) # python console debugger (pudb)
snippet pudb snippet pudb
import pudb; pudb.set_trace() import pudb; pudb.set_trace()