简体   繁体   中英

How can I change code background color when using nbconvert?

When converting Jupyter Notebook to html I am trying to change code background color using a Jinja template

{% block input_group %}
    <div style="background-color:red;">
        {{ super() }}
    </div>
{% endblock input_group %}

When I run nbconvert from comand line, code background color keeps unchanged

您必须定义header块。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM