CODAIT / text-extensions-for-pandas

Natural language processing support for Pandas dataframes.
Apache License 2.0
215 stars 34 forks source link

SpanArray HTML rendering interactivity and view instance tools #215

Closed PokkeFe closed 3 years ago

PokkeFe commented 3 years ago

For issue #202

Added interactivity to the JS-generated HTML rendering of SpanArrays and TokenSpanArrays, including table controls like visibility toggling and highlight locking.

Removed JupyterLab-specific CSS overrides in favor of more consistent styling across themes, and made some general styling adjustments.

Added highlights as a view instance property, preserving highlight locks over multiple view renders, but isolating the locks to the instance (Multiple JPL windows of the same notebook can have separate Spans hidden or highlighted at the same time).

Compatibility verified in JupyterLab and VSCode