Skip to content

Use class? #1

@flying-sheep

Description

@flying-sheep

as initiated in IRkernel/IRkernel#82, there’s the question if we should use a dedicated class or not.

pro:

  • repr objects are easily handled and identified

  • we can create repr objects that will be passed unaltered. e.g. inside of a list or a dataframe

    …but that would only work for one format. therefore, to support prettyprinting of own classes, we’ll have to use custom classes with several repr_* methods to support multiple formats, anyway.

con:

  • it messes with our implemention of the kernel using jsonlite

    …but that’s a very specific problem.

outlook

maybe create multi-repr objects that can be used for unaltered passing in dataframes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions