Skip to content

visual() / threejs issue with Jupyter Lab #338

@vukk

Description

@vukk

The following bug seems to be present when using Jupyter Lab notebooks:
Writing

using Polymake;
p2 = @pm polytope.Polytope{}(POINTS=[1 -1 -1; 1 1 -1; 1 -1 1; 1 1 1; 1 0 0], INPUT_LINEALITY=[0 1 0])
visual(p2)

results in Uncaught ReferenceError: requirejs is not defined in the web console.

Similar issues in other packages, reported elsewhere:

Version information:
JupyterLab Version 3.0.5
Julia 1.5.3
Polymake.jl 0.5.5
Polymake.version() -> v"4.3.0"

Workaround:
ThreeJS works in a classic notebook. Open your notebook as a classic notebook in Jupyter Lab via Help -> Launch Classic Notebook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions