Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/replhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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