Engineering/Environments
내 개발 환경 세팅
업무외시간
2022. 3. 12. 21:44
1. Jupyter Lab
- 데이터 EDA, visualization, prototyping, documentation 및 코드 공유는 Jupyter
- main은 .ipynb, module은 .py로 작성했을 때 가장 깔끔하다고 생각함
- 분산 처리가 필요한 경우에는 Jupyter를 사용할 수 없는 경우가 있음
- 요새 많은 extension을 지원하고는 있지만 web browser라 그런지 버벅거리는 경우가 있음
- VSCode에서 Jupyter를 사용하면 위 현상이 없을 수도?
2. VSCode
- 내 local PC에서 remote server의 Docker container로 연결함
- PEP8 coding convention을 위해 autoformatter로 Black 사용 중 (line_length=150)
- autodocstring으로 [2]를 사용 중, 개인적으로는 scikit-learn docstring이 좋은데 여기서는 지원하지 않음, 추후 자동 documentation을 생각한다면 sphinx를 써야하는데 스타일이 별로...
[1] Black - https://github.com/psf/black
[2] autoDocstring - https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring