[go: up one dir, main page]

Skip to content

Clean up output in Jupyter Notebooks

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

When rendering Jupyter Notebooks, some of the output often has color configuration. We strip these out when displaying error cells, we could apply the same logic to the output cells

Jupyter render GitLab render
image image

Implementation Guide

  1. Within the ipynbdiff library, we have already have implementation to clean error outputs, we can do similar: https://gitlab.com/gitlab-org/gitlab/-/blob/master/gems/ipynbdiff/lib/ipynb_diff/output_transformer.rb#L33-33
  2. Add a new test to https://gitlab.com/gitlab-org/gitlab/-/blob/2d84e7021eeb07e5da23a6e05017ee75da1777d0/gems/ipynbdiff/spec/ipynb_diff/transformer_spec.rb#L17
Edited by 🤖 GitLab Bot 🤖