Skip to content

[BUG] The suggestion in examples/notebook_workflow.ipynb don't match the suggestions printed by render.py #442

@IgorTatarnikov

Description

@IgorTatarnikov

The example in notebook_workflow.ipynb has the below as instructions for displaying the scene:

# To display the scene we use `vedo`'s `show` method to show the scene's actors
from vedo import Plotter  # <- this will be used to render an embedded scene 
plt = Plotter()
plt.show(*scene.renderables)  # same as vedo.show(*scene.renderables)

Meanwhile the text printed below the cell (from render.py) suggestions something different.

elif self.backend == "k3d": # pragma: no cover
# Remove silhouettes
self.remove(*self.get_actors(br_class="silhouette"))
print(
f"[{teal}]Your scene is ready for rendering, use:\n",
Syntax("from vedo import show", lexer="python"),
Syntax("vedo.show(*scene.renderables)", lexer="python"),
sep="\n",
)

Running this results in an incorrect output:

Image

The text should be harmonised and we should pick one way of suggesting users run brainrender in a Jupyter notebook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions