Fix restart and run all for text files with a code console.
Fix restart and run all for text files with a code console.

jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab