plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
15.62k stars 2.51k forks source link

graph_objects.Figure cannot be shown on jupyterlab #4613

Closed tanliwei-genomics-cn closed 4 weeks ago

tanliwei-genomics-cn commented 1 month ago

I have installed the latest plotly, jupyterlab 4.1.5 and ipywidgets 8.1.2, but the graph_objects.Figure with a Sankey data still cannot be shown on jupyterlab, just only a blank space.

I also tried the example provided on Quickstart, it also failed to display.

I don't know how to solve this problem.

Is the version of jupyterlab and ipywidgets too high to be compatible with plotly?

By the way, my plotly is running on python 3.8.19 and jupyterlab is running on python 3.11.8, they are running on separate conda enviroment from each other.

tanliwei-genomics-cn commented 1 month ago

I think I know what the problem is, the plotly must be installed in a same enviroment as jupyterlab.