-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have plot
and iplot
return instance of FigureWidget
#1071
Comments
Hi @timkpaine , Thanks for the idea. Here are a couple of thoughts
Installation is just a little different:
|
Hm, I'm getting different behavior when I return plotlywidget vs when I call |
Ok, just let us know |
@jonmmease here is a repro, iplot doesn't work but FigureWidget does: import numpy as np
import plotly.graph_objs as go
import plotly.offline as py_offline
x = np.random.randn(1000)
y = np.random.randn(1000)
py_offline.init_notebook_mode()
py_offline.iplot(go.Figure([{'x': x, 'y': y, 'type': 'histogram2dcontour'}]))
go.FigureWidget(data=[{'x': x, 'y': y, 'type': 'histogram2dcontour'}]) |
Hi @timkpaine , thanks for the example code. This is what I see when I run it (plotly 3.1.1, notebook 5.6.0, plotlywidget 0.2.1): Could you explain what difference you're seeing on your end? |
From jupyterlab? |
I only see the second chart, and a host of js errors: plotly 3.1.1, notebook 5.6.0, plotlywidget 0.2.2, jupyterlab 0.34.0 |
Yes, it works for me in JupyterLab as well. For JupyterLab you need to have the |
ahhh, so you need both the plotly AND plotlywidget extensions. got it |
Its a bit strange for the different interfaces between Notebook/JLab, is it possible to unify the two?
The text was updated successfully, but these errors were encountered: