Skip to content

Add syntax highlighting for DTC in Jupyter notebooks #287

@mserranom

Description

@mserranom

Issue Checklist:

  • Descriptive title
  • Completed sections below

Problem Description

Right now we're using cat to print DTCs in a Jupyter notebook. In order to increase readability we'd need to add syntax highlight for the YAML, and ideally for the python code in expression blocks.

Solution Proposal

It is possible to print HTML using the display() function. It's also possible to execute Javascript code. We can create a print_dtc() function that loads a syntax highlighter, and then add markup to the parts of the DTC prior to calling display.

Impact on current behavior

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions