Fix for JupyterLab 4.3.4. Edit the file:
$HOME/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
and change
"codeCellConfig": { "lineNumbers": false, },
to true. Then restart JupyterLab.
true