Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
f21290c
Merge pull request #2 from WestHealth/feature/add-node-font-color
boludo00 May 14, 2018
6471717
fixed some spacing
May 14, 2018
6173db8
updated docs
May 15, 2018
cf4b319
version update
May 15, 2018
1bdf7e0
modified network physics methods to accept parameters
May 15, 2018
d6bc7e6
some spacing
May 15, 2018
8ff8dd9
Merge pull request #5 from WestHealth/feature/add-setter-properties-t…
boludo00 May 15, 2018
d06e8dd
implemented logic for handling displaying the config window in the br…
May 15, 2018
7bbc11e
added more documentation and modified method name
May 15, 2018
ae537b3
Merge pull request #7 from WestHealth/master
boludo00 May 15, 2018
796d585
Merge pull request #8 from WestHealth/feature/add-toggle-physics-conf…
boludo00 May 15, 2018
917414b
including config UI examples in docs
May 15, 2018
4c60845
update version
May 15, 2018
81a78d7
added gif to readme
May 15, 2018
3738520
template now displays a loading bar if there are more than 100 nodes
May 17, 2018
1524768
Fix IFrame width and height mixed up
mispecto May 19, 2018
de6f4c4
Merge pull request #9 from spektom/patch-1
boludo00 May 19, 2018
7a83462
Set the solver when barnesHut isn't chosen
May 23, 2018
8f4fb53
Merge pull request #11 from Kogelvis/master
boludo00 May 23, 2018
1b42c99
adeed js and css accounting for hovering over links
May 24, 2018
7204201
modified test to reflect previous change
May 24, 2018
ce9ca45
changed to a better condition check
May 24, 2018
1dc1b3d
Merge pull request #12 from WestHealth/feature/make-link-in-node-labe…
boludo00 May 24, 2018
416d79a
version 0.1.4 supports loading bar for nets of > 100 nodes, revamped …
May 24, 2018
493e3d6
removed print statement in docs
May 24, 2018
098c4e1
modified how the template reads json, avoiding python types making th…
Jun 26, 2018
6915d6c
small fix for iterating through int type node titles
Jun 26, 2018
c68c68d
Merge pull request #14 from WestHealth/hotfix/i13-network-vis-fails-a…
boludo00 Jun 26, 2018
a9688fc
updating version for small fix
Jun 26, 2018
29f22c0
Fixed small typo; added csv download for DataFrame
glen-kurtz Aug 8, 2018
995d241
Merge pull request #15 from glen-kurtz/patch-1
boludo00 Aug 8, 2018
c21d791
adding missing module
Dec 5, 2018
c55aa52
Defaulting directed graph edges to point to destination node
Dec 6, 2018
9d1d2fd
Merge pull request #21 from WestHealth/18-drawing-wrong-arrow-directions
boludo00 Dec 6, 2018
f3b7b7c
added check for bidirectional edge adding
Dec 6, 2018
8a5526a
Merge pull request #22 from WestHealth/19-bidirectional-dependencies
boludo00 Dec 6, 2018
4017148
added support for versioning. Can now access pyvis.__version__
Dec 6, 2018
bf687bf
version 1.5.0 change. This version got rid of bugs regarding the dire…
Dec 6, 2018
3f5126a
jinja2 2.8 was breaking on python 3.7 when displaying graph
Mar 7, 2019
a028b0f
added support for more int like node dtypes
Mar 7, 2019
881feb4
wrong logic in test
Mar 7, 2019
fa28c20
Merge pull request #26 from WestHealth/hotfix/24-Empty-AssertionError…
boludo00 Mar 7, 2019
40e6c2f
bump version
Mar 8, 2019
d4d6499
Merge branch 'master' of github.com:WestHealth/pyvis
Mar 8, 2019
4368d48
added layout structure to represent visjs layout obj
Mar 11, 2019
80b67c6
add layout to init
Mar 11, 2019
64e1113
add tests for new layout
Mar 11, 2019
0bcbf13
Merge pull request #28 from WestHealth/feature/27-add-layout-support
boludo00 Mar 12, 2019
ff6c765
bump version introducing heirarchical layout
Mar 12, 2019
eebe46c
fixed some docs and rename method
Mar 12, 2019
3bc3ea8
documentation on classes
Mar 12, 2019
899f5cc
add dynamic versioning
Mar 12, 2019
5dd58d3
autodoc includes options
Mar 12, 2019
ce20248
adding notebook with examples
Apr 11, 2019
017cacf
Update readme with binder
Apr 11, 2019
c72a6b5
pushing notebook
Apr 11, 2019
598128b
update requirements for pandas (needed for notebook example)
Apr 11, 2019
0068c1e
consistent ipython version in requirements.txt and setup.py
bistaumanga May 18, 2019
cc30af1
allow periods in filepath by making isHTML? checks smarter
aalok-sathe Jun 17, 2019
4f79867
redundant node shape override
Jul 8, 2019
21605c1
ignore files
Jul 8, 2019
799058e
handle overriding of options
Jul 8, 2019
c0f3a88
initial options set implmentation
Jul 8, 2019
5ff649e
Merge pull request #40 from WestHealth/feature/30-options-as-dictionary
Jul 8, 2019
14dbac7
Merge pull request #35 from aalok-sathe/patch-1
Jul 9, 2019
483c7cb
Merge pull request #33 from bistaumanga/master
Jul 9, 2019
c78f5c9
updated gitignore
Jul 26, 2019
a2cf764
bump version
Jul 26, 2019
cada195
update documentation
Jul 26, 2019
26a9f24
show loading bar only when physics enabled
Nanoseb Aug 28, 2019
b8ebe4d
fix typo in template
Nanoseb Aug 28, 2019
6b743e3
Merge pull request #44 from Nanoseb/master
Aug 29, 2019
3206bbc
fix toggle_physics documentation
Nanoseb Aug 29, 2019
0b3a828
Merge pull request #46 from Nanoseb/master
Aug 30, 2019
99b2005
Fixed typos
jbednar Sep 10, 2019
113110c
Merge pull request #47 from jbednar/typofix
Sep 11, 2019
75358d8
update License
Nov 21, 2019
0310f96
update license
Nov 25, 2019
90117f8
Fix broken link
sviperm Apr 18, 2020
0638f25
fixes issues: Network.from_nx doesn't inherit all properties #45 and …
nocluebutalotofit Jun 4, 2020
3b575c0
fixes issues: Network.from_nx doesn't inherit all properties #45 and …
nocluebutalotofit Jun 4, 2020
89e50cd
Merge remote-tracking branch 'origin/master'
nocluebutalotofit Jun 4, 2020
9460d59
deleted sys.path.append() ...
nocluebutalotofit Jun 4, 2020
4883cad
Merge pull request #61 from sviperm/patch-1
Jun 4, 2020
84c71b7
Merge pull request #63 from nocluebutalotofit/master
Jun 4, 2020
2f9ab24
update test with updated method name
Jun 4, 2020
1c8c507
bump version
Jun 4, 2020
c2ae142
update docs for new networkx integration
Jun 4, 2020
1f86301
separate div names
Jun 4, 2020
1622b58
forgot to update div
Jun 4, 2020
072523e
to_json method uses jsonpickler
Jun 29, 2020
299f924
hotfix for tojson method
Jun 29, 2020
c1a0f84
fixes #64
Jun 29, 2020
38e7d5d
post-release, address maxdepth in to_json
Jun 29, 2020
dc73e11
Implemented ability to add custom headers on top of graph output
WilsonHChung Jul 28, 2020
912beae
fix: added jsonpickple to setup.py
Aug 3, 2020
d54d7ea
Merge pull request #68 from GalenWong/jsonpickle-dependency
Aug 3, 2020
e81ffeb
Merge pull request #67 from WilsonHChung/master
Aug 3, 2020
5a91049
bump version
Aug 3, 2020
1751150
Fixes an issue where the graph output displays "None" as the heading …
WilsonHChung Aug 6, 2020
fc7c735
Added a visual blinking effect for a specified node
WilsonHChung Aug 10, 2020
6957041
Update template.html
WilsonHChung Aug 10, 2020
2c4adc3
Merge pull request #70 from WilsonHChung/master
Aug 12, 2020
7600826
fix typo
inaokay-Faber Dec 22, 2020
946390a
add method to get node by ID
Mar 2, 2021
7436379
update docs for get node
Mar 2, 2021
64a2e8c
rearrange docstring
Mar 2, 2021
0f610a4
bump version
Mar 2, 2021
a7e46dd
cleanup and fixed link redirects
jhunpingco Mar 5, 2021
35875a8
cleanup and fixed link redirects
jhunpingco Mar 5, 2021
fe1cc41
Fixes bug in random seed handling
HenningTimm Apr 27, 2021
61c99a1
repackaging dependencies to local
boludo00 Apr 28, 2021
635d193
initial changes for bundled lib files and neighborhood hlight support
boludo00 Apr 28, 2021
b1dc1f4
remove tree before tegen
boludo00 Apr 28, 2021
30381be
default width to 100% for readability in notebook
boludo00 Apr 28, 2021
339fbda
bootstrap integration, select menu for node ids
boludo00 Apr 28, 2021
474fff3
tooltip changed name across versions
boludo00 Apr 29, 2021
a8be583
Merge pull request #77 from inaokay-Faber/fix-typo
Apr 29, 2021
d26418b
Merge pull request #90 from HenningTimm/patch-1
Apr 29, 2021
b6f109d
Implement from_nx fix to handle weight as mentioned in #82
boludo00 Apr 29, 2021
9d6ab3e
Move color kwarg in case label is passed as 2nd arg without name. Thi…
boludo00 Apr 30, 2021
3aa3304
change behavior of select node, add button to reset. Relates to #73
boludo00 Apr 30, 2021
37b9ece
Updates link to Vis.js Network examples
amarvin May 28, 2021
1fea931
add shape
khuyentran1401 Jun 16, 2021
28c9813
tests: fix get_network_data
erictapen Jun 22, 2021
ab9a511
Allow custom 'arrows' options for directed graphs
IngoKl Jun 23, 2021
caec5e2
Added type numpy.integer in Network.add_node
artemk1337 Aug 10, 2021
7f4554a
Adding a function to generate HTML from a graph, so that it can be us…
Pierre-VF Aug 14, 2021
f7ef534
Merge pull request #97 from amarvin/patch-1
jhunpingco Oct 20, 2021
5ff29c6
Merge pull request #100 from khuyentran1401/master
jhunpingco Oct 20, 2021
9172cf5
Merge pull request #101 from erictapen/fix-test-get-network-data
jhunpingco Oct 21, 2021
76d17f7
Merge pull request #112 from artemk1337/patch-2
jhunpingco Oct 21, 2021
1489eb7
Merge pull request #114 from Pierre-VF/feature/generate_html_str
jhunpingco Oct 21, 2021
1291377
created CONTRIBUTING.md
jhunpingco Nov 1, 2021
10d8ced
more CONTRIBUTING.md
jhunpingco Nov 1, 2021
524bd0d
more contributing.md
jhunpingco Nov 1, 2021
12f8b5a
change from enable_physics to toggle_physics
pbayerle Dec 13, 2021
1b72678
Merge pull request #124 from pbayerle/patch-1
jhunpingco Dec 14, 2021
6c709fe
Merge pull request #102 from IngoKl/master
jhunpingco Dec 14, 2021
8eb1076
from_nx() updated to show edge weights by default
olive004 Dec 24, 2021
0a11e69
from_nx() updated to show edge weights by default
olive004 Dec 24, 2021
5ffefbb
Merge pull request #126 from olive004/show_edge_weights
jhunpingco Feb 8, 2022
79d0679
Fix pop-up position when html is used in title
szobov Feb 23, 2022
2b8ed66
Merge pull request #133 from szobov/fix-edges-pop-ups-html
jhunpingco Apr 12, 2022
3f551c4
updated setup.py
jhunpingco Apr 12, 2022
c32bd71
Merge branch 'master' of github.com:WestHealth/pyvis
jhunpingco Apr 12, 2022
7978857
Update vis-network to latest
Darkproduct Apr 12, 2022
fb8d3db
Fix https://github.com/WestHealth/pyvis/issues/128
Darkproduct Apr 12, 2022
475fec4
Remove junk
Darkproduct Apr 12, 2022
cee58c7
Use default edges of visjs
Darkproduct Apr 12, 2022
5b491ae
Fix notebook and add dot file example
Darkproduct Apr 12, 2022
c179e59
Fix https://github.com/WestHealth/pyvis/issues/129 and add example
Darkproduct Apr 12, 2022
8b29ec8
updated version
jhunpingco Apr 14, 2022
41d8a5e
update setup.py
jhunpingco Apr 14, 2022
ae908f1
update setup.py for pypi versioning
jhunpingco Apr 14, 2022
f513ee2
cleanup for new pypi release
jhunpingco Apr 14, 2022
90de0bb
Merge pull request #137 from Darkproduct/feature/dot-file-options
jhunpingco Apr 14, 2022
12488b6
fixed test_graph.py for default g.options.edges.smooth.type
jhunpingco Apr 15, 2022
b97db7c
Moved "lib" directory into the package being built
May 30, 2022
4f4de45
Disabled strict mode to resolve CSP issues
May 30, 2022
a14f8ed
Added tom-select library for searchable dropdown
May 30, 2022
0b30a38
Made the dropdown searchable
May 30, 2022
83320f1
Piggybacking on this pull request as during reviewing this request th…
BerserkerGaruk Jun 2, 2022
8cddae7
updated template directory generation to handle the change to how the…
BerserkerGaruk Jun 10, 2022
297134f
Merge pull request #145 from EgorPichkur/experimental_fixes
jhunpingco Jun 10, 2022
74bd78d
Add filtering functionality to the network graphs
js-konda Aug 25, 2022
f8306ef
Example notebook
js-konda Aug 29, 2022
fef09f4
add html tests for filter_menu and select_menu
js-konda Sep 8, 2022
0cb1752
Add documentation
js-konda Sep 20, 2022
4d48a51
Update tutorial.rst
js-konda Sep 20, 2022
69e1ab5
Update tutorial.rst
js-konda Sep 20, 2022
5b50a5c
Update test_html.py
js-konda Sep 20, 2022
6330c7f
updated vis-network to version 9.1.2. This is a non breaking change a…
BerserkerGaruk Sep 21, 2022
e63ddf2
Merge pull request #168 from WestHealth/feature/filter_menu
BerserkerGaruk Sep 21, 2022
5184658
Merge branch 'master' into experimental
BerserkerGaruk Sep 21, 2022
2ccdaa8
Merge pull request #91 from WestHealth/experimental
jhunpingco Sep 22, 2022
47395c5
Update game of thrones example source
js-konda Nov 2, 2022
4e2bf05
Merge pull request #186 from WestHealth/js-konda-gotSrc
BerserkerGaruk Nov 2, 2022
774a7f4
issue#174 height hardcoded to 600px, exchanging with self.height, and…
BerserkerGaruk Nov 2, 2022
af2e751
issue#174 lib directory overwritten when lib directory exists. The on…
BerserkerGaruk Nov 2, 2022
653b274
Merge pull request #187 from WestHealth/v2_bug_fixes
jhunpingco Nov 4, 2022
7b2099f
Logic of the write_html function has been modified to instead use the…
BerserkerGaruk Jan 11, 2023
ea2b932
updated generated graphics
BerserkerGaruk Jan 12, 2023
5dbf220
added intellij specific files to the .gitignore.
BerserkerGaruk Jan 12, 2023
21bbe7a
cleanup
BerserkerGaruk Jan 12, 2023
63afe1d
Merge remote-tracking branch 'origin/master' into write_html_rewrite
BerserkerGaruk Jan 12, 2023
50aaaf2
updated example notebooks. Updated network.py to handle how the .show…
BerserkerGaruk Feb 6, 2023
851f72d
reverted change to write html name generation.
BerserkerGaruk Feb 6, 2023
7457168
2nd /bindings -> vis-9.1.2
BerserkerGaruk Feb 6, 2023
f6daafc
Merge pull request #212 from WestHealth/write_html_rewrite
summerswallow-whi Feb 10, 2023
24efcbf
Adds multi-edge on multi undirected graphs.
ceandrade Feb 29, 2024
ce5fc1e
Adding latest changes and examples. The exemple scripts are not funct…
ceandrade Jul 10, 2025
567b086
Remove sensitive files from working tree and index
ceandrade Jul 10, 2025
c13bc6e
Adding a visualization example.
ceandrade Jul 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# binaries
*.pyc
.cache/
.coverage

# notebook checkpoints
.ipynb_checkpoints/
notebooks/.ipynb_checkpoints

# test related
.pytest_cache/
pyvis/test.py

# local files
pyvis/full_graph.txt
pyvis/source/stormofswords.csv

# package details
pyvis.egg-info/
build/
dist/
pyvis/make.bat

# vscode specific
.vscode/
venv

# intellij specific
.idea/
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8.12/envs/dash-venv-3-8
18 changes: 18 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Pull Requests

Here are some guidelines for pull requests:

* All work is submitted via Pull Requests.
* Pull Requests can be submitted as soon as there is code worth discussing. The worst case is that the PR is closed.
* Pull Requests should be made against master
* Pull Requests should be tested, if feasible:
- bugfixes should include regression tests.
- new behavior should at least get minimal exercise.
- new features should include a screenshot
* Don't make 'cleanup' pull requests just to change code style. We don't follow any style guide strictly, and we consider formatting changes unnecessary noise. If you're making functional changes, you can clean up the specific pieces of code you're working on.

Pyvis wraps vis.js so JavaScript functionality issues should be directed at the main `vis.js` project.

# Other contributions

Outside of Pull Requests (PRs), we welcome additions/corrections/clarification to the existing documentation as contributions at least as valuable as code submissions.
2 changes: 1 addition & 1 deletion LICENSE_BSD.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ are permitted provided that the following conditions are met:
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

- Neither the name of Thomas J Bradley nor the names of its contributors may
- Neither the name of West Health Institute nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.

Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
recursive-include pyvis/templates *.html
recursive-include pyvis/templates *
recursive-include pyvis/lib *
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Pyvis - a Python library for visualizing networks

![](pyvis/source/tut.gif?raw=true)

## Description
Pyvis is built around [visjs](http://visjs.org/), a JavaScript visualization library.

Expand All @@ -24,6 +26,12 @@ python setup.py install

[ipython](https://ipython.org/ipython-doc/2/install/install.html)

[jsonpickle](https://jsonpickle.github.io/)

### Test Dependencies
[selenium](https://www.selenium.dev/documentation/webdriver/)

[numpy](https://numpy.org/install/)
## Quick Start
The most basic use case of a pyvis instance is to create a Network object and invoke methods:

Expand All @@ -35,4 +43,7 @@ g.add_node(0)
g.add_node(1)
g.add_edge(0, 1)
g.show("basic.html")
```
```

## Interactive Notebook playground with examples
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/WestHealth/pyvis/master?filepath=notebooks%2Fexample.ipynb)
1,609 changes: 1,609 additions & 0 deletions examples/example.html

Large diffs are not rendered by default.

Loading