我想为 Ipython 笔记本使用另一个主题,所以我遵循这个 instructions问题是我在 OSX 中,我没有 wget,我安装了自制软件。有人可以帮我将 ipython 笔记本设置为深色主题吗?我试过这个:
brew /Users/user/.ipython/profile_notebooks/static/custom/custom.css
https://raw.githubusercontent.com/nsonnad/base16-ipython-notebook/master/base16-ocean-dark.css
请您参考如下方法:
您可以使用 curl 或手动下载主题。我已经为以下两个选项提供了步骤。
使用以下命令创建自定义配置文件:
ipython profile create ocean
使用以下命令将默认样式表 custom.css 的内容替换为所需主题的内容
使用 curl :
curl -o `ipython locate profile ocean`/static/custom/custom.css https://raw.githubusercontent.com/nsonnad/base16-ipython-notebook/master/base16-ocean-dark.css
通过指定自定义配置文件启动 IPython notebook,例如
ipython notebook --profile=ocean
替代方案:
如果您无法使用 curl 下载,您可以简单地下载 base16-ocean-dark.css 并替换 custom.css 在您创建的配置文件的自定义目录中。
定位配置文件目录:
ipython locate profile ocean
转到其static/custom 目录并将custom.css 的内容替换为下载的css 文件的内容。 通过指定自定义配置文件启动 IPython notebook,如上所示。
