如何为我的IPython / IHaskell / Jupyter Notebook设置自定义CSS? [英] How do I set custom CSS for my IPython/IHaskell/Jupyter Notebook?

查看:432
本文介绍了如何为我的IPython / IHaskell / Jupyter Notebook设置自定义CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会对我的IPython / IHaskell / Jupyter笔记本的外观应用一些简单的更改,例如

I would line to apply a few simple changes to the appearance of my IPython/IHaskell/Jupyter Notebooks, such as

rendered_html :link {
    text-decoration: none;
}

但我无法弄清楚如何做到这一点。我已经尝试了很多我通过搜索找到的解决方案,例如,将CSS放入

but I can't figure out how to do this. I've tried many of the solutions I've found by searching, e.g., placing CSS in

~/.ipython/profile_default/static/css/custom.css

但没有任何影响,我怀疑,鉴于最近更改为Notebook架构,实现此目的的方法已更改,我找到的指令已过时。

but none have any effect, and I suspect that given the recent changes to the Notebook architecture, the method for accomplishing this has changed and that the instructions I'm finding are out of date.

如何为我的IPython设置自定义CSS / IHaskell / Jupyter Notebook?

How do I set custom CSS for my IPython/IHaskell/Jupyter Notebook?

OS X 10.10.4; Xcode 6.4; CLT:6.4.0.0.1; Clang:6.1; Python Python 2.7.10(Homebrew); IHaskell 0.6.4.1,IPython 3.0.0(4.0.0和Jupiter 4.0的答案也很受欢迎,因为我很快就会升级)。

OS X 10.10.4; Xcode 6.4; CLT: 6.4.0.0.1; Clang: 6.1; Python Python 2.7.10 (Homebrew); IHaskell 0.6.4.1, IPython 3.0.0 (answers for 4.0.0 and Jupiter 4.0 also appreciated, as I will upgrade soon).

推荐答案

我认为 custom.css 的路径应为:

~/.ipython/profile_default/static/custom/custom.css

自定义文件夹而不是 css 文件夹。

custom folder instead of css folder.

这篇关于如何为我的IPython / IHaskell / Jupyter Notebook设置自定义CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆