pythonocc-demos
pythonocc-demos copied to clipboard
Invisible JupyterRenderer?
Dear Thomas, all,
when using
from OCC.Display.WebGl.jupyter_renderer import JupyterRenderer
I get an invisible / empty viewer in Jupyter on all browsers for all .ipynb starting from helloworld.ipynb .
- "naked" pythreejs demos are working
- "naked" ipywidgets are working (I get a number of widgets at the top of the viewer gadget

Have you encountered this before? What might be a good direction to hunt for this issue? should I maybe look into the "new" pythoncc-core?
Thank you very much in advance! And thank you for all your great work!
Same here for all notebook examples. I am on macos 10.15, with pythonocc and opencascade installed via conda. On loading any notebook with rendering in them I get in terminal hundreds of lines like:
Parameter n0.1 (property_definition.name) not a quoted String
Check:502 -- Entity (n0:id) 220108:#220117 Type:PRODUCT_DEFINITION_SHAPE
Parameter n0.1 (property_definition.name) not a quoted String
Check:503 -- Entity (n0:id) 220109:#220118 Type:PRODUCT_DEFINITION_SHAPE
Parameter n0.1 (property_definition.name) not a quoted String
Check:504 -- Entity (n0:id) 220110:#220119 Type:PRODUCT_DEFINITION_SHAP
Ok ... wow ... dove into the rabbit hole and dug up this:
it's a an issue with the traitlets module
https://github.com/jupyter-widgets/pythreejs/issues/334#issuecomment-692398937
the suggested fix pip3 install traitlets==4.3.3 solved it for me
Works again! Thanks for your work
it worked here! by the way, this problem doesn't happen in jupyter version 6.0.3