Jupyter notebook itkwidget error (not visible in notebook)
See original GitHub issueThis example does not work in Jupyter notebook, the itkwidget does not show up and in my case an error is printed:
Error displaying widget: model not found
Code:
from vedo import embedWindow, show
import brainrender
from brainrender.scene import Scene
embedWindow('itkwidgets')
brainrender.SHADER_STYLE = "cartoon"
scene = Scene(title="brain regions", inset=False)
scene.add_brain_region("TH", alpha=0.15)
val = scene.add_brain_region("VAL")
val.wireframe()scene.jupyter = True
scene.render()
from ipywidgets import VBox, Button
VBox([Button(description='hi'), show(*scene.renderables)])
Issue Analytics
- State:
- Created 3 years ago
- Comments:14
Top Results From Across the Web
IPython Notebook ipywidgets does not show - Stack Overflow
No error messages appear. The code seem to run just fine, as the table appears, but the slide bar just doesn't appear. I...
Read more >No outputs from view(image) of itkwidgets - ITK Discourse
When I run the following lines from the jupyter notebook provided as examples on github in my system, I fail to get any...
Read more >Working with Jupyter Notebooks in Visual Studio Code
To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P). Once the appropriate environment is activated, you ...
Read more >Using itkwidgets with PyVista
PyVista has an interface for visualizing plots in Jupyter. The pyvista.PlotterITK class allows you interactively visualize a mesh within a jupyter notebook.
Read more >itkwidgets - PyPI
JupyterLab 3 support is not yet available. JupyterLab 2 or the Jupyter Notebook are possible alternatives. Usage. In Jupyter, import the view function:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I guess it was related to Jupyter lab more than anything else. Your code above works in Jupyter notebook. I see the brain in a basic UI (finally!).
Yes, we can close this issue for now. Thanks for your help.