brunch

Python : Jupyter Black Fmt

#black in jupyter, # CTRL + B

by 유윤식

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


그러면,

스크린샷 2022-12-14 오후 9.16.16.png

이와같은 코드를,

스크린샷 2022-12-14 오후 9.16.32.png

단축키 CTRL + B

keyword
작가의 이전글Python : @Wrap