-
Notifications
You must be signed in to change notification settings - Fork 176
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
Edge titles does not work? #268
Comments
I am having the same problem when my node title contains an href, I thought the problem was fixed based on comments here: #133 But doesn't seem like the case. I deleted the following code from the HTML file for the network:
And then the edge title showed up, but the node titles become duplicated like this: Would also like to know if there is away around this right now. Thank you! |
Are your node IDs numeric? Wondering if this is related to #272. It seems a LOT of things are ignored when node IDs are numeric |
Hey @norweeg, my node IDs are strings in this case |
right, but are the strings numeric in that they contain only numeric characters?? Pyvis silently casts numeric strings to int for no reason causing issues if your node IDs are numeric strings, but does not do the same cast-as-int when adding edges containing numeric node ID strings. I fixed this in #277 which addresses my issue, #276 |
Oh, I see your point. In my case, the node IDs don't contain any numeric strings, they are BQ table names in the following format |
In addition to this issue: I'm encountering a similar problem. When I set the node title to HTML that includes an href, the edges' tooltips mysteriously disappear, even though the titles are present in the HTML file.
|
The documentation states that add_edge(...) has a parameter, title (str) – The title is shown in a pop-up when the mouse moves over the edge.
I have tried to set a string to this, I eventually wanted to be a HTML fragment the same way node title works, but it seems the code behind is only prepared for Node hover-tooltips.
When I look into the html code, I do not see showPopup(...) has even a way to be called with an edge:
How is this supposed to work?
Using PyVis 0.3.2.
In the template HTML code I cannot even see anything related to this. The "edges" variable is not even read in a meaningful way.
Is this broken, or a feature that was prematurely documented, but never implemented?
The text was updated successfully, but these errors were encountered: