# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1948

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1949

---

## [Split string to multiple columns](https://discourse.julialang.org/t/split-string-to-multiple-columns/26994)

<div class="topic-metadata">

**Author:** [@FredC](https://discourse.julialang.org/u/FredC)\
**Replies:** 10\
**Last updated:** [August 1, 2019, 4:25pm UTC](https://discourse.julialang.org/t/split-string-to-multiple-columns/26994 "2019-08-01T16:25:32Z")

</div>

Pretty simple, but I’ve been banging my head against it for a while. I have an array of some thousands of strings representing data files named like “abc-xyz.csv”. I can split on “-” and “.” easy enough, and get a vect…

---

## [\[ANN\] PProf.jl -- Explore profiles in style](https://discourse.julialang.org/t/ann-pprof-jl-explore-profiles-in-style/26198)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 5\
**Last updated:** [August 1, 2019, 3:26pm UTC](https://discourse.julialang.org/t/ann-pprof-jl-explore-profiles-in-style/26198 "2019-08-01T15:26:14Z")

</div>

@NHDaly and I recently put our heads together and created an export from Julia’s statistical profiler to pprof (a Go based analysis and visualization tool), you can export profiles – send them to a friend; get some nice …

---

## [Freeze versions for a specific project](https://discourse.julialang.org/t/freeze-versions-for-a-specific-project/27074)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 6\
**Last updated:** [August 1, 2019, 1:24pm UTC](https://discourse.julialang.org/t/freeze-versions-for-a-specific-project/27074 "2019-08-01T13:24:31Z")

</div>

Say I have a project, it has its Project.toml and Manifest.toml files. Everything works right now. How can I freeze/pin the versions of everything this project uses so that whenever I use this project in the future it wi…

---

## [Array of Arrays for months?](https://discourse.julialang.org/t/array-of-arrays-for-months/27022)

<div class="topic-metadata">

**Author:** [@MuadhF](https://discourse.julialang.org/u/MuadhF)\
**Replies:** 6\
**Last updated:** [August 1, 2019, 11:42am UTC](https://discourse.julialang.org/t/array-of-arrays-for-months/27022 "2019-08-01T11:42:37Z")

</div>

Hi, I want to create an array of arrays, where each sub-array contains the period t (month). For example, t\[1\] = \[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12\] t\[2\] = \[ 13, 14, 15, 16 ...\] and so on. I managed to do this using …

---

## [Problem with Listing 1.10 on Statistics With Julia Book](https://discourse.julialang.org/t/problem-with-listing-1-10-on-statistics-with-julia-book/27009)

<div class="topic-metadata">

**Author:** [@jar](https://discourse.julialang.org/u/jar)\
**Replies:** 3\
**Last updated:** [August 1, 2019, 11:25am UTC](https://discourse.julialang.org/t/problem-with-listing-1-10-on-statistics-with-julia-book/27009 "2019-08-01T11:25:26Z")

</div>

Hello folks. I’m working with Hayden Klok and Yoni Nazarathy’s book “Statistics With Julia” and the Listing 1.10 dont work. the error is: Warning: ‘getindex(o::PyObject, s::Symbol)’ is deprecated in favor of dot overl…

---

## [Data storage/loading for data produced by algorithms and metadata](https://discourse.julialang.org/t/data-storage-loading-for-data-produced-by-algorithms-and-metadata/27029)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 4\
**Last updated:** [August 1, 2019, 10:58am UTC](https://discourse.julialang.org/t/data-storage-loading-for-data-produced-by-algorithms-and-metadata/27029 "2019-08-01T10:58:57Z")

</div>

Hi, I am sorry, if this question was answered somewhere else already or there is a package especially for my need but the more I searched for solutions to my problem the more confused I got. I have algorithms producing…

---

## [Typed keyword vararg](https://discourse.julialang.org/t/typed-keyword-vararg/26961)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 8\
**Last updated:** [August 1, 2019, 7:54am UTC](https://discourse.julialang.org/t/typed-keyword-vararg/26961 "2019-08-01T07:54:22Z")

</div>

g(;kwargs::Int...) = println(kwargs) julia\> g(x=1,y=2) ERROR: MethodError: no method matching #g#16(::Base.Iterators.Pairs{Symbol,Int64,Tuple{Symbol,Symbol},NamedTuple{(:x, :y),Tuple{Int64,Int64}}}, ::typeof(g)) Closest…

---

## [Using sparse matrix in NLoptimization](https://discourse.julialang.org/t/using-sparse-matrix-in-nloptimization/27046)

<div class="topic-metadata">

**Author:** [@Dota](https://discourse.julialang.org/u/Dota)\
**Replies:** 3\
**Last updated:** [August 1, 2019, 6:09am UTC](https://discourse.julialang.org/t/using-sparse-matrix-in-nloptimization/27046 "2019-08-01T06:09:21Z")

</div>

Hi, I’m new to julia, nowadays I’m trying to use JuMP to do NLoptimization, which I used to use fmincon() in matlab. In my problem I will have a 1\*144 matrix as input: model=Model(with\_optimizer(Ipopt.Optimizer)) @…

---

## [Allocations in mapreduce/sum etc](https://discourse.julialang.org/t/allocations-in-mapreduce-sum-etc/27053)

<div class="topic-metadata">

**Author:** [@tchr](https://discourse.julialang.org/u/tchr)\
**Replies:** 2\
**Last updated:** [August 1, 2019, 4:11am UTC](https://discourse.julialang.org/t/allocations-in-mapreduce-sum-etc/27053 "2019-08-01T04:11:02Z")

</div>

I’m confused by why the following allocates (this is a reduced example that arose from trying to implement a function from #32739 via higher order functions instead of explicit loops): g(v) = mapreduce(i-\>v\[1\]\*i, +, eac…

---

## [Face Install pkg error on juliabox](https://discourse.julialang.org/t/face-install-pkg-error-on-juliabox/27061)

<div class="topic-metadata">

**Author:** [@imrankhan\_juliaLang](https://discourse.julialang.org/u/imrankhan_juliaLang)\
**Replies:** 0\
**Last updated:** [August 1, 2019, 3:33am UTC](https://discourse.julialang.org/t/face-install-pkg-error-on-juliabox/27061 "2019-08-01T03:33:14Z")

</div>

---

## [Using a \`RemoteChannel\` to talk to the master process in \`pmap\`](https://discourse.julialang.org/t/using-a-remotechannel-to-talk-to-the-master-process-in-pmap/27059)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 0\
**Last updated:** [August 1, 2019, 3:15am UTC](https://discourse.julialang.org/t/using-a-remotechannel-to-talk-to-the-master-process-in-pmap/27059 "2019-08-01T03:15:03Z")

</div>

In my project, I am running large agent-based models on a cluster environment. My typical workflow is a function main that does a complete independent simulation (can take up to 10 minutes!). I usually run pmap after ad…

---

## [Sparse Array Sum along axis](https://discourse.julialang.org/t/sparse-array-sum-along-axis/27054)

<div class="topic-metadata">

**Author:** [@Paul\_McVay](https://discourse.julialang.org/u/Paul_McVay)\
**Replies:** 3\
**Last updated:** [August 1, 2019, 1:25am UTC](https://discourse.julialang.org/t/sparse-array-sum-along-axis/27054 "2019-08-01T01:25:10Z")

</div>

Does sum along a dimensional axis not work with sparse arrays? a = sparse(\[1,2,3\], \[1,2,3\], \[ 1, 1, 2\]) sum(a, 1) ERROR: MethodError: objects of type SparseMatrixCSC{Int64,Int64} are not callable Use square brackets \[\]…

---

## [How to reuse the address "/" in Mux.jl+Interact.jl](https://discourse.julialang.org/t/how-to-reuse-the-address-in-mux-jl-interact-jl/27033)

<div class="topic-metadata">

**Author:** [@seeni](https://discourse.julialang.org/u/seeni)\
**Replies:** 1\
**Last updated:** [August 1, 2019, 12:30am UTC](https://discourse.julialang.org/t/how-to-reuse-the-address-in-mux-jl-interact-jl/27033 "2019-08-01T00:30:34Z")

</div>

Am using windows PC to develop my web app using Interact.jl and Mux.jl. It is to load dynamic form by clicking menu buttons in the same address “/” always (ie, to overwrite the existing page) by reusing the “/” address. …

---

## [Error of using Dagger, according to the manual](https://discourse.julialang.org/t/error-of-using-dagger-according-to-the-manual/27011)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 1\
**Last updated:** [August 1, 2019, 12:24am UTC](https://discourse.julialang.org/t/error-of-using-dagger-according-to-the-manual/27011 "2019-08-01T00:24:39Z")

</div>

I tried Dagger according to the manual and got some errors. using Dagger using Distributed addprocs(3) @everywhere function f1(v1::Float64, v2::Float64) r = 0. for i in 1:10^7 r += sin(v1) + sin(v2) …

---

## [Iterate over sparse array](https://discourse.julialang.org/t/iterate-over-sparse-array/27055)

<div class="topic-metadata">

**Author:** [@Paul\_McVay](https://discourse.julialang.org/u/Paul_McVay)\
**Replies:** 1\
**Last updated:** [July 31, 2019, 11:40pm UTC](https://discourse.julialang.org/t/iterate-over-sparse-array/27055 "2019-07-31T23:40:26Z")

</div>

Since you can create a sparse matrix with row-indices, column-indices, and values, how do you get those back after the creation of the matrix? i = \[1, 2, 3\] j = \[1, 2, 3\] v = \[1, 1, 2\] a = sparse(i, j, v) I hoping for…

---

## [Cumulative count function?](https://discourse.julialang.org/t/cumulative-count-function/26979)

<div class="topic-metadata">

**Author:** [@PaulMainwood](https://discourse.julialang.org/u/PaulMainwood)\
**Replies:** 8\
**Last updated:** [July 31, 2019, 9:46pm UTC](https://discourse.julialang.org/t/cumulative-count-function/26979 "2019-07-31T21:46:51Z")

</div>

Is there a Julia function that can do a cumulative count of previous occurrences of each value an array? That is, something that would behave like this (using a mixed array as an example): cumcount(\[0, 5, 5, "foo", 5, …

---

## [Passing object by reference and mutating it](https://discourse.julialang.org/t/passing-object-by-reference-and-mutating-it/27051)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 3\
**Last updated:** [July 31, 2019, 9:46pm UTC](https://discourse.julialang.org/t/passing-object-by-reference-and-mutating-it/27051 "2019-07-31T21:46:43Z")

</div>

A simple MWE: mutable struct MyHuman age::Int64 MyHuman(i) = new(i) end # create an array A = \[MyHuman(i) for i = 1:100\] # let's replace the 1st element of A by a new object change\_element(A\[1\]) function cha…

---

## [(Gtk) Interface designed with GLADE, the registered function for button click event is not being called](https://discourse.julialang.org/t/gtk-interface-designed-with-glade-the-registered-function-for-button-click-event-is-not-being-called/26958)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 1\
**Last updated:** [July 31, 2019, 8:51pm UTC](https://discourse.julialang.org/t/gtk-interface-designed-with-glade-the-registered-function-for-button-click-event-is-not-being-called/26958 "2019-07-31T20:51:57Z")

</div>

I am using GLADE to develop an interface that gets built afterwards by Gtk.jl, and the interface layout appears with all of the labels and buttons after it is built in my Julia code. Within GLADE, for the the ‘button’ ob…

---

## [Stiff SDE and \`DiffEq\`](https://discourse.julialang.org/t/stiff-sde-and-diffeq/26851)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 5\
**Last updated:** [July 31, 2019, 7:20pm UTC](https://discourse.julialang.org/t/stiff-sde-and-diffeq/26851 "2019-07-31T19:20:59Z")

</div>

I’m trying to integrate an SDE with constant, additive, diagonal noise and a “stiff” drift component (the ODE component comes from a singularly perturbed DAE system…). I need to be able to integrate indefinitely (I’m int…

---

## [Opeb pdf file](https://discourse.julialang.org/t/opeb-pdf-file/27005)

<div class="topic-metadata">

**Author:** [@Kelvyn88](https://discourse.julialang.org/u/Kelvyn88)\
**Replies:** 2\
**Last updated:** [July 31, 2019, 7:05pm UTC](https://discourse.julialang.org/t/opeb-pdf-file/27005 "2019-07-31T19:05:08Z")

</div>

Hi, I want to open a pdf file with the default application on windows 10. The shell command is: START “” “filename” but using “;” before the line didn’t work. Using in windows’s console works.

---

## [Julia-client breaking bug in Atom 1.39.0](https://discourse.julialang.org/t/julia-client-breaking-bug-in-atom-1-39-0/26719)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 10\
**Last updated:** [July 31, 2019, 6:20pm UTC](https://discourse.julialang.org/t/julia-client-breaking-bug-in-atom-1-39-0/26719 "2019-07-31T18:20:57Z")

</div>

Hey guys, I just experienced this bug: When I try to rebuild by installing from scratch, I get another bug: Hope someone can help Kind regards

---

## [Weird UndefVarError in Julia 1.3 using HDF5.jl](https://discourse.julialang.org/t/weird-undefvarerror-in-julia-1-3-using-hdf5-jl/27047)

<div class="topic-metadata">

**Author:** [@shipengcheng1230](https://discourse.julialang.org/u/shipengcheng1230)\
**Replies:** 2\
**Last updated:** [July 31, 2019, 6:15pm UTC](https://discourse.julialang.org/t/weird-undefvarerror-in-julia-1-3-using-hdf5-jl/27047 "2019-07-31T18:15:59Z")

</div>

Hello, consider the following MWE: using HDF5 u = rand(2, 3) h5open("foo.h5", "w") do f # write some data in \`foo\` du = similar(u) d\_create(f, "u", datatype(eltype(du)), ((2, 3, 10), (2, 3, -1,)), "chunk", (2, …

---

## [Best way to structure Julia code](https://discourse.julialang.org/t/best-way-to-structure-julia-code/26591)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 17\
**Last updated:** [July 31, 2019, 6:04pm UTC](https://discourse.julialang.org/t/best-way-to-structure-julia-code/26591 "2019-07-31T18:04:58Z")

</div>

Dear all, I am a bit sad that it was told here on the forum that adding a custom directory to the package search path would be depreciated. If I write a Julia program I would like to structure it by using a module for …

---

## [First-order linear system with time delay as DDEProblem?](https://discourse.julialang.org/t/first-order-linear-system-with-time-delay-as-ddeproblem/27014)

<div class="topic-metadata">

**Author:** [@joshualeond](https://discourse.julialang.org/u/joshualeond)\
**Replies:** 3\
**Last updated:** [July 31, 2019, 5:19pm UTC](https://discourse.julialang.org/t/first-order-linear-system-with-time-delay-as-ddeproblem/27014 "2019-07-31T17:19:45Z")

</div>

I’m new to the diffeq landscape and am working on solving a First Order Plus Dead Time (FOPDT) model: \\tau\_p \\frac{dy(t)}{dt} = -y(t) + K\_p u\\left(t-\\theta\_p\\right) I have data for y(t) and data for u(t) and am havi…

---

## [Network structural balance analysis in Julia](https://discourse.julialang.org/t/network-structural-balance-analysis-in-julia/27045)

<div class="topic-metadata">

**Author:** [@kcyb](https://discourse.julialang.org/u/kcyb)\
**Replies:** 0\
**Last updated:** [July 31, 2019, 5:19pm UTC](https://discourse.julialang.org/t/network-structural-balance-analysis-in-julia/27045 "2019-07-31T17:19:31Z")

</div>

Dear Julia community, I have a question regarding network analysis in Julia. I apologize if this is the wrong section, I couldn’t decide for a better one. Are you aware of any packages for sound network structural balan…

---

## [Assigning JuMP VariableRef to an array position](https://discourse.julialang.org/t/assigning-jump-variableref-to-an-array-position/26216)

<div class="topic-metadata">

**Author:** [@MuadhF](https://discourse.julialang.org/u/MuadhF)\
**Replies:** 6\
**Last updated:** [July 31, 2019, 4:56pm UTC](https://discourse.julialang.org/t/assigning-jump-variableref-to-an-array-position/26216 "2019-07-31T16:56:37Z")

</div>

Hi, Is it possible to assign a decision variable to an array position? For example: using JuMP m = Model() @variable(m, x) arr = zeros(100) arr\[1\] = x x is a decision variable which will be decided by the model whe…

---

## [Managing large dataset in package intended for beginners use](https://discourse.julialang.org/t/managing-large-dataset-in-package-intended-for-beginners-use/26936)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 13\
**Last updated:** [July 31, 2019, 12:57pm UTC](https://discourse.julialang.org/t/managing-large-dataset-in-package-intended-for-beginners-use/26936 "2019-07-31T12:57:36Z")

</div>

Background I’m working on a package that’s primarily for accessing a specific and large data set. I want part of its functionality to involve summary information (basic stats and plots) on subsections of the data. I cur…

---

## [Writing stencils for CuArray](https://discourse.julialang.org/t/writing-stencils-for-cuarray/26562)

<div class="topic-metadata">

**Author:** [@platawiec](https://discourse.julialang.org/u/platawiec)\
**Replies:** 6\
**Last updated:** [July 31, 2019, 3:19pm UTC](https://discourse.julialang.org/t/writing-stencils-for-cuarray/26562 "2019-07-31T15:19:54Z")

</div>

I am adapting a PDE solver to work on GPU. Being lazy, I was hoping that something like using CuArrays A = rand(5, 5, 5) |\> CuArray{Float64} B = similar(A) Is = CartesianIndices((2:4, 2:4)) @views @. B\[Is.indices..., :…

---

## [Setting the \`.gitconfig\` file to be used by Pkg/Pkg3](https://discourse.julialang.org/t/setting-the-gitconfig-file-to-be-used-by-pkg-pkg3/10795)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 1\
**Last updated:** [July 31, 2019, 2:57pm UTC](https://discourse.julialang.org/t/setting-the-gitconfig-file-to-be-used-by-pkg-pkg3/10795 "2019-07-31T14:57:55Z")

</div>

Is it possible to specify the gitconfig file to be used when running the add commands in Pkg or Pkg3? I’m running Julia under Cygwin, and get GitConfig errors when running add commands due to symlink issues (explained he…

---

## [Future Directions of System Modeling and Simulation (Symposium, Sept. 30, 2019, Lund, Sweden)](https://discourse.julialang.org/t/future-directions-of-system-modeling-and-simulation-symposium-sept-30-2019-lund-sweden/27038)

<div class="topic-metadata">

**Author:** [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Replies:** 0\
**Last updated:** [July 31, 2019, 2:52pm UTC](https://discourse.julialang.org/t/future-directions-of-system-modeling-and-simulation-symposium-sept-30-2019-lund-sweden/27038 "2019-07-31T14:52:28Z")

</div>

The Modelica Association and Lund University are organizing a free one-day symposium on Sept. 30, 2019, in Lund, Sweden. The central focus is on future directions of modeling and simulation. Invited researchers and indus…

[Previous page](https://discourse.julialang.org/latest.md?page=1947)

[Next page](https://discourse.julialang.org/latest.md?page=1949)
