Skip to content

Commit

Permalink
including config UI examples in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Giancarlo Perrone committed May 15, 2018
1 parent 044f9e7 commit f6660e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Binary file added pyvis/source/buttons.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions pyvis/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ The displaying of a graph is achieved by a single method call on :meth:`network.
The visual is presented as a static html file and is interactive.

>>> net.enable_physics(True)
>>> net.show()
>>> net.show("mygraph.html")

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

Example: Visualizing a Game of Thrones character network
--------------------------------------------------------
Expand Down Expand Up @@ -158,6 +158,16 @@ If you want to try out the above code, the csv data source can be `downloaded <h
.. raw:: html
:file: gameofthrones.html

Using the configuration UI to dynamically tweak Network settings
----------------------------------------------------------------
You also have the option of supplying your visualization with a
UI used to dynamically alter some of the settings pertaining to
your network. This could be useful for finding the most optimal
parameters to your graph's physics and layout function.

>>> net.show_buttons(filter_=['physics'])

.. image:: buttons.gif

Using pyviz within `Jupyter <https://jupyter.org>`_ notebook
------------------------------------------------------------
Expand Down

0 comments on commit f6660e4

Please sign in to comment.