pythonocc-demos icon indicating copy to clipboard operation
pythonocc-demos copied to clipboard

Invisible JupyterRenderer?

Open jakob-beetz opened this issue 5 years ago • 3 comments

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

image

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!

jakob-beetz avatar Oct 02 '20 10:10 jakob-beetz

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

akamensky avatar Oct 04 '20 15:10 akamensky

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

jakob-beetz avatar Oct 06 '20 12:10 jakob-beetz

it worked here! by the way, this problem doesn't happen in jupyter version 6.0.3

c4rlosdias avatar Oct 12 '20 01:10 c4rlosdias