Coding/Python Matlab

Visual Studio Code Jupyter Notebook 출력 폰트조절

smores 2023. 1. 31. 20:14

시작부분에 다음의 코드를 넣고 한번 실행

 

from IPython.core.display import HTML
HTML(r"""
<style>
    * {
        #color: red;
        #font-family: ‘Cascadia Code PL’;#,‘Courier New’, Courier, monospace;
        font-family: ‘Courier New’, Courier, monospace;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }
    .output-plaintext, .output-stream, .output {
        font-family: ‘Courier New’, Courier, monospace; # Any monospaced font should work
        line-height: 1.3 !important;
        font-size: 12px !important;
    }
</style>
""")