Plotly figures are not rendering on server [Experimental EBRAINS Docker image (release candidate)]
Summary
Summary | Rendering of Plotly figures fails in the JupyterLab at JSC and Cineca |
Package info | Experimental EBRAINS Docker image (release candidate) |
System | CINECA and JSC / JupyterLab (using Firefox on Ubuntu) |
Related |
Steps to reproduce the issue
import plotly.express as px
f = px.line(x=[_ for _ in range(10)], y =[2* _ for _ in range(10)])
f.show()
# also
import matplotlib.pyplot as plt
plt.plot([_ for _ in range(100)], [_ for _ in range(100)])
plt.show()
Additional information
The generated plots are rendering on EBrains 24.04 JupyterLab but not on the EBrains release candidate. After adding %matplotlib inline
, matplotlib plots were rendered, but no solution for Plotly ones.
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot([_ for _ in range(100)], [_ for _ in range(100)])
plt.show()
things tried and did not work
import plotly.io as pio pio.renderers.default = 'notebook'