# Latest

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

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

**Page:** 1666

---

## [How to set a custom theme in Plots.jl](https://discourse.julialang.org/t/how-to-set-a-custom-theme-in-plots-jl/44545)

<div class="topic-metadata">

**Author:** [@h4pZ](https://discourse.julialang.org/u/h4pZ)\
**Replies:** 3\
**Last updated:** [August 8, 2020, 3:41am UTC](https://discourse.julialang.org/t/how-to-set-a-custom-theme-in-plots-jl/44545 "2020-08-08T03:41:04Z")

</div>

Hi, I’m new to Julia and I want to setup a custom plotting theme. I’ve checked here Themes · Plots and it points to the package PlotThemes (https://github.com/JuliaPlots/PlotThemes.jl). Using the themes from the librar…

---

## [Basic solving equation with NLsove](https://discourse.julialang.org/t/basic-solving-equation-with-nlsove/44481)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 11\
**Last updated:** [August 8, 2020, 3:05am UTC](https://discourse.julialang.org/t/basic-solving-equation-with-nlsove/44481 "2020-08-08T03:05:10Z")

</div>

Total Julia noob here. So I would like to ultimately solve an equation f(x,a)=0 for x many times as I vary a and plot the solution as a function of a. Before getting to that though, I am first trying to learn to use NLs…

---

## [Launch current version of Julia from the terminal](https://discourse.julialang.org/t/launch-current-version-of-julia-from-the-terminal/44535)

<div class="topic-metadata">

**Author:** [@onButtonUp](https://discourse.julialang.org/u/onButtonUp)\
**Replies:** 7\
**Last updated:** [August 8, 2020, 2:11am UTC](https://discourse.julialang.org/t/launch-current-version-of-julia-from-the-terminal/44535 "2020-08-08T02:11:25Z")

</div>

After installing Julia 1.5, the terminal (Mac OS) still launches v1.4.2. How can I get it to launch v1.5 ?

---

## [What's a good way to create an animation from a timestamped image sequence?](https://discourse.julialang.org/t/whats-a-good-way-to-create-an-animation-from-a-timestamped-image-sequence/44471)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 8\
**Last updated:** [August 8, 2020, 1:33am UTC](https://discourse.julialang.org/t/whats-a-good-way-to-create-an-animation-from-a-timestamped-image-sequence/44471 "2020-08-08T01:33:49Z")

</div>

I am doing an event-based simulation, that gets updated when each event happens. For simplicity’s sake, assume it’s a simple Poisson process that creates a random 100x100 matrix when each event happens. So we’ll have a s…

---

## [Diffeqpy complex ODE](https://discourse.julialang.org/t/diffeqpy-complex-ode/44530)

<div class="topic-metadata">

**Author:** [@m4hdiattar](https://discourse.julialang.org/u/m4hdiattar)\
**Replies:** 1\
**Last updated:** [August 8, 2020, 1:02am UTC](https://discourse.julialang.org/t/diffeqpy-complex-ode/44530 "2020-08-08T01:02:43Z")

</div>

I am using diffeqpy package for solving my problem which is a system of complex ODEs. problem here is that it seems like the function ODEProblem is not working on complex equations and I got the error below: can anyone…

---

## [Dataframe transform operation on multiple columns](https://discourse.julialang.org/t/dataframe-transform-operation-on-multiple-columns/44529)

<div class="topic-metadata">

**Author:** [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Replies:** 10\
**Last updated:** [August 8, 2020, 12:18am UTC](https://discourse.julialang.org/t/dataframe-transform-operation-on-multiple-columns/44529 "2020-08-08T00:18:21Z")

</div>

Hello, I am trying to use transform on multiple columns of a dataframe, that is I want apply an operation taking 2 variables as inputs, column1 and column2 and output the result. A simple example would be: df = DataF…

---

## [How to correctly manage memory during ccall?](https://discourse.julialang.org/t/how-to-correctly-manage-memory-during-ccall/44420)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 11:03pm UTC](https://discourse.julialang.org/t/how-to-correctly-manage-memory-during-ccall/44420 "2020-08-07T23:03:41Z")

</div>

Hi, I’m trying to wrap RCpp C++ code for use from Julia. The original code used R objects created from C++ to pass back arrays created in C++. I don’t understand what I have to do to correctly change the code for Julia …

---

## [Linear algebra bug?](https://discourse.julialang.org/t/linear-algebra-bug/44513)

<div class="topic-metadata">

**Author:** [@jensen](https://discourse.julialang.org/u/jensen)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 9:55pm UTC](https://discourse.julialang.org/t/linear-algebra-bug/44513 "2020-08-07T21:55:29Z")

</div>

I translating some code from octave/matlab to Julia. However, the code does not work. I have isolated the problem in the enclosed octave/julia files. The octave code produces the correct result. The problem is in the ca…

---

## [Type definition works in the REPL, doesn't work in a module](https://discourse.julialang.org/t/type-definition-works-in-the-repl-doesnt-work-in-a-module/44515)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 9:54pm UTC](https://discourse.julialang.org/t/type-definition-works-in-the-repl-doesnt-work-in-a-module/44515 "2020-08-07T21:54:30Z")

</div>

I feel like I’m missing something basic here. The following code works when pasted in to the REPL: using DataStructures: MutableLinkedList module MyModule struct MapEntry{T\<:Number, M, N} IC::Array{T,M} …

---

## [Multi of word in dict](https://discourse.julialang.org/t/multi-of-word-in-dict/44504)

<div class="topic-metadata">

**Author:** [@Fuad\_Sami](https://discourse.julialang.org/u/Fuad_Sami)\
**Replies:** 6\
**Last updated:** [August 7, 2020, 8:45pm UTC](https://discourse.julialang.org/t/multi-of-word-in-dict/44504 "2020-08-07T20:45:58Z")

</div>

Hello all i need to do some thing like that in the dictionary Dict(314 =\> \["ate","eat","tea"\],311 =\> \["bat"\],323 =\> \["nat","tan"\]) iand this is my code function groupAnagrams(str) \*\*d = Dict{Int64,Array{String,1…

---

## [Detect space](https://discourse.julialang.org/t/detect-space/44521)

<div class="topic-metadata">

**Author:** [@Fuad\_Sami](https://discourse.julialang.org/u/Fuad_Sami)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 8:15pm UTC](https://discourse.julialang.org/t/detect-space/44521 "2020-08-07T20:15:11Z")

</div>

hi all i try to detect space in string, if i have “Hello World , i need to detect the index i , in python i just look for if arr\[i\] ==” " put here it doesn’t work. function lengthOfLastWord(arr) i=length(arr) …

---

## [Dimensions of minibatch](https://discourse.julialang.org/t/dimensions-of-minibatch/44316)

<div class="topic-metadata">

**Author:** [@raoulg](https://discourse.julialang.org/u/raoulg)\
**Replies:** 3\
**Last updated:** [August 7, 2020, 7:41pm UTC](https://discourse.julialang.org/t/dimensions-of-minibatch/44316 "2020-08-07T19:41:40Z")

</div>

I’m sort of struggling with the same issue as here , but the answer isn’t really clear to me. What I’m trying to do is to make a basic timeseries forecasting with a RNN architecture with minibatches. I got the minibatc…

---

## [Best symbolic calculus/algebra package(s) for Julia?](https://discourse.julialang.org/t/best-symbolic-calculus-algebra-package-s-for-julia/44451)

<div class="topic-metadata">

**Author:** [@narnold0](https://discourse.julialang.org/u/narnold0)\
**Replies:** 13\
**Last updated:** [August 7, 2020, 6:56pm UTC](https://discourse.julialang.org/t/best-symbolic-calculus-algebra-package-s-for-julia/44451 "2020-08-07T18:56:03Z")

</div>

So I’ve been trying out python lately but I learned about Julia and it seems pretty amazing so I want to switch to it. I set up juno and it’s working fine but I’ve been having trouble finding resources concerning the va…

---

## [JuMPeR installation problem with JuliaPro 1.0.5-2](https://discourse.julialang.org/t/jumper-installation-problem-with-juliapro-1-0-5-2/44508)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 6:25pm UTC](https://discourse.julialang.org/t/jumper-installation-problem-with-juliapro-1-0-5-2/44508 "2020-08-07T18:25:28Z")

</div>

This is the error message that appears to me when I try to install JuMPer julia\> Pkg.add("JuMPeR") Updating registry at \`C:\\Users\\raque\\.juliapro\\JuliaPro\_v1.0.5-2\\registries\\JuliaPro\` Updating git-repo \`https://pkg…

---

## [Trying to understand allocations while creating vectors](https://discourse.julialang.org/t/trying-to-understand-allocations-while-creating-vectors/44512)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 5:15pm UTC](https://discourse.julialang.org/t/trying-to-understand-allocations-while-creating-vectors/44512 "2020-08-07T17:15:22Z")

</div>

On my laptop it appears that creating a Vector{Float64} with \>2048 elements triggers an extra allocation julia\> @btime Vector{Float64}(undef, 2048); 379.093 ns (1 allocation: 16.13 KiB) julia\> @btime Vector{Float64}(…

---

## [Plots: reduce size of scatter plots, etc.?](https://discourse.julialang.org/t/plots-reduce-size-of-scatter-plots-etc/44445)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [August 7, 2020, 4:03pm UTC](https://discourse.julialang.org/t/plots-reduce-size-of-scatter-plots-etc/44445 "2020-08-07T16:03:35Z")

</div>

I’m trying to visualize parameter uncertainty in results from the Turing package. For each parameter, there is a vector of realizations of the parameter. If I use the StatsPlots package, function density allows me to plo…

---

## [@sk\_import preprocessing: LabelEncoder is throwing the following error: PackagesNotFoundError: The following packages are missing from the target environment: - mkl](https://discourse.julialang.org/t/sk-import-preprocessing-labelencoder-is-throwing-the-following-error-packagesnotfounderror-the-following-packages-are-missing-from-the-target-environment-mkl/44507)

<div class="topic-metadata">

**Author:** [@Mrinalini\_madhusudan](https://discourse.julialang.org/u/Mrinalini_madhusudan)\
**Replies:** 0\
**Last updated:** [August 7, 2020, 4:00pm UTC](https://discourse.julialang.org/t/sk-import-preprocessing-labelencoder-is-throwing-the-following-error-packagesnotfounderror-the-following-packages-are-missing-from-the-target-environment-mkl/44507 "2020-08-07T16:00:44Z")

</div>

This error didn’t come when i compiled @sk\_import preprocessing: LabelEncoder for the first time, but throwing this error for the subsequent runs. I also face the same issue for every other library import. Eg. @sk\_imp…

---

## [Custom Likelihood Distribution/increment likelihood](https://discourse.julialang.org/t/custom-likelihood-distribution-increment-likelihood/44292)

<div class="topic-metadata">

**Author:** [@jdselwyn](https://discourse.julialang.org/u/jdselwyn)\
**Replies:** 7\
**Last updated:** [August 7, 2020, 3:59pm UTC](https://discourse.julialang.org/t/custom-likelihood-distribution-increment-likelihood/44292 "2020-08-07T15:59:08Z")

</div>

Hi, I’m fairly new to Julia so my apologies if this is an obvious question. I’m trying to create a model to sample from the below log-likelihood function. The C matrix is a constant and Δ follows a Dirichlet distribution…

---

## [Pass (to Julia) a C struct which contains a pointer to another struct](https://discourse.julialang.org/t/pass-to-julia-a-c-struct-which-contains-a-pointer-to-another-struct/44406)

<div class="topic-metadata">

**Author:** [@Vangelis](https://discourse.julialang.org/u/Vangelis)\
**Replies:** 11\
**Last updated:** [August 7, 2020, 3:51pm UTC](https://discourse.julialang.org/t/pass-to-julia-a-c-struct-which-contains-a-pointer-to-another-struct/44406 "2020-08-07T15:51:49Z")

</div>

Dear experts, assume the module below: module PointsModule struct Point x::Cdouble y::Cdouble z::Cdouble end struct Points n\_of\_points::Cint all\_points::Vector{Point} end function sum\_points(my\_points::Points):…

---

## [Turing package(s) + parameter estimation for DiffEq models?](https://discourse.julialang.org/t/turing-package-s-parameter-estimation-for-diffeq-models/44082)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 38\
**Last updated:** [August 7, 2020, 3:50pm UTC](https://discourse.julialang.org/t/turing-package-s-parameter-estimation-for-diffeq-models/44082 "2020-08-07T15:50:09Z")

</div>

Are there any illustrative notebooks around on how to do proper model fitting of dynamic models with parameter statistics in Turing tools? Can it be done? To be more concrete… take the SIR epidemiology model below with …

---

## [Why is os.walk() + regex so much slower than glob](https://discourse.julialang.org/t/why-is-os-walk-regex-so-much-slower-than-glob/43906)

<div class="topic-metadata">

**Author:** [@OffbeatNeat](https://discourse.julialang.org/u/OffbeatNeat)\
**Replies:** 2\
**Last updated:** [August 7, 2020, 3:17pm UTC](https://discourse.julialang.org/t/why-is-os-walk-regex-so-much-slower-than-glob/43906 "2020-08-07T15:17:29Z")

</div>

Hi! So myself and another coworker were both writing julia code that basically did the same thing as a specific GNU find command. For my implementation, I used a regex for the filename and walkdir to find the files, so…

---

## [Best Practices for Parallel implementation of Gibbs Sampler algorithm](https://discourse.julialang.org/t/best-practices-for-parallel-implementation-of-gibbs-sampler-algorithm/44503)

<div class="topic-metadata">

**Author:** [@deburgess](https://discourse.julialang.org/u/deburgess)\
**Replies:** 0\
**Last updated:** [August 7, 2020, 2:53pm UTC](https://discourse.julialang.org/t/best-practices-for-parallel-implementation-of-gibbs-sampler-algorithm/44503 "2020-08-07T14:53:05Z")

</div>

Thanks in advance for your comments and advice. Would someone comment on how to improve my coding? In particular: did I use @sync properly? Did I use Distributed arrays efficiently? How does random number generation w…

---

## [Dealing with optional dependencies in v1.5?](https://discourse.julialang.org/t/dealing-with-optional-dependencies-in-v1-5/44411)

<div class="topic-metadata">

**Author:** [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Replies:** 2\
**Last updated:** [August 7, 2020, 2:08pm UTC](https://discourse.julialang.org/t/dealing-with-optional-dependencies-in-v1-5/44411 "2020-08-07T14:08:42Z")

</div>

I’ve been having an issue for a long time with Compose and its optional Cairo backend. Compose uses Requires.jl to support Cairo. This works fine unless you make a new package that uses both : module TestCompose usi…

---

## [State of RL packages](https://discourse.julialang.org/t/state-of-rl-packages/44500)

<div class="topic-metadata">

**Author:** [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 2:08pm UTC](https://discourse.julialang.org/t/state-of-rl-packages/44500 "2020-08-07T14:08:23Z")

</div>

Hi all. As many of you know, I’ve been away from the community for a few years, but I was happy to catch up a little with a remote JuliaCon. :tada: I’m wondering if there has been any progress made in the area of Reinf…

---

## [Geographic (heat)map with pyplot()](https://discourse.julialang.org/t/geographic-heat-map-with-pyplot/41015)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 1:26pm UTC](https://discourse.julialang.org/t/geographic-heat-map-with-pyplot/41015 "2020-08-07T13:26:00Z")

</div>

I have a vector of coordinates (long, lat) and the associated vector of a given variable x. How can I generate a heat map that looks like a geographic map in which the variable x takes different shades according to its v…

---

## [Flux function fitting](https://discourse.julialang.org/t/flux-function-fitting/44475)

<div class="topic-metadata">

**Author:** [@jstrube](https://discourse.julialang.org/u/jstrube)\
**Replies:** 2\
**Last updated:** [August 7, 2020, 1:24pm UTC](https://discourse.julialang.org/t/flux-function-fitting/44475 "2020-08-07T13:24:16Z")

</div>

I’m trying to reproduce the results from this Tensorflow tutorial: The objective is a nonlinear regression. Sounds simple enough, but I’m struggling to reproduce the results from the web page. My attempt looks like thi…

---

## [Better design pattern for this type of development..?](https://discourse.julialang.org/t/better-design-pattern-for-this-type-of-development/44497)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 1:18pm UTC](https://discourse.julialang.org/t/better-design-pattern-for-this-type-of-development/44497 "2020-08-07T13:18:53Z")

</div>

I have a lot of Julia code that goes something like this: const data = DataFrame!(CSV.File("path/to/some/file.csv")) function foo(data) for row in eachrow(data) # do some stuff end return # some in…

---

## [How would I use the any function to find unique members of any arbitrary amount of dataframes?](https://discourse.julialang.org/t/how-would-i-use-the-any-function-to-find-unique-members-of-any-arbitrary-amount-of-dataframes/44213)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 12:59pm UTC](https://discourse.julialang.org/t/how-would-i-use-the-any-function-to-find-unique-members-of-any-arbitrary-amount-of-dataframes/44213 "2020-08-07T12:59:36Z")

</div>

Hi how’s it going, I’m looking to write something where I don’t have to hard code how many groups I’m searching through, and find the unique members of each group. For example: group1 = DataFrame(:member=\>\["phil","bob"…

---

## [How do I type lambda functions?](https://discourse.julialang.org/t/how-do-i-type-lambda-functions/44461)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 12:40pm UTC](https://discourse.julialang.org/t/how-do-i-type-lambda-functions/44461 "2020-08-07T12:40:02Z")

</div>

I want to do something like this: struct Foo myFunc::Function{Int,Float64} # invalid Julia end zee(a::Int, b::Float64) = a+b bar = Foo(zee)

---

## [Implement iteration of Struct](https://discourse.julialang.org/t/implement-iteration-of-struct/44459)

<div class="topic-metadata">

**Author:** [@cojua8](https://discourse.julialang.org/u/cojua8)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 12:16pm UTC](https://discourse.julialang.org/t/implement-iteration-of-struct/44459 "2020-08-07T12:16:01Z")

</div>

Hi, I’m trying to implement iteration on a small struct: struct Coordinate x::Float64 y::Float64 Coordinate(x, y) = new(x, y) end So that I can unpack its members like this: x, y = Coordinate(1,1) Any he…

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

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