-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
go.Figure()
does not render in JupyterLab, only go.FigureWidget()
.
Chrome Console Error: Uncaught ReferenceError: require is not defined
Example:
import plotly
import plotly.io as pio
import plotly.graph_objects as go
figwidget = go.FigureWidget(data=go.Bar(y=[1, 2, 3]))
fig = go.Figure(data=go.Bar(y=[3, 2, 1]))
display(pio.renderers)
display(figwidget)
display(fig)
Jupyter & Plotly specifics:
%load_ext watermark
%watermark -d -iv -v -m -u -n -t -z
!jupyter labextension list plotly
plotly 4.4.1
last updated: 2020-01-12 22:40:00 EST
CPython 3.7.6
IPython 7.11.1
compiler : Clang 4.0.1 (tags/RELEASE_401/final)
system : Darwin
release : 19.2.0
machine : x86_64
processor : i386
CPU cores : 4
interpreter: 64bit
JupyterLab v1.2.4
Known labextensions:
app dir: ~/anaconda3/share/jupyter/lab
@jupyter-widgets/jupyterlab-manager v1.1.0 enabled OK
jupyterlab-plotly v1.4.0 enabled OK
plotlywidget v1.4.0 enabled OK
qgrid v1.1.1 enabled OK
Metadata
Metadata
Assignees
Labels
No labels