3 ms·
I don't know how well it works, but Julia does let you use python libraries. @pyimport matplotlib.pyplot as plt x = linspace(0,2*pi,1000); y = sin(3*x
by vostok 10y ago
I don't know how well it works, but Julia does let you use python libraries.
@pyimport matplotlib.pyplot as plt
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x));
plt.plot(x, y, color="red", linewidth=2.0, linestyle="--")
plt.show()
https://github.com/JuliaPy/PyCall.jl https://github.com/JuliaPy/PyCall.jl
- ViralBShah 10y agoWorks really well and a lot of python scientific software is part of a typical julia install.
- vostok 10y agoGlad to hear that. Will it be possible to overload . in the future?
- StefanKarpinski 9y agoThere's been extensive discussion of that and yes, it may well happen [1]. The biggest concern at this point is how to avoid having people abuse such a feature by trying to fake out class-based o.o. code in Julia in a way that will look right but work poorly. [1] https://github.com/JuliaLang/julia/issues/1974 https://github.com/JuliaLang/julia/issues/1974