Change font & background color in ipython notebook

后端 未结 1 1752
北海茫月
北海茫月 2021-01-06 06:30

How to change the C:\\Python32\\Lib\\site-packages\\IPython\\frontend\\html\\notebook\\static\\css file in the iPython notebook directory without destroying the source file?

相关标签:
1条回答
  • 2021-01-06 06:40

    You can use a file named custom.css in <ipython profile dir>/profile_<profilename>/static/custom/custom.css that will be applied to your notebook. Browser caching might be aggressive, you might need to force refresh a few times.

    Coloring of words is done through codemirror, which supports theming. Changing this will be slightly more involved and might require some JavaScript injection in <ipython profile dir>/profile_<profilename>/static/custom/custom.js.

    I wrote a more detailed, but outdated, explanation which can probably be adapted to new versions.

    0 讨论(0)
提交回复
热议问题