You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into the code in ptpython that prints evaluated values in the REPL. It's not very feasible to inject prettyprinter there right now. I left a comment about that in the issue you linked to (prompt-toolkit/ptpython#153 (comment)).
If you or someone else were to create a PR to ptpython to make the integration feasible, it shouldn't be too hard to provide the integration on the prettyprinter side. A minimum would be to have a single method on the ptpython.repl.PythonRepl class that handles printing the evaluated value, so that prettyprinter could monkeypatch that method with its own. A nicer integration would be through a configurable hook as a part of the ptpython public API.
I would love to see an integration for ptpython. Other people are interested too.
The text was updated successfully, but these errors were encountered: