Skip to content

Instantly share code, notes, and snippets.

@TheButlah
Last active November 26, 2018 22:45
Show Gist options
  • Save TheButlah/ee07a891017e819b6f4b7d3bdc0c6d63 to your computer and use it in GitHub Desktop.
Save TheButlah/ee07a891017e819b6f4b7d3bdc0c6d63 to your computer and use it in GitHub Desktop.
Config File for PtPython
"""
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