Not able to launch Jupyter notebbook


Can somebody help me as i am not able to launch Jupyter notebook.

Getting below error

Traceback (most recent call last):
File “C:\Users\Lenovo\anaconda3\Scripts\”, line 6, in
from notebook.notebookapp import main
File “C:\Users\Lenovo\anaconda3\lib\site-packages\notebook\”, line 44, in
from jinja2 import Environment, FileSystemLoader
File “C:\Users\Lenovo\anaconda3\lib\site-packages\”, line 12, in
from .environment import Environment
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2\”, line 25, in
from .defaults import BLOCK_END_STRING
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2\”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2\”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\

1 Like


Thank you for your contribution to the anaconda community.

Most likely it’s because you haven’t read the error code, but it’s a very simple error.

It’s because markupsafe isn’t imported.

ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\

To solve this cause, please execute the following command at the command prompt.

conda install -c anaconda markupsafe

Best regards.