-
Notifications
You must be signed in to change notification settings - Fork 43
Description
I would like to use PrettyTables to format the display of Tables-like data in Pluto and IJulia notebooks.
The Problem with Pluto-notebooks and PrettyTables is that Pluto only displays the resulting object of a cell, not anything that was printed with print. This is on purpose and makes sense to me. And it works nicely for most custom types like Plots or DataFrames, since they can decide for each frontend (REPL or Pluto and IJulia) how they want to display them self.
It works not as nicely with PrettyTables since it either prints to STDOUT or returns a string. The former is not shown in Pluto and the latter only shows the content of the string, it is not interpreted.
These Problems would be solved nicely if PrettyTables.jl could extend its API by something like the Plots-API where something like a prettytable-Method would return a custom type that stores the data and the formatting.
Support for the correct display on the different frontends could then be added by extending the show-Method for the according MIME types.