VisualPy is a modern, cross-platform interactive Python console featuring real-time syntax highlighting, autocompletion, import suggestions, and live code hints. Designed as a lightweight alternative to IPython and bpython, it runs seamlessly on both CPython and PyPy runtimes.
- Real-Time Syntax Highlighting: Powered by Pygments with support for dark and light background themes.
- Autocompletion & Tooltips: Code hints for built-ins, standard libraries, and imported modules.
- Dual Runtime Support: Full compatibility with both CPython and PyPy.
- Cross-Platform Clipboard Integration: Effortless code snippet copying and pasting.
- Configurable Lexers: Custom terminal cursor styles and multiple syntax lexer options.
pip install VisualPy -Upoetry add VisualPyLaunch the interactive shell using the installed command-line utility or Python module runner:
vpyOr via python executable:
python -m vpyusage: vpy [-h] [-dbg]
[-lex {PythonLexer,PythonConsoleLexer,PythonTracebackLexer,Python2Lexer,Python2TracebackLexer,CythonLexer,DgLexer,NumPyLexer}]
[-t-lex {PythonLexer,PythonConsoleLexer,PythonTracebackLexer,Python2Lexer,Python2TracebackLexer,CythonLexer,DgLexer,NumPyLexer}]
[-cr CURSOR] [-i INTERACT_IT] [-q]
optional arguments:
-h, --help Show this help message and exit
Highlight Options:
-dbg, --darkbg Adapt syntax colors for dark terminal backgrounds
Lexer Options:
-lex, --lexer Select primary syntax lexer (default: PythonLexer)
-t-lex, --traceback-lexer
Select lexer for traceback formatting (default: PythonTracebackLexer)
-cr, --cursor Set custom interactive prompt cursor string
Python Options:
-i, --interact-it Inspect environment interactively after running script
-q, --quiet Suppress startup version and copyright banner
Distributed under the MIT License. See LICENSE for more details.
Created and maintained by Nikita Denissov (@ndenissov).






