Jupyter Renderables

A JupyterRenderable is an object that can be rendered by Jupyter. JupyterRenderables are component object that have to contain at least the components data and metadata.

These components are themselves GAP records which can contain different representations of an object to be rendered. The record component name is the MIME-Type of the representation and the content is the representation itself.

render := JupyterRenderable( rec( text\/plain := "Integers", text\/html := "$\mathbb{Z}$" ) , rec( ) ); render2 := JupyterRenderable( rec( ("image/svg+xml") := "<svg></svg>" , rec( ("image/svg+xml") := rec( width := 500, height := 500 ) ) );

Handlers for Jupyter requests true or false JupyterRenderable true or false

A new JupyterRenderable Basic constructor for JupyterRenderable Method that provides rich viewing experience if code used inside Jupyter Accessor for data in a JupyterRenderable Accessor for metadata in a JupyterRenderable