def render(self, output, view=True): """ Render the network to disk. Parameters ---------- output : str Name of the output file. view : bool Open the rendered network using the default browser. Default is True. """ fig = self.build_plotly_figure() if not output.endswith(".html"): output += ".html" fig.write_html(output, auto_open=view)