Skip to content

Better support for Pluto.jl and IJulia.jl #61

@karlwessel

Description

@karlwessel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions