We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ba8a7 commit d323fa6Copy full SHA for d323fa6
backtesting/_plotting.py
@@ -46,7 +46,8 @@
46
encoding='utf-8') as _f:
47
_AUTOSCALE_JS_CALLBACK = _f.read()
48
49
-IS_JUPYTER_NOTEBOOK = 'JPY_PARENT_PID' in os.environ
+IS_JUPYTER_NOTEBOOK = ('JPY_PARENT_PID' in os.environ or
50
+ 'inline' in os.environ.get('MPLBACKEND', ''))
51
52
if IS_JUPYTER_NOTEBOOK:
53
warnings.warn('Jupyter Notebook detected. '
0 commit comments