Plotly.py: Plotly needs a jupyterlab extension to work with Jupyter Lab

Created on 1 Nov 2016  路  9Comments  路  Source: plotly/plotly.py

As @tc0312 mentioned in https://github.com/jupyterlab/jupyterlab/issues/1188:

Plotly uses AMD to inject its javascript library to the browser from the kernel: code
This's not working in JupyterLab right now because lab.html doesn't load require.js.

Discussion in that issue points to the fact that Jupyter Lab will require packages to load front end code via the lab extensions framework.

cc. @mdtusz and @yankev

Most helpful comment

FYI https://github.com/gnestor/jupyterlab_plotly is moving over to https://github.com/jupyterlab/jupyter-renderers. Classic notebook extension coming soon!

All 9 comments

I'm not familiar with the plotly code, but perhaps a good model to follow is the vega plugin

As noted in jupyterlab/jupyterlab#1188:

nteract has a plotly renderer that relies on the Plotly JSON Chart Schema with mimetype application/vnd.plotly.v1+json

@chriddyp has initial work for that support in https://github.com/plotly/plotly.py/pull/562 (which would translate to jupyterlab as well with the same mimetype).

nice, thanks for pointing that out, @rgbkrk.

JupyterLab extension for Plotly courtesy @gnestor: https://github.com/gnestor/jupyterlab_plotly

cc @cldougl

FYI https://github.com/gnestor/jupyterlab_plotly is moving over to https://github.com/jupyterlab/jupyter-renderers. Classic notebook extension coming soon!

@gnestor Is there a place where we can track the progress of the classic notebook extension? Thanks!

This can be closed with the addition of @jupyterlab/plotly-extension and plotlywidget 馃憤

Was this page helpful?
0 / 5 - 0 ratings