I haven’t seen this come up in a while. Had things been working and now they aren’t? Any old software involved by any chance? What is your system and version?
We need to determine if this is a new issue or the one that came up quite a bit a while back.
I think if you had looked into troubleshooting this some on your own, we may be further along already to knowing if this is new or not. (I’d at least know some of the answers to the questions I posed above from your original post.) And so please read Getting good answers to your questions to start to get a sense how to tackle these things. Under the section ‘Before posting your question try’, there is a good list to work though. If you had followed those steps you most likely would have found this post ‘I am getting this launch error every time I am trying to open Jupyter Notebook’. In what you’d find in a link there, it suggests, after you close your Jupyter and browser and current terminal, running in your terminal:
pip install markupsafe==2.0.1 --force-reinstall
After that close that terminal window and then try opening Jupyter Notebook again. See if that helps.
If it doesn’t then make a reply adding what happens, and provide the answers to some of my questions.
But maybe you’d be better off at this point with something that is more ‘off the shelf’
An alternative, and perhaps a better way to go (meaning maybe you want to start here and bypass what looks to be a bit of a mess) follows …
I suspect for some reason you may be on a Mac and not be aware that installing Jupyter on a Mac these days can be a challenge and there are a myriad ways to go about it. There are now a couple of pre-packaged software sets you can install that will handle things better for you, then you doing a lot of steps yourself.
-
One perhaps easier option would be to install the Anaconda Distribution, which comes with Jupyter working already when you launch if from the Anaconda Navigator. However, as this is a package management system you are opting into, you want to read the Getting Started material and understand how they want to manage your environments for using with Jupyter. And you want to always from then on stick with using Anaconda/conda to install things. Only fall back to
pip
when there is no conda recipe. These two things are important to keep your environments robust and portable. And because that requires a bit more effort, others have cautioned me against suggesting this path. On the plus side, if you are willing to do that you get a set up Python and Jupyter, as well as other parts in a typical data science stack, all set up and working well together. -
Or instead of that you can install JupyterLab Desktop, which is billed as, " the quickest and easiest way to get started with Jupyter notebooks on your personal computer." It is less of challenge the the Anaconda Distribution option, but you’ll still want to read all the material at that link to understand how the developers expect you to work with it on your projects.