Skip to content
Permalink
Browse files

Update standalone HTML writer to open the file in a browser window by…

… its full path
  • Loading branch information
ajduberstein committed Sep 11, 2019
1 parent 27c4048 commit 6db43cd64f7a557f0f56fb2b87745b131be4736f
Showing with 3 additions and 3 deletions.
  1. +3 −3 bindings/python/pydeck/pydeck/io/html.py
@@ -1,5 +1,5 @@
import os
from os.path import relpath
from os.path import relpath, realpath
import tempfile
import time
import webbrowser
@@ -74,8 +74,8 @@ def deck_to_html(
raise Exception("pydeck could not write a file")
f.close()
if open_browser:
display_html(f.name)
display_html(realpath(f.name))
if notebook_display:
notebook_to_html_path = relpath(f.name)
display(IFrame(os.path.join('./', notebook_to_html_path), width=iframe_width, height=iframe_width)) # noqa
return f.name
return realpath(f.name)

0 comments on commit 6db43cd

Please sign in to comment.
You can’t perform that action at this time.