brunch

You can make anything
by writing

C.S.Lewis

by 유윤식 Dec 14. 2022

Python : Jupyter Black Fmt

#black in jupyter, # CTRL + B

Jupyter Notebook with Black


자동 포맷터 기능 추가하기.


Step 1.

pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions


Step 2.

sudo jupyter nbextension install https://github.com/drillan/jupyter-black/archive/master.zip


Step 3.

jupyter nbextension enable jupyter-black-master/jupyter-black


Step 4.

jupyter notebook --allow-root


그러면,

이와같은 코드를,

단축키 CTRL + B

keyword
작가의 이전글 Python : @Wrap
작품 선택
키워드 선택 0 / 3 0
댓글여부
afliean
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari