Skip to content

Commit 09fec98

Browse files
committed
Add nteract renderer detection
1 parent 5e84da1 commit 09fec98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: packages/python/plotly/plotly/io/_renderers.py

+4
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,10 @@ def show(fig, renderer=None, validate=True, **kwargs):
471471
if not default_renderer and "VSCODE_PID" in os.environ:
472472
default_renderer = "vscode"
473473

474+
# Cheick if we're running in nteract
475+
if not default_renderer and "NTERACT_EXE" in os.environ:
476+
default_renderer = "nteract"
477+
474478
# Fallback to renderer combination that will work automatically
475479
# in the classic notebook (offline), jupyterlab, nteract, vscode, and
476480
# nbconvert HTML export.

0 commit comments

Comments
 (0)