I am not able to start the kernel after I run the Jupyter notebook command
The error:
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/tornado/web.py”, line 1786, in _execute
result = await result
^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_server/services/sessions/handlers.py”, line 172, in patch
await sm.update_session(session_id, **changes)
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_server/services/sessions/sessionmanager.py”, line 469, in update_session
self.kernel_manager.update_env(kernel_id=kernel_id, env=self.get_kernel_env(path, name))
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_client/multikernelmanager.py”, line 226, in update_env
self._kernels[kernel_id].update_env(env)
TypeError: KernelManager.update_env() takes 1 positional argument but 2 were given
The pip list command output:
Package Version Editable project location
aiohttp 3.8.6
aiosignal 1.3.1
anyio 4.0.0
appnope 0.1.3
argon2-cffi 23.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 2.4.0
async-lru 2.0.4
async-timeout 4.0.3
attrs 23.1.0
Babel 2.13.1
backcall 0.2.0
backports.functools-lru-cache 1.6.5
beautifulsoup4 4.12.2
bleach 6.1.0
boltons 23.0.0
Brotli 1.1.0
certifi 2023.7.22
cffi 1.16.0
charset-normalizer 3.3.1
colorama 0.4.6
comm 0.1.4
conda 23.9.0
conda-content-trust 0.2.0
conda-libmamba-solver 23.9.1
conda-package-handling 2.2.0
conda_package_streaming 0.9.0
contourpy 1.1.1
cryptography 41.0.5
cycler 0.12.1
datasets 2.14.6
debugpy 1.8.0
decorator 5.1.1
defusedxml 0.7.1
diffusers 0.21.4
dill 0.3.7
einops 0.7.0
exceptiongroup 1.1.3
executing 1.2.0
fastcore 1.5.29
fastjsonschema 2.18.1
fastprogress 1.0.3
filelock 3.12.4
fonttools 4.43.1
fqdn 1.5.1
frozenlist 1.4.0
fsspec 2023.10.0
gmpy2 2.1.2
huggingface-hub 0.18.0
idna 3.4
importlib-metadata 6.8.0
ipykernel 6.25.2
ipython 8.16.1
isoduration 20.11.0
jedi 0.19.1
Jinja2 3.1.2
json5 0.9.14
jsonpatch 1.33
jsonpointer 2.4
jsonschema 4.19.1
jsonschema-specifications 2023.7.1
jupyter_client 8.4.0
jupyter_core 5.4.0
jupyter-events 0.8.0
jupyter-lsp 2.2.0
jupyter_server 2.9.0
jupyter_server_terminals 0.4.4
jupyterlab 4.0.7
jupyterlab-pygments 0.2.2
jupyterlab_server 2.25.0
kiwisolver 1.4.5
libmambapy 1.5.2
MarkupSafe 2.1.3
matplotlib 3.8.0
matplotlib-inline 0.1.6
miniai 0.0.1 /Users/huai/python/course22p2
mistune 3.0.2
mpmath 1.3.0
multidict 6.0.4
multiprocess 0.70.15
nbclient 0.8.0
nbconvert 7.9.2
nbformat 5.9.2
nest-asyncio 1.5.8
networkx 3.2
notebook_shim 0.2.3
numpy 1.26.0
overrides 7.4.0
packaging 23.2
pandas 2.1.1
pandocfilters 1.5.0
parso 0.8.3
pexpect 4.8.0
pickleshare 0.7.5
Pillow 10.1.0
pip 23.3.1
platformdirs 3.11.0
pluggy 1.3.0
prometheus-client 0.17.1
prompt-toolkit 3.0.39
psutil 5.9.5
ptyprocess 0.7.0
pure-eval 0.2.2
pyarrow 13.0.0
pycosat 0.6.6
pycparser 2.21
Pygments 2.16.1
pyOpenSSL 23.2.0
pyparsing 3.1.1
PySocks 1.7.1
python-dateutil 2.8.2
python-json-logger 2.0.7
pytz 2023.3.post1
PyYAML 6.0.1
pyzmq 25.1.1
referencing 0.30.2
regex 2023.10.3
requests 2.31.0
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rpds-py 0.10.6
ruamel.yaml 0.17.40
ruamel.yaml.clib 0.2.7
safetensors 0.4.0
Send2Trash 1.8.2
setuptools 68.2.2
six 1.16.0
sniffio 1.3.0
soupsieve 2.5
stack-data 0.6.2
sympy 1.12
terminado 0.17.1
timm 0.9.8
tinycss2 1.2.1
torch 2.0.1
torcheval 0.0.7
torchvision 0.16.0
tornado 6.3.3
tqdm 4.66.1
traitlets 5.11.2
truststore 0.8.0
types-python-dateutil 2.8.19.14
typing_extensions 4.8.0
tzdata 2023.3
uri-template 1.3.0
urllib3 2.0.7
wcwidth 0.2.8
webcolors 1.13
webencodings 0.5.1
websocket-client 1.6.4
wheel 0.41.2
xxhash 3.4.1
yarl 1.9.2
zipp 3.17.0
zstandard 0.21.0
I had no idea how to fix it.