본문 바로가기
Programming/IDE

[Jupyter] TypeError : 'stacklevel'

by Finn# 2023. 11. 7.
728x90

오류가 발생한 경위

 과거 Jupyter notebook 확장 플러그인 중 nbtextensions를 설치하다가 갑자기 jupyter notebook이 먹통이 되어버린 적이 있었다. 이때 Jupyter notebook을 삭제하고 재실행해봐도 여전히 오류가 발생했었는데 이를 해결하게 되어서 관련 솔루션을 공유하고자한다.

 


nbextensions 설치 후 발생한 오류 해결

Traceback (most recent call last):
...
ModuleNotFoundError: No module named 'jupyter_server.contents'


Traceback (most recent call last):
...
TypeError: warn() missing 1 required keyword-only argument: 'stacklevel'

 

Solution 코드 : 

pip install --force-reinstall -v "traitlets<5.10"

- Reference :  https://github.com/jupyterhub/jupyterhub/issues/4418

 


인스타 주소 🎗

https://www.instagram.com/f.inn_sharp/

반응형