Skip to content

Commit

Permalink
Merge pull request #100 from khuyentran1401/master
Browse files Browse the repository at this point in the history
Add shape attribute to add_nodes
  • Loading branch information
jhunpingco committed Oct 20, 2021
2 parents 20cf2d5 + 872f263 commit 0703ec0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ dist/
pyvis/make.bat

# vscode specific
.vscode/
.vscode/
venv
2 changes: 1 addition & 1 deletion pyvis/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def add_nodes(self, nodes, **kwargs):
:type nodes: list
"""
valid_args = ["size", "value", "title", "x", "y", "label", "color"]
valid_args = ["size", "value", "title", "x", "y", "label", "color", "shape"]
for k in kwargs:
assert k in valid_args, "invalid arg '" + k + "'"

Expand Down

0 comments on commit 0703ec0

Please sign in to comment.