Skip to content

Commit

Permalink
Fix #216
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-ottolenghi committed Mar 27, 2023
1 parent ccb7ce7 commit c2787d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyvis/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def write_html(self, name, local=True, notebook=False,open_browser=False):
webbrowser.open(getcwd_name)


def show(self, name, local=True,notebook=True):
def show(self, name, local=True, notebook=False):
"""
Writes a static HTML file and saves it locally before opening.
Expand All @@ -543,7 +543,7 @@ def show(self, name, local=True,notebook=True):
"""
print(name)
if notebook:
self.write_html(name, open_browser=False,notebook=True)
self.write_html(name, open_browser=False, notebook=True)
else:
self.write_html(name, open_browser=True)
if notebook:
Expand Down Expand Up @@ -761,7 +761,7 @@ def barnes_hut(
:param gravity: The more negative the gravity value is, the stronger the
repulsion is.
:param central_gravity: The gravity attractor to pull the entire network
to the center.
to the center.
:param spring_length: The rest length of the edges
:param spring_strength: The strong the edges springs are
:param damping: A value ranging from 0 to 1 of how much of the velocity
Expand Down Expand Up @@ -859,7 +859,7 @@ def force_atlas_2based(
:param gravity: The more negative the gravity value is, the stronger the
repulsion is.
:param central_gravity: The gravity attractor to pull the entire network
to the center.
to the center.
:param spring_length: The rest length of the edges
:param spring_strength: The strong the edges springs are
:param damping: A value ranging from 0 to 1 of how much of the velocity
Expand Down Expand Up @@ -906,7 +906,7 @@ def toggle_hide_edges_on_drag(self, status):
panning of the network easy.
:param status: True if edges should be hidden on drag
:type status: bool
"""
self.options.interaction.hideEdgesOnDrag = status
Expand Down Expand Up @@ -961,7 +961,7 @@ def show_buttons(self, filter_=None):

def toggle_physics(self, status):
"""
Toggles physics simulation
Toggles physics simulation
:param status: When False, nodes are not part of the physics
simulation. They will not move except for from
Expand Down Expand Up @@ -1000,7 +1000,7 @@ def set_options(self, options):
:param options: The string representation of the Javascript-like object
to be used to override default options.
:type options: str
"""
self.options = self.options.set(options)

0 comments on commit c2787d8

Please sign in to comment.