From f653c694ce3be53fec059710c83760f4d98fd8b8 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Mon, 14 May 2018 21:40:04 -0700 Subject: [PATCH] Support ptipython --- src/replhelper.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/replhelper.py b/src/replhelper.py index 9c5f5b3..32a4306 100644 --- a/src/replhelper.py +++ b/src/replhelper.py @@ -130,3 +130,12 @@ def customized_ipython(**kwargs): import IPython print() IPython.start_ipython(**ipython_options(**kwargs)) + + +@print_instruction_on_import_error +def customized_ptipython(**kwargs): + from ptpython.ipython import embed + print() + embed(**ipython_options(**kwargs)) +# https://github.com/jonathanslenders/ptpython/blob/master/ptpython/entry_points/run_ptipython.py +# https://github.com/jonathanslenders/ptpython/blob/master/ptpython/ipython.py