New repl: customising display?

If I’ve read the news correctly, the new repl uses pprint under the hood to display things.

With raw pprint, I believe that one can customise the way stuff is displayed. Is there any path to bring able to do that in the standard repl in an import? I.e can a library customise its types through some cunning import / given strategy? I believe the answer is no, but checking…

You can customize pprint by making an amended copy as per PPrint (I do this myself for various nefarious purposes), but you would need to be able to substitute in your own customised instance into the REPL environment.

Are there any hooks into the REPL for that?

Sounds like a job for Claude and a Caerphilly-phrased pull request…