Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider vdom to create a neat jupyter frontend for weldx files. #5

Open
marscher opened this issue Aug 5, 2021 · 5 comments
Open

Comments

@marscher
Copy link
Contributor

marscher commented Aug 5, 2021

See discussion jupyterlab/jupyterlab#3200

@CagtayFabry
Copy link
Member

that would be very neat, no idea how complex this is

@marscher
Copy link
Contributor Author

It seems vdom is not bidirectional. It only support creating objects in the clients DOM tree, but there is no way to communicate with them. So this approach is not suitable.

@CagtayFabry
Copy link
Member

CagtayFabry commented Oct 20, 2021

it might be worth looking into that for a custom weldx header representer

maybe we take a look in to how xarray does theirs

@marscher
Copy link
Contributor Author

In XArray they render the output as HTML with a custom CSS attached. This only works, if the notebook is trusted and makes it mandatory to ship additional files within the Python package. Eventually it would be possible to re-use some of their code/design for having a nice interface (combined header and data display). I'm currently unsure, if one could encapsulate CSS declarations in the body section, but I'd doubt it.

@CagtayFabry
Copy link
Member

In XArray they render the output as HTML with a custom CSS attached. This only works, if the notebook is trusted and makes it mandatory to ship additional files within the Python package. Eventually it would be possible to re-use some of their code/design for having a nice interface (combined header and data display). I'm currently unsure, if one could encapsulate CSS declarations in the body section, but I'd doubt it.

thank you for the insight!
the "trusted" part for many of these implementations is an issue I also stumbled upon while playing around with some other HTML examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants