kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #50 from yuvipanda/julia-verify
Validate that Julia is using our pre-installed condapull/51/head
commit
f444ffe8b6
|
@ -380,7 +380,7 @@ class BuildPack(LoggingConfigurable):
|
|||
src_path = os.path.join(os.path.dirname(__file__), 'files', *src_parts)
|
||||
tar.add(src_path, src, filter=_filter_tar)
|
||||
|
||||
tar.add('.', 'src/')
|
||||
tar.add('.', 'src/', filter=_filter_tar)
|
||||
|
||||
tar.close()
|
||||
tarf.seek(0)
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
#!/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.libpython != "/srv/conda/lib/libpython3.6m"
|
||||
println("Not re-using conda python! Using " * PyCall.libpython * " instead")
|
||||
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")
|
||||
|
|
Ładowanie…
Reference in New Issue