brainrender can be used with Jupyter notebooks in two ways:
you can embed a window with your rendered scene
you can have your scene be rendered in a pop-up window.
For an example of how to use
jupyter have a look here.
If you want to have your scene be rendered in a new window, then you just need to set this option before your create your
from vedo import embedWindowembedWindow(None)
after this everything will work exactly the same as usual, and you will have access to all of
If you want to embed your scene anyways, you can do that as either a
k3d panel or a with
itkwidgets by setting:
embedWindow('k3d') # or 'itkwidgets'
If you chose
k3d then to rendered your scene:
from vedo import show# scene.render now will prepare the scene for rendering,# but it won't render anything yetscene.render()# to actually display the scene we use `vedo`'s `show`# method to show the scene's actorsshow(scene.actors)
from ipywidgets import VBox, ButtonVBox([show(scene.actors)])