Open monacv opened 3 years ago
I would interpret that to mean it is looking for an X11 server. Does Google Colab support that?
I did a quick search and turned up this Stackoverflow:
https://stackoverflow.com/questions/60886590/how-to-setup-pyglet-to-work-with-manim-in-colab
Seems Colab may support pyvirtualdisplay
. Can you give that a shot?
Hi Kurt,
Thanks a lot for your response. So pyvirtualdisplay didn't work for me following the StackOverflow example also not sure how to connect it with the visualization of piglet
could you please elaborate with a code example?
Looks like you need Xvfb (X virtual frame buffer). Is that something you have to manually add in Colab?
I did another search, and in this answer the person is first using apt
to install xvfb:
https://stackoverflow.com/questions/50107530/how-to-render-openai-gym-in-google-colab
Can you try that?
Could be easier to use trimesh for this : https://github.com/mikedh/trimesh
It does support inline visualization with tree.js. I have not used Google Colab much but I assume things working in notebook will also work there.
@einarf yeah I initially tried that and got this error
Hello,
Could you please guide me how to interactively or even statically visualize the obj file inside Google Colab?
Error is: