Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Plots doesn't work properly

Hi there, I’m using Ubuntu 20.04 and julia 1.5.2. I’m trying to use Plots. When typing using Plots the julia terminal raises no complaints. Then I tried plot(1:3, 1:3) and got the message...

View Article


Why does delete!() work with sets, but not deleteat!()

If I had the following set: numbers = Set([1,2,3,4,5]) and I do: delete!(3) It will remove the number 3 from the Set, but when I use deleteat!(3) it throws an error, why? 6 posts - 3 participants Read...

View Article


Image may be NSFW.
Clik here to view.

Simple plotting, I am getting *could not load library "libGR.so"*

Hello Julia experts, Please help me get a plot. I am almost done with my first assignment using Julia and got to a stage where I need at least a plot. My code for the plotting is: x =...

View Article

"for" loop, collect()

Hello, I have been using “for” loop to calculate Internal Rate of Return (irr) for a range of investment options (t below represents option t in array of data) and attempted the codes below: for t in...

View Article

`code_warntype` understanding

Here is a code that puzzles me. How can it be? @code_warntype model(2.1,0.3,0.3; pars=[1,1,1.0]) # fine, body::Complex{Float64} # x(a,b,c) = model(a,b,c; pars=[1,1,1.0]) @code_warntype x(2.1,0.3,0.3)...

View Article


Odd result with negative exponents of 10 in Julia 1.5.2

Hi, I’m relatively new to Julia and just installed version 1.5.2. Can someone explain to me how exponentiation works in this language? This might be incredibly basic, but negative exponents of 10 that...

View Article

Help in installing Turing.jl

I have been trying to install Turing.jl I installed julia using this blog. I have been using other packages without any issues I am getting the below error when I use using Turing `┌ Info:...

View Article

Juno.@enter/run myfunction() equivalent in vs code?

Is this possible? All I’ve managed to do is set a break point at the line containing the call to myfunction() and re-run everything, then step in… Obviously the issue is that this could take a long...

View Article


Strategies for reducing number of queries to a DB

This might not be a Julia question per se, but I didn’t know whether or not it should be here or Off-Topic. Say I am writing a package for my company’s corporate reporting, and I have a large table in...

View Article


WebIO error and confusion about Jupyter installation

I am a new user of Julia (v1.5.0) on JupyterLab (v2.2.8). I installed Jupyter via pip (but somehow there also seems to be an installation from conda). Recently I encountered this “WebIO not detected”...

View Article

Representation of ODEs with mix of Matrix and Vector Components

Hi, I’m currently using DifferentialEquations.jl to solve some ODEs arising in Chemical Reaction Networks, in particular the Linear Noise Approximation to the Chemical Langevin Equation. In my...

View Article

Explicit constructor for array of arrays?

I want to create an array of arrays explicitly. Initially I thought that this would work: julia> x = [ [1] [1,2] [] [3,4,5] ] but this does not work (I was expecting 2×2 Array{Any,2}: [1] [1, 2]...

View Article

Write decimal as closest "reasonable" fraction

Can someone recommend some reading or direct tips on writing long/complicated math expressions in Julia code? What to do if something is too long to fit on one line? What to do if something has too...

View Article


Phase part for bode diagram

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Antivirus hit during package install

*tl;dr : * I get an antivirus hit when I install the ZMQ package. Unsure what it means. It is of no consequence to me as of now. Hi! Unsure where to post this, but I just wanted to raise this...

View Article


Module import vs using

I’m confused by this table in the docs. The last column is identical for rows 1,3 (import MyModule and using MyModule), which seems inconsistent with the previous paragraph: import also differs from...

View Article

Image may be NSFW.
Clik here to view.

Plots -> PgfPlotsX: Inserting a legend title?

Hi! I am using Plots with the pgfplotsx() option. Is it possible to easily add a legend title using this package? Something like this: (Not my picture found here...

View Article


Custom versus Package function names

I think I am having issues with my custom function grid conflicting with the Plots package grid . How can I specify (is “qualify” the better term?) that I want to use my own? To specify Plots’...

View Article

Typed args in function that does a ccall

If I have a non-overloaded function such as loadimage(filename) = @ccall LoadImage(filename::Cstring)::Image Is there any point in changing it to loadimage(filename::AbstractString) = @ccall...

View Article

Help me! Julia’s v1.5.2-1 version

I’m using Julia’s v1.5.2-1 version and I’m trying to plot a graphic. But when I use the command Pkg.add(“Plots”) a error message appears… Look…: julia> Pkg.add(“Plots”) Updating registry at...

View Article
Browsing all 2795 articles
Browse latest View live