I’m encountering a 403 Forbidden error when trying to use a virtual environment with Jupyter Notebook (version below 7). The error occurs while attempting to configure jupyter_nbextensions_configurator. Here is the error traceback:
[jupyter_nbextensions_configurator] wrote error: 'Forbidden'
Traceback (most recent call last):
File "/Users/username/Dropbox/_data/venv/notebook/lib/python3.9/site-packages/tornado/web.py", line 1769, in _execute
result = await result # type: ignore
File "/Users/username/Dropbox/_data/venv/notebook/lib/python3.9/site-packages/jupyter_server/base/handlers.py", line 751, in prepare
await super().prepare()
File "/Users/username/Dropbox/_data/venv/notebook/lib/python3.9/site-packages/jupyter_server/base/handlers.py", line 643, in prepare
return web.authenticated(lambda _: super().prepare())(self)
File "/Users/username/Dropbox/_data/venv/notebook/lib/python3.9/site-packages/tornado/web.py", line 3289, in wrapper
url = self.get_login_url()
File "/Users/username/Dropbox/_data/venv/notebook/lib/python3.9/site-packages/jupyter_server/base/handlers.py", line 783, in get_login_url
raise web.HTTPError(403)
tornado.web.HTTPError: HTTP 403: Forbidden
[W 20:58:45.699 NotebookApp] 403 GET /nbextensions/nbextensions_configurator/list?_=1724500725496 (127.0.0.1) 2.400000ms referer=http://localhost:8888/tree
I have tried several solutions but have not been able to resolve the issue. I’m using a Jupyter Notebook version below 7 within a virtual environment, and the problem occurs when I attempt to set up a specific nbextension.
If anyone has experienced this issue or has any suggestions on how to fix it, your help would be greatly appreciated. Thank you!