How to install plotly on k8s jupyterhub?

My jupyterhub environment looks like:

$ jupyter --version
Selected Jupyter core packages...
IPython          : 8.11.0
ipykernel        : 6.22.0
ipywidgets       : 8.0.6
jupyter_client   : 8.1.0
jupyter_core     : 5.3.0
jupyter_server   : 2.5.0
jupyterlab       : 3.6.2
nbclient         : 0.7.2
nbconvert        : 7.2.10
nbformat         : 5.8.0
notebook         : 6.5.3
qtconsole        : not installed
traitlets        : 5.9.0

and I am going to install plotly with conda install plotly.
and I found it cannot handle package dependencies correctly.

first, it tells me it needs pandas and nbformat to work.
then it pops up Uncaught ReferenceError: require is not defined Error and Failed to load model class 'FigureModel' from module 'jupyterlab-plotly' Error from my browser which still cannot plot figures out. which I found I may need to install jupyterlab-plotly labextension.

Is there a document or some materials for installing plotly on k8s jupyterhub correctly. great thanks.