Kernel error,notebook not startt

Traceback (most recent call last):
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\web.py”, line 1703, in _execute
result = await result
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\LENOVO\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py”, line 69, in post
model = yield maybe_future(
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\LENOVO\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\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\LENOVO\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 100, in start_kernel_for_session
kernel_id = yield maybe_future(
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 209, in wrapper
yielded = next(result)
File “C:\Users\LENOVO\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py”, line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\multikernelmanager.py”, line 185, in start_kernel
km.start_kernel(**kwargs)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\manager.py”, line 309, in start_kernel
kernel_cmd, kw = self.pre_start_kernel(**kw)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\manager.py”, line 256, in pre_start_kernel
self.write_connection_file()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\connect.py”, line 468, in write_connection_file
self.connection_file, cfg = write_connection_file(self.connection_file,
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\connect.py”, line 138, in write_connection_file
with secure_write(fname) as f:
File “C:\Users\LENOVO\anaconda3\lib\contextlib.py”, line 113, in enter
return next(self.gen)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_core\paths.py”, line 435, in secure_write
win32_restrict_file_to_user(fname)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_core\paths.py”, line 361, in win32_restrict_file_to_user
import win32api
ImportError: DLL load failed while importing win32api: %1 is not a valid Win32 application.

you need to stop the server that is running on localhost:8888/ by pressing Ctrl + Z at the command then activate the conda environment again, after that launch jupyter notebook

thanks for the reply but it’s not working
pls anyone give a solution as soon as possible

[I 19:21:27.770 NotebookApp] JupyterLab extension loaded from C:\Users\LENOVO\anaconda3\lib\site-packages\jupyterlab
[I 19:21:27.770 NotebookApp] JupyterLab application directory is C:\Users\LENOVO\anaconda3\share\jupyter\lab
[I 19:21:28.187 NotebookApp] Serving notebooks from local directory: C:\Users\LENOVO
[I 19:21:28.188 NotebookApp] The Jupyter Notebook is running at:
[I 19:21:28.188 NotebookApp] http://localhost:8888/?token=a398705fdf331d45f70c19d27fd135d379e598442a4235ee
[I 19:21:28.188 NotebookApp] or http://127.0.0.1:8888/?token=a398705fdf331d45f70c19d27fd135d379e598442a4235ee
[I 19:21:28.188 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:21:28.345 NotebookApp]

To access the notebook, open this file in a browser:
file:///C:/Users/LENOVO/AppData/Roaming/jupyter/runtime/nbserver-3808-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=a398705fdf331d45f70c19d27fd135d379e598442a4235ee
or http://127.0.0.1:8888/?token=a398705fdf331d45f70c19d27fd135d379e598442a4235ee
[I 19:21:35.612 NotebookApp] Creating new notebook in
[E 19:21:37.630 NotebookApp] Uncaught exception POST /api/sessions (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8888’, method=‘POST’, uri=’/api/sessions’, version=‘HTTP/1.1’, remote_ip=’::1’)
Traceback (most recent call last):
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\web.py”, line 1703, in _execute
result = await result
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\LENOVO\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py”, line 69, in post
model = yield maybe_future(
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\LENOVO\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\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\LENOVO\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 100, in start_kernel_for_session
kernel_id = yield maybe_future(
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 209, in wrapper
yielded = next(result)
File “C:\Users\LENOVO\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py”, line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\multikernelmanager.py”, line 185, in start_kernel
km.start_kernel(**kwargs)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\manager.py”, line 309, in start_kernel
kernel_cmd, kw = self.pre_start_kernel(**kw)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\manager.py”, line 256, in pre_start_kernel
self.write_connection_file()
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\connect.py”, line 468, in write_connection_file
self.connection_file, cfg = write_connection_file(self.connection_file,
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_client\connect.py”, line 138, in write_connection_file
with secure_write(fname) as f:
File “C:\Users\LENOVO\anaconda3\lib\contextlib.py”, line 113, in enter
return next(self.gen)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_core\paths.py”, line 435, in secure_write
win32_restrict_file_to_user(fname)
File “C:\Users\LENOVO\AppData\Roaming\Python\Python38\site-packages\jupyter_core\paths.py”, line 361, in win32_restrict_file_to_user
import win32api
ImportError: DLL load failed while importing win32api: %1 is not a valid Win32 application.
[W 19:21:37.667 NotebookApp] Unhandled error
[E 19:21:37.667 NotebookApp] {
“Host”: “localhost:8888”,
“Connection”: “keep-alive”,
“Content-Length”: “92”,
“Accept”: “application/json, text/javascript, /; q=0.01”,
“X-Requested-With”: “XMLHttpRequest”,
“X-Xsrftoken”: “2|01de1ded|2d0fe3efd70da7e7c4dec07d027d2d99|1598546227”,
“User-Agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36”,
“Content-Type”: “application/json”,
“Origin”: “http://localhost:8888”,
“Sec-Fetch-Site”: “same-origin”,
“Sec-Fetch-Mode”: “cors”,
“Sec-Fetch-Dest”: “empty”,
“Referer”: “http://localhost:8888/notebooks/Untitled4.ipynb?kernel_name=python3”,
“Accept-Encoding”: “gzip, deflate, br”,
“Accept-Language”: “en-US,en;q=0.9”,
“Cookie”: "_xsrf=2|01de1ded|2d0fe3efd70da7e7c4dec07d027d2d99|1598546227; username-localhost-8888=“2|1:0|10:1599313889|23:username-localhost-8888|44:ODEwMzBlMmNlYzUzNDIwYjhhZGIzNzgwMWM5Y2IyYjU=|8e870ff8de2af77d721c5de5e9d73ac18a38fedcee00ab5187e244f8f9d9ac35"”
}
[E 19:21:37.668 NotebookApp] 500 POST /api/sessions (::1) 131.92ms referer=http://localhost:8888/notebooks/Untitled4.ipynb?kernel_name=python3