Validate that Julia is using our pre-installed conda

pull/50/head
yuvipanda 2017-07-30 05:16:58 -07:00
rodzic 2bf48a3e2e
commit 4dcda6c32b
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1,6 +1,12 @@
#!/usr/bin/env julia
# We try to plot something, and see if the file saved exists
using PyPlot
# Make sure we are re-using the same conda python
if PyCall.python != "/srv/conda/bin/python"
exit(1)
end
# We try to plot something, and see if the file saved exists
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x))
plot(x, y, color="red", linewidth=2.0, linestyle="--")
savefig("graph.png")