tpaviot / pythonocc-demos

Examples and demos for the pythonocc CAD package
216 stars 115 forks source link

Invisible JupyterRenderer? #28

Open jakob-beetz opened 3 years ago

jakob-beetz commented 3 years ago

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 .

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!

akamensky commented 3 years ago

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
jakob-beetz commented 3 years ago

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

c4rlosdias commented 3 years ago

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