Skip to content

Commit

Permalink
Merge pull request #124 from pbayerle/patch-1
Browse files Browse the repository at this point in the history
Update docs to change enable_physics to toggle_physics
  • Loading branch information
jhunpingco committed Dec 14, 2021
2 parents 3c6e740 + a3f1427 commit 3865122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvis/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ The displaying of a graph is achieved by a single method call on
:meth:`network.Network.show()` after the underlying network is constructed.
The interactive visualization is presented as a static HTML file.

>>> net.enable_physics(True)
>>> net.toggle_physics(True)
>>> net.show('mygraph.html')

.. note:: Triggering the :meth:`toggle_physics` method allows for more fluid graph interactions
Expand Down

0 comments on commit 3865122

Please sign in to comment.