Fix JupyterLab 2 Error Using ipywidgets
cd /tmp
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
or
curl -sL https://deb.nodesource.com/setup_10.x | bash -
curl -sL https://deb.nodesource.com/setup_12.x | bash -
curl -sL https://deb.nodesource.com/setup_14.x | bash -
curl -sL https://deb.nodesource.com/setup_16.x | bash -
And restart Kernel