Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Example doesn't seem to work - ReferenceError: require is not defined #38

@ghuname

Description

@ghuname

Hi,

when I execute px.scatter(gapminder2007, x="gdpPercap", y="lifeExp") I got an error in browser and nothing is showed in jupyterlab, but place for graph is reserved:

ReferenceError: require is not defined[Learn More] lab line 270693 > scriptElement:1:1
(index):1
attachWidget panellayout.js:210
insertWidget panellayout.js:113
_insertOutput widget.js:335
onModelChanged widget.js:217
invokeSlot index.js:475
emit index.js:433
emit index.js:106
_onListChanged model.js:282
invokeSlot index.js:475
emit index.js:433
emit index.js:106
push observablelist.js:137
_add model.js:213
add model.js:139
_onIOPub widget.js:93
_handleIOPub future.js:212
InterpretGeneratorResume (index):1255
next (index):1210
fulfilled future.js:6

In the same notebook plotly works, for example:
import plotly.graph_objs as go
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

plot([go.Scatter(x=[1, 2, 3], y=[3, 1, 6])])

OS: Linux Manjaro
Browser: Firefox 66.0.1 (64-bit)
plotly: 3.7.1
plotly_express: plotly_express.version doesn't work, I don't know how to check
jupyterlab: 0.35.4
jupyterlab/plotly-extension: I don't know how to check version, but I have just installed it today

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