Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect WebGL support on BrowserInfo #6931

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

philippjfr
Copy link
Member

Detects webgl support, e.g. so we can toggle webgl rendering automatically in HoloViews.

panel/models/browser.ts Outdated Show resolved Hide resolved
panel/models/browser.ts Outdated Show resolved Hide resolved
@philippjfr philippjfr requested a review from hoxbro June 24, 2024 18:03
Copy link
Member

@hoxbro hoxbro left a comment

Choose a reason for hiding this comment

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

An electron bug caused the issue with Jupyter Desktop. See the comments at bokeh/bokeh#13665. It was fixed by deleting a specific folder.

I don't know if this would solve the problem more than hide it. I could be wrong.

@@ -505,6 +505,8 @@ def _render(self, doc, comm, root):
Store.current_backend = loaded_backend
backend = self.backend or Store.current_backend
renderer = Store.renderers[backend]
if state.browser_info and 'webgl' in renderer.param:
renderer.webgl = state.browser_info.webgl
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it is Panel job to do this.

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.

None yet

2 participants