equinor/webviz-archived

User should be able to view PageElements in Jupyter

Opened this issue · 0 comments

webviz is close to have native support for Jupyter, just by being web based.

The user should be able to do things as illustrated in picture below. This will facilitate quicker and more interactive data analysis, and also useful in cases where a full webviz instance is not needed.

Currently, the user is only represented with a standard __repr__ output:
image

Wanted output:
image

This can be achieved by giving the PageElement class a _repr_html_ method (which returns a html string) which is automatically found by Jupyter, and used as interactive output if available (instead of __repr__).