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 ArticleHow 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 ArticleWhy 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 ArticleHow 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 ArticleWarnings 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 ArticleMultiple 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 ArticleJulia 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 Article2-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 ArticleJulia 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 ArticleConfused 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 ArticleThe 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 ArticleWhy 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 ArticleWhich 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 ArticleHow 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 ArticleHow 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 ArticleConstrained 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 ArticleHorizontally 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 Article2D 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 ArticleRoots 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 ArticleTableOperations.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