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

Basic introduction to ssh-agent, libGit2 in the context of Pkg

This thread (and this, and this, and this) discuss a situation where something called “ssh-agent” is involved in preventing Pkg.add() from repeatedly requesting to override the private key location...

View Article


How to declare an 1-dim Array of 310 1-dimensional Arrays with Int32 elements

I’m trying to declare a 1-dimensional Array of 310 1-dimensional arrays with an unspecified number of Int32 elements. I thought Array{Array{Int32}}(310) was correct (at least circa 2017), but it...

View Article


Why making a change in a copy of a variable changes the original variable?

I am so confused now. Can you explain this to me: aa = [1,2,3] bb = aa bb[1,1] = 66 Output: bb = 3-element Array{Int64,1}: 66 2 3 aa = 3-element Array{Int64,1}: 66 2 3 I am only making a change in bb,...

View Article

How to change the color of bars in boxplot Gadfly and add minor ticks in the...

Hi, please how could I change the color of the bars of the boxplot below, from deepskyblue to RGB = [0,9, 0,4, 0.2]? And how could I add a few minor ticks in the vertical axis, if possible pointing...

View Article

Warnings upon loading a custom sysimage

I have a script (simplified a bit here) that I use to make a custom sysimage with over 100 packages, including Weave. It has been amazingly useful for speeding up development / tests and works great....

View Article


Multiple terminals open with Julia on macOS

I’ve installed the Julia .dmg file. Whenever I open the app, however, another normal terminal opens at the same time. Is this the expected behavior? If not, is there a way to tweak things so only the...

View Article

Julia PyPlot: how to use multiple linestyles

Hello, I am not quite into pyplot and I could not find a good tutorial (there is pyplot, but only for python). I am trying to plot some results and I would like to use different linestyles. But I get...

View Article

2-step guide for github repos with Pkg

Sufficient conditions for 1 and 2 to “just work” you are using some version of linux you ran ssh-keygen and hit enter until the prompts stopped ensure that ~/.ssh/id_rsa exists afterward you have...

View Article


Julia PyPlot: how to assign multiple colors to legend

Hello, I am assigning the color of a plot drawn with PyPlot manually, I need to assign the same color to the legend. How can I control the color parameter? I am using the following but it gives me an...

View Article


Confused by different behavior of assignments of Arrays and Numbers

Hello, everyone, This is rudimentary, but I’am confused about Julia’s different “=” behaviors for Numbers and Arrays. To my understanding, when we assign a variable to an object, we set the variable...

View Article

The Scaling and centering Matrices

With what package and Julia functions the Scaling and centering Matrices is performed? 4 posts - 4 participants Read full topic

View Article

Why no mutating filter function for strings?

Is there a reason why julia> str = " a" " a" julia> filter(isspace, str) " " works but julia> filter!(isspace, str) ERROR: MethodError: no method matching filter!(::typeof(isspace), ::String)...

View Article

Which should I use `__init__` or `deps/build.jl`?

I’m writing a module which has a CSV file as data, and should be expanded and processed to DataFrame and saved as JLD2 file. However the data size of the generated JLD2 file is much larger than...

View Article


Image may be NSFW.
Clik here to view.

How to mix Markdown and Interact.jl?

I tried my first steps on WebIO + Interact.jl by function app(req) mymarkdown = md""" # Hello, Markdown! ## Lorem ipsum * Point 1 * Point 2 Cauchy-Schwartz inequality: $$\left(\sum_{k=1}^n a_k b_k...

View Article

How to create, run and then debug a basic Julia project?

Hi Is there any source to explain how to create a Julia project, preferably in VSCode. I try to lean my first steps and I still havent figured out how to do a basic toy project with a few functions on...

View Article


Constrained type parameters

When defining a type, is it possible to place a constraint on parameter values? For example, consider the following simple type definition: struct Orf start::Int32 stop::Int32 pol::Int8 end Is there...

View Article

Horizontally stacking a data frame (i.e. rows next to each other)

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

View Article


2D Structured Mesh Generator

This is more of a programming question than a Julia question… I am trying to create a 2D structured mesh generator for an arbitrary domain shape of square elements. There are probably packages...

View Article

Roots package complex roots

I am using the Halley’s method in the Roots.jl package and I have given a MWE below. I would like to clarity two points: 1. How can I specify that if roots are complex then it should return NaN? 2. I...

View Article

TableOperations.select

Hi, I have been making use of the Arrow.jl library and am currently experiencing difficulty in attempting to obtain a subset of columns from the original (Arrow) table and writing to another, via the...

View Article
Browsing all 2795 articles
Browse latest View live