ScenePic works great with Jupyter notebook for visualizing the results of a cell just by writing scene. However, this does not seem to work with Google Colab, see this example.
The scenes do get created, but nothing is shown in the cell output for scene.
import scenepic as sp
scene = sp.Scene()
scene.create_canvas_3d()
# This doesn't work: nothing shows in cell output.
scene
Strangely a workaround of saving the scene to HTML and then displaying that does work. But it would be great to fix the regular behaviour.
import IPython
# This works, but I find it fails for large scenes.
scene.save_as_html("scenepic.html")
IPython.display.HTML(filename="scenepic.html")
ScenePic works great with Jupyter notebook for visualizing the results of a cell just by writing
scene. However, this does not seem to work with Google Colab, see this example.The scenes do get created, but nothing is shown in the cell output for
scene.Strangely a workaround of saving the scene to HTML and then displaying that does work. But it would be great to fix the regular behaviour.