Documenter.jl: Plot not rendering in `@example` block with Plotly

Created on 14 Dec 2017  路  2Comments  路  Source: JuliaDocs/Documenter.jl

An example block such as:

```@example example_ih
using LazySets, Plots

X = Ball2(ones(2), 0.5)


(some text)

```@example example_ih
plot(X, 1e-3, aspectratio=1)

displays the plot in my local machine. However, it does not show the plot through the Travis CI setup for that package, with this docs/make.jl. Only empty space is rendered.

This full example is interval_hulls.html

Did you have this problem before? Any hint is highly appreciated :)

Question Upstream

Most helpful comment

Thanks for reporting it though -- it might be useful for others in the future. It seems that Plotly does not work because the javascript library it requires does not get loaded properly.

All 2 comments

We got this working by installing GR in the Travis CI build (by default it was using Plotly), via - julia -e 'Pkg.add("Documenter"); Pkg.add("GR")'. Thus for our purposes i consider this issue as fixed.

Thanks for reporting it though -- it might be useful for others in the future. It seems that Plotly does not work because the javascript library it requires does not get loaded properly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haampie picture haampie  路  3Comments

juliohm picture juliohm  路  6Comments

cadojo picture cadojo  路  3Comments

Roger-luo picture Roger-luo  路  3Comments

carlobaldassi picture carlobaldassi  路  5Comments