Skip to content

ScenePic doesn't show output in Colab #50

@errollw

Description

@errollw

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions