-
Notifications
You must be signed in to change notification settings - Fork 174
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
Network.set_options doesn't work when loading the graph from a DOT file. #129
Labels
enhancement
New feature or request
Comments
Here is the fix: pyvis/pyvis/templates/template.html Lines 165 to 168 in b11d105
Change those lines to: var options = parsedData.options;
options = Object.assign(options, {
nodes: {
shape: "dot"
},
});
{% if options %}
options = Object.assign(options, {{options|safe}})
{% endif %} |
I can confirm this works! :) |
@Darkproduct Can you write a pull request for this change? |
Yea, I can do that. Should this also include the fix for #128? I mean the version of |
Please. That makes sense. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried using the
set_options
method as boludo00 demonstrated. This works fine.However when I read the edges and nodes from a DOT file the options I set afterwards with
set_options
have no effect.What you can do to replicate this:
Here is an example DOT file for testing:
Adding the following to the generated js will work though.
The text was updated successfully, but these errors were encountered: