39
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JupyterLabでPlotlyのグラフを表示させる

Last updated at Posted at 2018-02-01

問題

JupyterLabでPlotlyのグラフを表示させようとしても何も表示されない。

image.png

Jupyter Notebookでは有効な対処手段であるinit_notebook_modeを使っても効果がない。

image.png

解決法

JupyterLabにplotly-extensionなるものがあるので、それをInstallする必要がある。

jupyter labextension install @jupyterlab/plotly-extension

npmに依存しているので、installされていない場合はinstallしてください

結果

グラフが表示されました。

image.png

余談

JupyterLabの拡張機能はJupyterHubのそれと異なりだいぶ数が少ないですが、GitHubにjupyterlab-extensionというTopicがあります。PlotlyのRendererもこちらのTopicに含まれています。

その中でもjupyterlab-google-driveはRealTimeでGoogle Driveと連携できて素晴らしいと目を輝かせたのですが、

As of November 28th, 2017, Google has deprecated their Realtime API. Existing realtime applications (such as those you may have set up according to these instructions) will still work until December 2018, but new applications will not be able to use the Realtime API. See the discussions here and here for more information.

かなしい…

39
30
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?