Skip to content

Commit

Permalink
馃悰 clear graph on every run
Browse files Browse the repository at this point in the history
  • Loading branch information
ehne committed Sep 28, 2021
1 parent 2e783ab commit f45d53b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pynode_next/__init__.py
Expand Up @@ -9,5 +9,7 @@
def begin_pynode_next(func, open_browser=True):
if open_browser:
webbrowser.open(f"http://localhost:{core.port}")

core.run(func)
def new_func():
graph.clear()
func()
core.run(new_func)

0 comments on commit f45d53b

Please sign in to comment.