Help needed on Jupyter notebook launching problem

I have unfortunately terminate the terminal when a package is loading. after that I could not launched the Jupiter lab. the following error is showing when I am trying to launch

Traceback (most recent call last):
File “/opt/anaconda3/bin/jupyter-notebook”, line 5, in
from notebook.notebookapp import main
File “/opt/anaconda3/lib/python3.9/site-packages/notebook/notebookapp.py”, line 43, in
from jinja2 import Environment, FileSystemLoader
File “/opt/anaconda3/lib/python3.9/site-packages/jinja2/init.py”, line 12, in
from .environment import Environment
File “/opt/anaconda3/lib/python3.9/site-packages/jinja2/environment.py”, line 25, in
from .defaults import BLOCK_END_STRING
File “/opt/anaconda3/lib/python3.9/site-packages/jinja2/defaults.py”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “/opt/anaconda3/lib/python3.9/site-packages/jinja2/filters.py”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (/opt/anaconda3/lib/python3.9/site-packages/markupsafe/init.py)

help me please

Not following what you mean by “when a package is loading”? You mean installing a package?

If so, maybe…
Tried pip install in your terminal markupsafe and seen if the error report changes? You may be chasing the ‘next issue’ if it does change and maybe a reinstallation of JupyterLab via Anaconda is easier?

Here and here have some suggestions but those were for Python 3.6, I think.