Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Jan 29, 2024
1 parent 59431ae commit 6630d43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ada/visit/renderer_react.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def show(self):
# open html file in browser
os.startfile(self.local_html_path)

def get_notebook_renderer(self):
def get_notebook_renderer(self, height=500):
from IPython.display import HTML

height = 500
as_html = self.local_html_path.read_text(encoding='utf-8')
# Copied from https://github.com/mikedh/trimesh/blob/main/trimesh/viewer/notebook.py#L51-L88
as_html = self.local_html_path.read_text(encoding="utf-8")
# escape the quotes in the HTML
srcdoc = as_html.replace('"', """)
# embed this puppy as the srcdoc attr of an IFframe
Expand Down

0 comments on commit 6630d43

Please sign in to comment.