Last active
November 26, 2018 22:45
-
-
Save TheButlah/ee07a891017e819b6f4b7d3bdc0c6d63 to your computer and use it in GitHub Desktop.
Config File for PtPython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Configuration for ``ptpython``. | |
Copy this file to ~/.ptpython/config.py | |
""" | |
from __future__ import unicode_literals | |
from ptpython.layout import CompletionVisualisation | |
__all__ = ( | |
'configure', | |
) | |
def configure(repl): | |
""" | |
Configuration method. This is called during the start-up of ptpython. | |
:param repl: `PythonRepl` instance. | |
""" | |
# Show function signature (bool) | |
repl.show_signature = True | |
# Show docstring (bool) | |
repl.show_docstring = True | |
# Wrap lines | |
repl.wrap_lines = True | |
# Mouse support | |
repl.enable_mouse_support = True | |
# Don't try to execute when the input contains syntax errors | |
repl.enable_input_validation = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment