Output formats supported by Kotlin Notebook

Edit pageLast modified: 24 April 2025

Kotlin Notebook supports a variety of output types, including text, HTML, and images. With the help of external libraries, you can expand your output options and visualize your data with charts, spreadsheets, and more.

Each output is a JSON object that maps the Jupiter MIME type to some data. From this map, Kotlin Notebook selects the supported MIME type with the highest priority among other types and renders it like this:

You can set up the mapping manually, for example, to use Markdown as a cell output:

To display any kind of output, use the DISPLAY() function. It also enables the combination of several outputs:

Different outputs for Gaussian distribution