Skip to content

Consider introducing _repr_html_ for all objects. #1

@haesleinhuepf

Description

@haesleinhuepf

Hi all,

I'm proposing a user convenience thing and if it's not too complicated to implement, I would support you folks in doing it.

Starting point is this example notebook

Current state

At the beginning, we read a Submission object:

image

Further down in the code, we visualize some properties of this object like this:

image

This code is quite complicated and might be detterend for Python beginners who aim at exploring the bioimage archive.

Proposed state

If this html code lived in a repr_html function, future users could just write a submission object by the end of a Jupyter notebook cell and see what's in immediately:

image

Example code

I'll send a pull-request draft with prototype code to reproduce the screenshot above.

Let me know what you think!

Best,
Robert

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