Skip to content

Commit

Permalink
debug: add print statements to check interactive shell and notebook s…
Browse files Browse the repository at this point in the history
…tatus in Maidr class
  • Loading branch information
dakshpokar committed Dec 18, 2024
1 parent 193fdb9 commit f4a12c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maidr/core/maidr.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def show(self, renderer: Literal["auto", "ipython", "browser"] = "auto") -> obje
print(html)
_renderer = Environment.get_renderer()
print(_renderer)
print(Environment.is_interactive_shell())
print(Environment.is_notebook())
if _renderer == "browser" or (
Environment.is_interactive_shell() and not Environment.is_notebook()
):
Expand Down

0 comments on commit f4a12c7

Please sign in to comment.