You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, maidr.show() requires a local server running so it works only when executed within an interactive session.
To support non-interactive standlone execution, I suggest the following:
if__name__=="__main__":
# If running as a script, save HTML and open in browser## save the html file as a tempfile using `maidr.save()`## Open the saved tempfile in browser via `webbrowser.open(f"file://{temp_path}")`else:
# If running in an interactive environment, use our `maidr.show()`
If you have any better ideas, feel free to go with that way.
The text was updated successfully, but these errors were encountered:
Currently, I would also recommend to use maidr.save_html() to execute a python script. In order to support the standalone script, we need to provide a backend similar to what visualization libraries are using to show the plots. This requires further design analysis, as this would be a big change. I would suggest to add this as backlog, since we have the highlighting feature pending.
Currently,
maidr.show()
requires a local server running so it works only when executed within an interactive session.To support non-interactive standlone execution, I suggest the following:
If you have any better ideas, feel free to go with that way.
The text was updated successfully, but these errors were encountered: