\usepackage{xcolor}
...
\makeatletter
\definecolor{shadecolor}{RGB}{220,220,220}
...
\renewcommand{\py@noticestart@note}{\py@lightbox\begin{snugshade*}}
\renewcommand{\py@noticeend@note}{\end{snugshade*}\py@endlightbox}
...
\makeatother
Adding the above to your preamble will enable "notes"
I add this commands to my conf.py preamble,But it does not work. It can not
compile. I use restructuredtext and sphinx in Ubuntu environment
在 2016年10月12日星期三 UTC+8上午7:34:18,Peter Burdine写道:
>
> You will need to add some Latex commands to your preamble. For example,
> the following will make