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

Added styling enchancements to SpanArray text highlighting and rendering #205

Merged
merged 12 commits into from
Jun 21, 2021

Conversation

PokkeFe
Copy link
Collaborator

@PokkeFe PokkeFe commented Jun 9, 2021

Converted SpanArray HTML generator to load scripts and style sheets from a dedicated resource module. Integrates base JavaScript for future dynamic behavior. Added new styles for nested and compound highlight regions.
Related to issue #201

@PokkeFe PokkeFe marked this pull request as ready for review June 17, 2021 16:25
@frreiss frreiss self-requested a review June 17, 2021 17:04
Copy link
Member

@frreiss frreiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Some potential issues around documents with HTML and problems displaying two notebooks at the same time to work through, but otherwise great.

requirements.txt Show resolved Hide resolved
text_extensions_for_pandas/jupyter.py Show resolved Hide resolved
text_extensions_for_pandas/jupyter.py Outdated Show resolved Hide resolved
text_extensions_for_pandas/jupyter.py Outdated Show resolved Hide resolved
text_extensions_for_pandas/jupyter.py Outdated Show resolved Hide resolved
text_extensions_for_pandas/resources/span_array.js Outdated Show resolved Hide resolved
text_extensions_for_pandas/jupyter.py Outdated Show resolved Hide resolved
@PokkeFe PokkeFe marked this pull request as draft June 21, 2021 18:24
Copy link
Member

@frreiss frreiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@frreiss frreiss marked this pull request as ready for review June 21, 2021 18:42
@frreiss
Copy link
Member

frreiss commented Jun 21, 2021

Thanks for the updates, @PokkeFe. I think this set of changes is in good enough state to merge into master.

One remaining issue that we should address ASAP in a follow-on PR: Cell 17 of our intro notebook throws an exception after these changes, because displaying multiple documents is not currently implemented. It would be better to generate an HTML error message (or generate an HTML warning followed by a display of the first document), so that this example notebook runs all the way to the end.

@frreiss frreiss merged commit 39f3364 into CODAIT:master Jun 21, 2021
@PokkeFe PokkeFe deleted the issue-201-spanarray-visual-enhancements branch July 20, 2021 17:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants