Skip to content

Docs/webgl view docstrings - #712

Open
AgarwalNilay wants to merge 1 commit into
gallantlab:mainfrom
evi-hendrikx:docs/webgl-view-docstrings
Open

Docs/webgl view docstrings#712
AgarwalNilay wants to merge 1 commit into
gallantlab:mainfrom
evi-hendrikx:docs/webgl-view-docstrings

Conversation

@AgarwalNilay

Copy link
Copy Markdown
Contributor

added return section to 'show' docstring

@kroq-gar78

kroq-gar78 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Does this PR depend on changes from evi-hendrikx:docs/volume-docstrings (PR #711)? (The same question applies to #713 .) All these PRs are failing due to the Volume.random changes, and it's not clear if that is a necessary change for documentation in these modules.

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 <[email protected]>
@AgarwalNilay
AgarwalNilay force-pushed the docs/webgl-view-docstrings branch from 378a882 to 10ab531 Compare August 24, 2026 16:37
@marklescroart

marklescroart commented Aug 24, 2026 via email

Copy link
Copy Markdown
Contributor

@kroq-gar78

Copy link
Copy Markdown
Contributor

Hey Mark, yes think they were from the Volume.random changes. Nilay just removed those commits from this branch, which is why the tests are passing now.

Do you mind opening up a new PR for that? Or if you let met know which branch it's on, I can do that myself.

Comment thread cortex/webgl/view.py
Comment on lines +388 to +392
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSMixer if open_browser, else WebApp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants