tpaviot / pythonocc-demos

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

Error when using JupyterRenderer #68

Open linbeijianbaoxia opened 1 year ago

linbeijianbaoxia commented 1 year ago

I am a beginner in PyOCC. I try to use JupyterRenderer, and write a demo as below: from OCC.Display.WebGl.jupyter_renderer import JupyterRenderer from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox

box = BRepPrimAPI_MakeBox(1.0, 1.0, 1.0).Shape()

renderer = JupyterRenderer() renderer.DisplayShape(box, render_edges=True) renderer.Display()

I get a error, I have no idea how to fit it. I use 7.7.0, It would be my honor to receive your assistance. image

Martin15135215 commented 2 months ago

I had the same problem, however i used then another browser and there was not this problem. So maybe trying another browser could help?

tpaviot commented 2 months ago

@linbeijianbaoxia did you try with 7.8.1 release? did you try with another web browser?

@Martin15135215 what was the browser causing the issue?

linbeijianbaoxia commented 2 months ago

@linbeijianbaoxia did you try with 7.8.1 release? did you try with another web browser?

I haven't used the 7.8.1 release yet due to some reasons, so I am currently using the C++ version of OCC for development. However, I am very willing to use pythonOCC. Thank you very much for your work.

linbeijianbaoxia commented 2 months ago

I had the same problem, however i used then another browser and there was not this problem. So maybe trying another browser could help?

Thank you so much,I will try it.

Martin15135215 commented 2 months ago

I used first LibreWolf -> I think some things were disabled in this Firefox fork, so i tested vanilla Google Chrome and there it functioned.