Repository navigation
gdsa 1733 neo4j viz graphwidget not rendering in graph analytics - #467
Merged
FlorentinD merged 3 commits intoOct 9, 2026
Merged
FlorentinD merged 3 commits into
FlorentinD merged 3 commits into
Conversation
FlorentinD
commented
Oct 7, 2026
Collaborator
- Reduce GraphWidget payload by sourcing the NDL stylesheet from the model
- Fix GraphWidget loading in hosts that load an AMD loader (PyCharm, VS Code)
- Add changelog entries for the widget payload reduction and PyCharm/VS Code fix
FlorentinD
added this pull request to stack #469
October 8, 2026 08:28
The NDL stylesheet was bundled into the ESM (twice) and shipped again as _css, so every widget display carried ~6 MB of the same CSS. Read it from the model's _css trait instead (anywidget syncs it; Streamlit seeds it) and drop the dead NVL layout worker chunks from the build output. widget.js 7.3 MB -> 3.2 MB, index.html 8.5 MB -> 4.4 MB, streamlit graph.js 7.3 MB -> 5.2 MB.
… Code)
Transitive UMD deps in the bundle (lodash, classnames, layout-base, cose-base, cose-bilkent, RBush) call the AMD define() when a loader is present. PyCharm/VS Code pages load requirejs, so evaluating the widget module raised 'Mismatched anonymous define() module', aborting it and tripping anywidget's 2s init timeout ('Failed to initialize model').
Neutralize the AMD branch at build time via define.amd = undefined.
FlorentinD
force-pushed
the
gdsa-1733-neo4j-viz-graphwidget-not-rendering-in-graph-analytics
branch
from
October 9, 2026 13:58
8c90b4e to
ab43910
Compare
FlorentinD
marked this pull request as ready for review
October 9, 2026 14:02
FlorentinD
deleted the
gdsa-1733-neo4j-viz-graphwidget-not-rendering-in-graph-analytics
branch
October 9, 2026 14:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.