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:
parent
621e747bc1
commit
99fe636f09
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user