Skip to content

Commit 428b7e0

Browse files
committed
test
1 parent b98db27 commit 428b7e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tardis/io/logger/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def finalize_widget_logging(self):
175175
"""Finalize widget logging by embedding the final state.
176176
"""
177177
# Embed the final state for Jupyter environments
178-
if (Environment.is_notebook() and hasattr(self, 'display_handles')
178+
if (Environment.allows_widget_display() and hasattr(self, 'display_handles')
179179
and hasattr(self, 'display_ids') and self.display_handles and self.display_ids):
180180
print("Embedding the final state for Jupyter environments")
181181
for level, column in self.log_columns.items():
@@ -255,7 +255,7 @@ def logging_state(log_level, tardis_config, specific_log_level=None, display_log
255255
tardislogger.configure_logging(log_level, tardis_config, specific_log_level)
256256
use_widget = display_logging_widget and Environment.allows_widget_display()
257257

258-
if Environment.is_notebook() or Environment.is_sshjh():
258+
if Environment.is_notebook() or Environment.is_sshjh() or Environment.is_sphinx():
259259
display_handles = {}
260260
display_ids = {}
261261
for level, column in log_columns.items():

tardis/workflows/simple_tardis_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class SimpleTARDISWorkflow(WorkflowLogging):
29-
show_progress_bars = Environment.is_notebook()
29+
show_progress_bars = Environment.allows_widget_display()
3030
enable_virtual_packet_logging = False
3131
log_level = None
3232
specific_log_level = None

0 commit comments

Comments
 (0)