-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
displacy arc labels are place incorrectly in Jupyter notebook #2924
Copy link
Copy link
Closed
Labels
bugBugs and behaviour differing from documentationBugs and behaviour differing from documentationfeat / visualizersFeature: Built-in displaCy and other visualizersFeature: Built-in displaCy and other visualizersjupyterIssues related to Jupyter notebook environmentsIssues related to Jupyter notebook environments
Description
| Software | Version |
|---|---|
| Python | 3.6.4 |
| notebook | 5.4.1 |
| spacy | 2.0.16 |
The SVG contents is the same when I copy the HTML from the inspector both in
jupyter and from the displacy.serve webpage.
When viewed through displacy.serve:
The SVG generated is the same, so I suspect some CSS issue is overriding the default, I don't know whether that should be solved within Jupyter, or whether it's spaCy's responsibility to make portable SVGs.
Generated SVG here: https://gist.github.com/willprice/66d9ff961b693abe19e94d541eaacb99
This happens both in Firefox and Chrome.
I had a poke twiddling CSS rules off and on but couldn't seem to find any rules that affected the placement. Let me know if there's anything I can do providing additional info to help resolve the issue.
Thanks for the awesome library!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBugs and behaviour differing from documentationBugs and behaviour differing from documentationfeat / visualizersFeature: Built-in displaCy and other visualizersFeature: Built-in displaCy and other visualizersjupyterIssues related to Jupyter notebook environmentsIssues related to Jupyter notebook environments

