事象
Pandasのplotメソッドで表示した図は表示されるのに、Plotly Expressで表示した図が表示されない。
原因
Jupyter Labにplotly-extensionを追加できていないため
対応方法
以下のサイトに従い、plotly-extensionを追加する
jupyterlab-plotly - npm
jupyter labextension install jupyterlab-plotly
補記事項
- jupyter serverextension enable --py jupyterlab-plotlyと書くとエラーが発生する。
なお、jupyter serverextension enable --py jupyterlabさえすれば活性化される。
- jupyter labextension install @jupyterlab/plotly-extensionはdeprecatedなので、使わない。
- Jupyter Labは一度再起動した方が良い