Skip to content

Commit

Permalink
ensure k3d is the backend for html export, but that this change in ba…
Browse files Browse the repository at this point in the history
…ckend is scoped

k3d seems like a good choice for html as k3d provides standalone HTML/JS rendering capabilities: https://github.com/K3D-tools/K3D-jupyter
it is one of the options for a jupyter notebook too. see https://vedo.embl.es/docs/vedo.html
  • Loading branch information
alessandrofelder committed Nov 15, 2023
1 parent f9fba19 commit 9ec052d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brainrender/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def export(self, savepath):
"""
logger.debug(f"Exporting scene to {savepath}")
_backend = self.backend
_default_backend = vsettings.default_backend

if not self.is_rendered:
self.render(interactive=False)
Expand All @@ -314,7 +315,7 @@ def export(self, savepath):
)

# Reset settings
vsettings.notebookBackend = None
vsettings.default_backend = _default_backend
self.backend = _backend

return str(path)
Expand Down

0 comments on commit 9ec052d

Please sign in to comment.