Skip to content

Support for multi index dataframe blob rendering

What does this MR do and why?

When adding the new blob rendering for dataframes within Jupyter Notebooks, we didn't take into account the dataframe index columns, either simple or multi-indexed. This adds that support, displaying indexes as bold.

Screenshots or screen recordings

JupyterLab rendering:

image

Gitlab Rendering:

Before After
image image

How to set up and validate locally

  1. Open the following jupyter notebook: https://gitlab.com/gitlab-org/incubation-engineering/mlops/ipynb-test-projects/jupyter_table_test/-/blob/main/multi_index.ipynb

  2. Verify that is is rendering according to the screenshots

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #404708 (closed)

Edited by Eduardo Bonet

Merge request reports