I get kernel error in the top right corner in my jupytor notebook anaconda

I get kernel error in the top right corner in my jupytor notebook anaconda.and hence i’m not able to run my code

Hi @Shiwam, perhaps your installation of jupyter had some errors. However, there might be other reasons too. Have you used your jupyter notebook earlier? Also check your terminal for logs incase you are starting your notebook from terminal and share the logs for reference.

JUPYTER WAS WORKING FINE TILL YESTERDAY.BUT IT IS SHOWING ERROR FROM TODAY

Traceback (most recent call last):
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\web.py”, line 1699, in _execute
result = await result
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py”, line 72, in post
type=mtype))
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 88, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 101, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\tornado\gen.py”, line 209, in wrapper
yielded = next(result)
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py”, line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py”, line 110, in start_kernel
km.start_kernel(**kwargs)
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\jupyter_client\manager.py”, line 240, in start_kernel
self.write_connection_file()
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\jupyter_client\connect.py”, line 547, in write_connection_file
kernel_name=self.kernel_name
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\jupyter_client\connect.py”, line 212, in write_connection_file
with secure_write(fname) as f:
File “C:\Users\SHIWAM\Anaconda3\lib\contextlib.py”, line 112, in enter
return next(self.gen)
File “C:\Users\SHIWAM\Anaconda3\lib\site-packages\jupyter_client\connect.py”, line 102, in secure_write
with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: ‘C:\Users\SHIWAM\AppData\Roaming\jupyter\runtime\kernel-ed5964af-1590-4ff5-aac2-28dcfdb52333.json’

do check for the file permission. In terminal the file permissions are displayed at the left as r-x/—/--- when you list the file using ls.You may even right click the file and check for its permission in properties. Hope this helps!!