Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot not rendering in @example block with Plotly #607

Closed
mforets opened this issue Dec 14, 2017 · 2 comments
Closed

Plot not rendering in @example block with Plotly #607

mforets opened this issue Dec 14, 2017 · 2 comments

Comments

@mforets
Copy link
Contributor

mforets commented Dec 14, 2017

An example block such as:

using LazySets, Plots

X = Ball2(ones(2), 0.5)

(some text)

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 :)

@mforets
Copy link
Contributor Author

mforets commented Dec 15, 2017

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.

@mortenpi
Copy link
Member

mortenpi commented Dec 26, 2017

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.

@mortenpi mortenpi changed the title Plot not rendering in @example block with Travis CI Plot not rendering in @example block with Plotly Dec 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants