silx-kit / jupyterlab-h5web

A JupyterLab extension to explore and visualize HDF5 file contents. Based on https://github.com/silx-kit/h5web.
MIT License
65 stars 8 forks source link

Use React 18 renderer and fix empty cell bug #138

Closed axelboc closed 4 months ago

axelboc commented 4 months ago

Issue

  1. Render H5Web in a cell
  2. Save the notebook
  3. Reload or re-open the notebook

image

image

Fix

The TwoRenderApp was supposed to fix this empty-cell bug, but it wasn't robust to fix the reload use case above. I'm replacing it with a solution that consists in waiting until the cell has non-empty dimensions before rendering H5Web.

image