Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions executor/python_executor/matplot/oomol_matplot_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def render(self, fig_dict):
color_scheme = os.getenv("OOMOL_COLOR_SCHEME", "dark")
# The generated html has default body margin 8px in chrome, remove it.
html = re.sub(r'<html[^>]*?>', r'\g<0><style>html { color-scheme: ' + color_scheme + '; height: 100%; align-content: center } ' +
'body { overflow: hidden; margin: 0 }</style>', html, flags=re.I)
'body { margin: 0 }</style>', html, flags=re.I)
context.preview({ "type": "html", "data": html })
else:
logger.warning('plotly: no sys.modules["oomol"]')
Expand All @@ -77,4 +77,4 @@ def render(self, fig_dict):

def import_helper(logger: Logger):
setup_matplot(logger)
setup_plotly(logger)
setup_plotly(logger)
Loading