Not displaying plotly figure when using virtual environment

When using plotly in a virtual environment, the output does show a white space instead of a figure:

I noticed that once I also install plotly in the default JupyterLab python environment, the plotly figures do show correctly.

Is this a bug or am I missing something?