I installed plot.ly using conda and tried to use it in offline mode on Jupyterlab:
from plotly.offline import init_notebook_mode
init_notebook_mode(connected=True)
The Firefox developer console displays the following error after those statements:
ReferenceError: requirejs is not defined
I tried to manually put require.js into the folder with the notebook and into ...\anaconda3\pkgs\jupyter\nbextensions, it didn't work.
How do I solve this issue? How do I install require.js properly?
Versions:
- Python 3.6.6
 - Plotly 3.4.2
 - Jupyterlab 0.35.4
 - Windows 10
 - Firefox 64.0.2
 - nodejs 10.15.0