Skip to content

Commit 82bcc49

Browse files
committed
Adds debug logging for plot display checks
1 parent 0b9b6e7 commit 82bcc49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/easydiffraction/plotting/plotters/plotter_plotly.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ def plot(
110110
# This can lead to warnings in Jupyter notebooks:
111111
# WARNING: skipping unknown output mime type: application/vnd.plotly.v1+json [mystnb.unknown_mime_type]
112112
if is_notebook() or is_pycharm() or display is None or HTML is None:
113+
print(
114+
f'----DEBUG----: fig.show(): is_notebook()={is_notebook()}, is_pycharm()={is_pycharm()}, '
115+
f'display={display}, HTML={HTML}'
116+
)
113117
fig.show(config=config)
114118

115119
# If IPython is available, we can convert the figure to HTML and
@@ -124,4 +128,5 @@ def plot(
124128
)
125129

126130
# Display it in the notebook
131+
print('----DEBUG----: display(HTML(html_fig))')
127132
display(HTML(html_fig))

0 commit comments

Comments
 (0)