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

Unable to install fzf Error when trying to install OnMyRepl package

I had this issue when I tried to install OnMyRepl package on a fresh Julia 1.5.3. The same error appears when I tried to install the fzf_jll package separately. Downloading artifact: fzf curl:...

View Article


Just discovered Julia

I hope this is the right place to put this. I am a mature, 38, student studying mathematics with the Open University in the UK. I have started exploring mathematical concepts with computing and...

View Article


Donut charts with PlotlyJS

Hi all, I’m trying to produce a donut charts with PlotlyJS.jl to embed in a dash app. I’ve seen the Plotly docs but couldn’t find any related docs in the Julia API. Any hints to make that work with...

View Article

Workflow when experimenting with types

Hi all, longtime lurker and irregular Julia user here. Revise is absolutely great and I love it but I wonder if there’s a better workflow when experimenting with types. I try to get my types defined...

View Article

SymPy/Symbolics and HCubature

Hi everyone! I was not sure whether to post it here or in the Numerics subforum, but given that my question is very basic I decided to go for this section. Let’s say I want to integrate some function...

View Article


Trivial question about avoiding concurrency in a shared matrix between processes

Good evening everyone. As the title suggests, I have a very trivial question to ask (I’m a beginner with julia). In my code, I would like to have several (parallel) processes do calculations (quite...

View Article

Leg = false?

Just a quick question, what does leg=false or leg=true mean, for example in the following command hline!([m, m+σ, m-σ], lw=3, ls=:dash, leg=false) I tried to set leg to true and false, but can’t see...

View Article

How to change arrays of a mutable struct

Hey there, I am currently trying to make a Dataset struct object that has new X and y values to it appended to it over time. This is my set up mutable struct Dataset{T<:Real} X::AbstractMatrix{T}...

View Article


MAT.jl putting several tuples of variable string and variable in write()-command

Hi, given are two vectors: x, y Question: can I use one write()-command to save them to a mat- file, if I would like to use specific lables? write(file_id, "vec_x", x) write(file_id, "vec_sin", y) is...

View Article


Issues encountered teaching classes with Julia for the first time

This semester, for the first time, I have assigned Julia as a required language in my Data Science classes, alongside R. While I am not a beginner to Julia, I am posting this here because I am a...

View Article

Unexpected allocations when acessing field of struct

Hello, I don’t understand why any of the function calls underneath allocate memory on the heap. My reasoning is that these are unmutable structs, so when the functions are called, the type of field...

View Article

I can't load RDatasets in Julia

On doing Iris = dataset(“datasets”, “iris”), I get the following error - Iris UndefVarError: load not defined action(::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::FileIO.Formatted;...

View Article

Best way to declare a structure field that could be a function or a number

Hello, I’m currently writing a PDE solver in julia, and I’m wrapping the inputs in a structure in order. Among these inputs is the initial condition V0 and can be either a constant or a function. My...

View Article


Collapsing data into the level of certain variables and taking averages

Let’s say I have a data frame with columns A1,A2,A3,…,An, where A1,A2,A3 are categorical variables and the rest are floats. I want to create a new data frame (or equivalent) with the following...

View Article

How to do in place concatenation of matrices

Hi there. I have a matrix a that I want to maintain and accumilate more data points to over time. Assume I have a given below and I want to append b to it without having to do a new assignment on a....

View Article


Easily make all variables 32 bit?

Hello, is there some way to force all implicitly declared variables from 64 to 32 bit? I know I can explicitly declare stuff as 32bit and write numbers as 1.0f0. But I’d like to test the accuracy I...

View Article

Worker thread setup in Julia compared to C++/pthreads

I’m trying to port some code (a 3D renderer) that in C++ uses a simple tasking system to process items of work using multiple OS-level threads. Each item can (and will) take a varying amount of time...

View Article


Getting Single trajectory data from parallel ensemble simulation

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

View Article

Why const changes the behavior of Ptr?

In the docs: julia> const s1 = "1" "1" julia> s2 = "1" "1" julia> pointer.([s1, s2], 1) 2-element Array{Ptr{UInt8},1}: Ptr{UInt8} @0x00000000132c9638 Ptr{UInt8} @0x0000000013dd3d18 julia>...

View Article

Error message: ENOTSUP

I am new to Julia. I am trying to add packages in JuliaPro. For example I do this: using Pkg Pkg.add(“DataFrames”) and the following error message pops up: ERROR: IOError: mkdir: operation not...

View Article
Browsing all 2795 articles
Browse latest View live


Latest Images