python - Suppress hyperlinks from matplotlib sphinx extension -
i using matplotlib.sphinxext.plot_directive
extension sphinx
create plots dynamically in documentation. in 1 of .rst
files have following command
.. plot:: plots/normal_plots.py
this runs matplotlib
code, e.g.
plt.plot(x, y) plt.show()
this creates , embeds plot, right above adds following 4 hyperlinks
(source code, png, hires.png, pdf)
if @ examples on matplotlib examples have these 4 links right beside of plots.
is there anyway suppress hyperlinks? want plots, don't want clutter document these links every time insert plot.
there 2 configuration options this:
plot_html_show_source_link
plot_html_show_formats
set both options false
in conf.py suppress hyperlinks.
reference: http://matplotlib.org/devel/documenting_mpl.html#configuration-options.
Comments
Post a Comment