Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Replit.com PyPlot or Plots (Julia 1.3) vs. Plots in Pluto (Julia 1.6)

$
0
0

Greetings;
I am a high school teacher trying to get students to use Julia 1.3 on Replit.com. Replit.com only has Julia 1.3, not 1.5 or newer.
As shown in the attachment, the plot code works in Julia 1.6 using Pluto.
The same code does not work in Replit.com. 1) provides a blank prompt with no errors 2) takes over a minute to finish compiling (any suggestions to speed up plot, when it does work…


begin
 import Pkg
 Pkg.activate(mktempdir())
end
# using Pkg;
begin
  Pkg.add.(["Plots","Random","PyPlot"]);
  using Plots,PyPlot,Random
  # using GR
 # using PlotlyBase
end
#plotly()  # or gr()
#pyplot()
begin
 x = 1:6;
 y = 1:6
 z = rand(1:10, 1000);
 #Plots.histogram(y,50) 
 #PyPlot.plot(1:10,z)  # did not work??
 Plots.plot(x,y)
end

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles