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

Image may be NSFW.
Clik here to view.

Change color of circle with trackbars

@asamanta1920 wrote: I am trying to draw a circle and then change the color of the circle based on the values from the trackbars. So far, I can draw the circle(picture of the code is attached). I can...

View Article


Global var Meta.parse in loop no vars in Main

@programista wrote: Where are my vars p1 to p10 julia> for i=1:10 var_name=Meta.parse("p$i") global var_name println(var_name) end p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 julia> varinfo() name size...

View Article


How to create a function in Julia that can accept an array or a scalar as...

@josimar wrote: Hi, when creating new functions in Julia, do I need to specify the input type of the arguments ? Is this required for speed or only for organization ? For example, I would like to...

View Article

File name depending on the index

@angeloaliano1 wrote: Dear all, I need to save an archive with a variable X by using the package FileIO and JLD2. The variable X is a loop that depend on index i. The command to save this variable is:...

View Article

Problem in attaching array type in struct

@Lee wrote: Does anyone know why this stretch is giving error? struct lis it = zeros(Int8, 10) beg::Int8 en::Int8 tot::Int8 end Thanks! Posts: 2 Participants: 2 Read full topic

View Article


@ in function declartion

@donkeysaddle wrote: Hi, I am currently going through the DifferentialEquations documentation and am trying to run an example. Unfortunately, I am failing to achieve liftoff: f = @ode_def_nohes...

View Article

Join Dataframes on different IDs within date range

@mp-crypto wrote: Hello, I am trying to merge two datasets. I am using query (as in the code below), but I should merge on i.ticker NOT equals j.ticker. Basically, I should merge to a focal i.ticker...

View Article

Image may be NSFW.
Clik here to view.

An object which is Tuple, but not an NTuple{N, Any}

@ravi.joshi wrote: In Julia, is it possible to have an object, which is a Tuple, but not an NTuple{N, Any}? I am thinking about this because, in the Iterators module, there are different method...

View Article


Error building PyCall in Windows 10

@sbacelar wrote: When I try to build PyCall in Julia 1.4 I get: (@v1.4) pkg> build PyCall Building Conda ─→ C:\Users\sbac\.julia\packages\Conda\3rPhK\deps\build.log Building PyCall →...

View Article


Struct with immutable arrays

@mkarikom wrote: I need to be able to keep certain arrays of a mixed type (e.g. ImmutableN.n::Array{Int,1}) from being modified. Here is an example: struct ImmutableN n::Array{Int64,1} cond::Float64...

View Article

Julia exits when I import Plots package in Atom

@toluboltz wrote: Hello, Julia exits in atom’s REPL when I type in “using Plots” and prints out the following error: signal (11): Segmentation fault: 11 in expression starting at no file:0...

View Article

How to run `sleep 1; echo "hello"` in Shell in Julia

@paalon wrote: I want to run sleep 1; echo "hello" in Shell in Julia. However, run(`sleep 1; echo "hello"`) doesn’t work correctly due to ; but I can’t find how to change the code. Can anyone help me?...

View Article

Image may be NSFW.
Clik here to view.

LightGraphs documentation

@khal wrote: Hi everybody ! I am quite new to Julia but have been able to learn bunch of things in the last 2 days. However, since I am working on a project that is based on graph theory, I figured...

View Article


Map! - but it didn't map!

@Klaus wrote: I’ m still at the basics, so I wonder why line 2 works fine, but line 3 doesn’t: 1)—listofnumbers = [23, 45, 56, 67, 89] 2)—listofnumbers = map(x -> x + 1, listofnumbers) 3)—map!(x...

View Article

Error trying to run example ODE from blog post

@stormyweathers wrote: I am trying to run the reaction diffusion example in this blog post. Running the code as-is, I notice that I need to include using LinearAlgebra to use the Tridiagonal method. I...

View Article


Language Julia on Android

@Marques wrote: I wonder if it is necessary to have Root to program Julia on Android. Posts: 2 Participants: 2 Read full topic

View Article

Calling Julia from Python

@omi wrote: I’m interested for working in julia for GSoC 20. For the same I am interested in calling julia functions from python.I am very new to julia but familiar with python. Will be eager to know...

View Article


Unique rows in distributed table

@Jakob wrote: Hi, how do I get the unique rows of a Distributed Table in JuliaDB? df = table(["a", "a", "a", "b", "b"], ["x", "x", "y", "x", "x"], names = (:X1, :X2), chunks = 2) julia> df...

View Article

How do people handle name collisions with function defined in other packages?

@pixel27 wrote: As an example I’m using Cairo to create an image. I defined a method: using Cairo function image(size::Int) .... end This function just does some base work for creating an image of...

View Article

A Julia equivalent to R's stop()?

@vlandau wrote: Is there an equivalent in Julia to the stop() function in R? The nice thing about stop() is that it can be run from any scope (e.g. a function within a function) and it will throw an...

View Article
Browsing all 2795 articles
Browse latest View live