Please make sure that Jupyter lab has been installed, open the system terminal, and enter the following command to install the plugin.
xxxxxxxxxx
sudo jupyter labextension install @jupyter-widgets/jupyterlab-manager
sudo jupyter labextension install @jupyterlab/statusbar
xxxxxxxxxx
jupyter lab
xxxxxxxxxx
from __future__ import print_function
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets
def f(x):
return x
interact(f, x=10);
Shift+Enter