We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2c2de3 commit 88c74d4Copy full SHA for 88c74d4
sdmetrics/visualization.py
@@ -1,5 +1,6 @@
1
"""Visualization methods for SDMetrics."""
2
3
+import os
4
from functools import wraps
5
6
import pandas as pd
@@ -29,8 +30,11 @@ def wrapper(*args, **kwargs):
29
30
# Lazy import IPython
31
from IPython import get_ipython
32
33
+ env_plotly_renderer = os.environ.get('SDMETRICS_PLOTLY_RENDERER', None)
34
ipython_interpreter = str(get_ipython())
- if 'ZMQInteractiveShell' in ipython_interpreter and 'iframe' in renderers:
35
+ if env_plotly_renderer is not None:
36
+ pio.renderers.default = env_plotly_renderer
37
+ elif 'ZMQInteractiveShell' in ipython_interpreter and 'iframe' in renderers:
38
# This means we are using jupyter notebook
39
pio.renderers.default = 'iframe'
40
0 commit comments