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

Learning Julia, Visual Studio Code Shortcut Keys, Key Bindings

I am working on learning these shortcut keys using Quizlet.com, which is like flashcards but better. Here is what I have put together so far. You can use these as well. Please make suggestions, and I...

View Article


From Julia version 1.0 to 1.5

I downloaded Julia version 1.5.3 after having used version1.0.4 via Atom till now. How can I start using 1.5.3 with Atom? Or is a different shell more suitable? 3 posts - 3 participants Read full topic

View Article


Plotting variable number of subplots in a plot

Ho do I plot a variable number of subplots in a single common plot. For example, the following simple code using Plots; plotlyjs(); N = 3; Q = Array{Plots.Plot, 1}(undef, N); for n in 1:N Q[n] =...

View Article

How to "source" a string?

I have 2 functions that are highly similar, except that there’s a block of codes appears only in one of the functions. For example, something like: function fun() XXXXXX XXXXXX YYYYYY YYYYYY end...

View Article

Why [1, 2, 3] is not a Vector{Number}?

I don’t understand this: julia> isa([1,2,3], Vector{Number}) false Each 1, 2, or 3 is certainly a Number: julia> isa(1, Number) true It is illogical to say [1, 2, 3] is not Vector{Number} when...

View Article


Initialize buffer for ccall

I am using the Raspberry PI running Raspbian and Julia to interface with the MCC 172 DSP board. The MCC 172 has a complete c library. I am working on making those calls accessible to Julia using the...

View Article

Unexpected calculation difference

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

View Article

Broadcast over splatted tuples

I can’t figure out the syntax for doing broadcasting and splatting at the same time Example: func(x1, x2) = x1+x2 v = collect(zip(rand(100), rand(100))); I have function func which takes 2 arguments,...

View Article


Is there a `with` operator or usage pattern?

In Visual Basic, the With scope operator lets you work with the attributes of a given object without having to repeat the object’s name. Perhaps something like… julia> subtotal = (price=12.99,...

View Article


HTTP request error

I m using HTTP package version 0.7.1 in Julia 1.5.3 and I get this error when executing HTTP.get or HTTP.request methods ERROR: type Regex has no field match_data Stacktrace: [1] getproperty(::Regex,...

View Article

Blank repl after sleep mode in Atom juno

I’ve recently installed Julia in the new computer and I am facing some new problems. I am using Atom and Juno and I often leave Atom open in the computer sleep mode, then after waking up the repl is...

View Article

Image may be NSFW.
Clik here to view.

Syntax error: 'invalid interpolation syntax' when using include()

Hi Guys, I’m new-ish to Julia and so far things have been great, but this syntax error has really stumped me. Here’s the background. I have several files called _Aa.jl, _Bb.jl, and so on. Each one...

View Article

Nearest Neighbour Interpolation with Interpolations.jl

I’ve been using the Interpolations.jl package quite happily for a while now. I almost exclusively make use of the convienience constructors for both linear and cubic (mostly 1d) interpolation. I’ve...

View Article


[SOLVED] Nothing returned in the Zygote derivative

In my mind the following definitions are equivalent: function test_working(x) return max(x - 1.0, 0.0) end function test_not_working(x) if x > 1.0 return x - 1.0 else return 0.0 end end And indeed...

View Article

How to check if a condition is true for only one element in an array

I can do the following julia> array = [1,3,4,7,9]; julia> All_numbers_are_positive = all(x->x>0,array) true julia> At_least_one_number_is_even = any(iseven,array) true But how do I do...

View Article


Improvement for slicing 2d arrays?

Consider the following 2d array: X = Array{Float64, 2}(undef, 4, 2) X[:,1] = [1,NaN,3,4] X[:,2] = [2,3,4,5] I want to filter out all rows which include at least one NaN. This could be done by...

View Article

Array element assignment not working inside loop

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

View Article


How Does a beginner start with making a website in Julia

Hi, I am a Maths student and the only languages I know are C and Julia and I want to build a website of my own in Julia. and i have no prior experience with web development. How does one start with it...

View Article

Can we call a julia function %%?

I was trying to name a function as %% but I did not succeed. I got: ERROR: LoadError: syntax: "%" is not a unary operator Can we name a function in julia as %%? 8 posts - 6 participants Read full topic

View Article

Compat bounds for "extras"

Is there a way to add compat bounds for packages required only by the tests? I seem to remember a discussion about this a while back but can’t put my hand on it anymore. Edit: ah it might be Proposal...

View Article
Browsing all 2795 articles
Browse latest View live


Latest Images