From 10ab531f0281e9e18aaff4119548859bf4bff370 Mon Sep 17 00:00:00 2001 From: AgarwalNilay Date: Fri, 21 Aug 2026 18:51:19 -0700 Subject: [PATCH] docs(webgl): add missing Returns section to show() show() had full Parameters/Other parameters/**kwargs docs but no Returns, despite conditionally returning a JSMixer client (when open_browser is True) or None. Co-Authored-By: Claude Sonnet 5 --- cortex/webgl/view.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cortex/webgl/view.py b/cortex/webgl/view.py index da506235f..02e99475a 100644 --- a/cortex/webgl/view.py +++ b/cortex/webgl/view.py @@ -382,6 +382,14 @@ def show( headless viewers. Default True **kwargs All additional keyword arguments are passed to the template renderer. + + Returns + ------- + client : JSMixer or None + If `open_browser` is True, a `JSMixer` client connected to the + opened browser tab, which can be used to control the viewer + programmatically (e.g. `client.getImage()`, `client.animate()`). + If `open_browser` is False, returns None. """ # populate default webshow args