Skip to content

Commit

Permalink
Fix tracing back
Browse files Browse the repository at this point in the history
  • Loading branch information
RYangazov committed Mar 4, 2024
1 parent 3f3a0a4 commit e9ebe44
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def __init__(self, exec: str, new: bool) -> None:
def show(self, plot_spec: Dict) -> str:
html_page = kbr._generate_static_html_page(plot_spec, iframe=False)

path = tempfile.NamedTemporaryFile(mode='w+t', suffix=".html", delete=False).name
path = tempfile.NamedTemporaryFile(mode='w+t', suffix=".html", delete=False)
try:
io.open(path, 'w+t').write(html_page)
webbrowser.get(self.exec).open('file:https://' + path, new=1 if self.new else 2)
io.open(path.name, 'w+t').write(html_page)
webbrowser.get(self.exec).open('file:https://' + path.name, new=1 if self.new else 2)
finally:
path.close()

0 comments on commit e9ebe44

Please sign in to comment.