> ## Content Index
> Fetch the complete content index at: https://bongholee.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# VSCODE 다크모드에서 pyLDA Visualization시 배경색 변경
- URL: https://bongholee.com/vscode-dakeumodeueseo-pylda-visualizationsi-baegyeongsaeg-byeongyeong/
- Published: 2022-04-22T14:37:43.000Z
- Updated: 2022-04-22T14:37:43.000Z
- Author: Bongho Lee
- Tags: Python, programming, Data, #Import 2026-11-22 06:32

Python Jupyter Notebook을 웹에서 실행했을 때는 뒤 배경이 다음과 같이 하얀색으로 나와서 볼 수가 있다.

![](https://bongholee.com/content/images/2022/03/image-1.png)

그런데 vscode에서 다크모드 상황에서 실행하면 아래와 비슷한 형태로 나오게 되면시각화 이후에 제대로 볼 수가 없는 상황이 발생한다.

![](https://bongholee.com/content/images/2022/03/image-2.png)

이 때는 lib/python3.8/site-packages/pyLDAvis 디렉토리에 존재하는 \_display.py의 일부를 수정해줘야 한다. 현재 버전 기준, 27,42, 70번째 줄에 있는 다음 부분을,

다음과 같이 수정해준다. 보니까 작년 11월에 PR을 요청했는데, 아직 반영이 되지 않은 것 같다.

#### **Reference**

- [Fix background color in Notebooks with dark themes #222](https://github.com/bmabey/pyLDAvis/pull/222/commits/f9401a3dbcbf40d923a2f8d81539cca965ca369a?ref=bongholee.com)