반응형
Python/Jupyter Notebook
-
주피터 노트북에 PEP08(파이썬 코드 스타일 가이드) 적용Python/Jupyter Notebook 2021. 5. 25. 04:07
flake8, pycodestyle, pycodestyle_magic 설치 pip install flake8 pip install pycodestyle pip install pycodestyle_magic pycodestyle_magic 로딩 아래 코드로 pycodestyle_magic 을 로딩합니다. %load_ext pycodestyle_magic pycodestyle 사용 코드 작성 전 '%pycodestyle_on', '%flake8_on' 둘 중 하나를 실행합니다. %pycodestyle_on %flake8_on 끌 때는 '%pycodestyle_off' 또는 '%flake8_off' 입니다. 테스트 지적받은 것을 모두 수정했지만 W391 에러는 계속 남아 있습니다. (노트북의 구조적인 부분으로..