# Latest

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

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

**Page:** 1040

---

## [Ggplot2 does not accept the function "theme"](https://discourse.julialang.org/t/ggplot2-does-not-accept-the-function-theme/41474)

<div class="topic-metadata">

**Author:** [@thomas\_vilches](https://discourse.julialang.org/u/thomas_vilches)\
**Replies:** 8\
**Last updated:** [May 15, 2022, 7:29pm UTC](https://discourse.julialang.org/t/ggplot2-does-not-accept-the-function-theme/41474 "2022-05-15T19:29:16Z")

</div>

I am trying to use ggplot2 inside julia, because I am used to its usage and I think it makes nice plots. It works when making a basic plot, or using a “fixed theme” (such as theme\_bw). however, when using “theme()” in o…

---

## [How do I check my custom Env in Reinforce.jl?](https://discourse.julialang.org/t/how-do-i-check-my-custom-env-in-reinforce-jl/80808)

<div class="topic-metadata">

**Author:** [@Hupdup](https://discourse.julialang.org/u/Hupdup)\
**Replies:** 4\
**Last updated:** [May 15, 2022, 7:23pm UTC](https://discourse.julialang.org/t/how-do-i-check-my-custom-env-in-reinforce-jl/80808 "2022-05-15T19:23:26Z")

</div>

Hello all, I have written a custom enviroment in reinforce.jl and now I want to check if it is correct (i.e. if the actions and the step function work as thought). For this I wanted to call the functions one by one in …

---

## [Training a million models at the same time](https://discourse.julialang.org/t/training-a-million-models-at-the-same-time/81100)

<div class="topic-metadata">

**Author:** [@StefanPerko](https://discourse.julialang.org/u/StefanPerko)\
**Replies:** 4\
**Last updated:** [May 15, 2022, 6:12pm UTC](https://discourse.julialang.org/t/training-a-million-models-at-the-same-time/81100 "2022-05-15T18:12:04Z")

</div>

I have written my own code for doing Monte-Carlo simulations with SGD and a one-parameter model, for research. Specifically, I would draw 10^6 data sets (x,y) from a known distribution with x,y 1-dimensional and train 10…

---

## [Trying to write a macro that will cause a function to be traced](https://discourse.julialang.org/t/trying-to-write-a-macro-that-will-cause-a-function-to-be-traced/80847)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 4:39pm UTC](https://discourse.julialang.org/t/trying-to-write-a-macro-that-will-cause-a-function-to-be-traced/80847 "2022-05-15T16:39:15Z")

</div>

I want to be able to conitionally trace some of my methods, that is, to log the arguments and return values of each invocation. For example, given this function definition function hanoi(from, to, other, count) if …

---

## [Weird cygwin path mess](https://discourse.julialang.org/t/weird-cygwin-path-mess/31375)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 4\
**Last updated:** [November 22, 2019, 6:20pm UTC](https://discourse.julialang.org/t/weird-cygwin-path-mess/31375 "2019-11-22T18:20:18Z")

</div>

Julia is run in a cygwin window. It is julia\> versioninfo() Julia Version 1.3.0-rc4.1 Commit 8c4656b97a (2019-10-15 14:08 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.…

---

## [Reading a txt. file with two different delimiters](https://discourse.julialang.org/t/reading-a-txt-file-with-two-different-delimiters/81087)

<div class="topic-metadata">

**Author:** [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 4:08pm UTC](https://discourse.julialang.org/t/reading-a-txt-file-with-two-different-delimiters/81087 "2022-05-15T16:08:05Z")

</div>

Hey guys, ich want to read in the following text file. So the first two rows are irrelevant, but the problem is that the file has space and ; as a delimiter. If I try to read in the file I get the following result: …

---

## [Why Complex numbers only work with Real numbers and not all numbers?](https://discourse.julialang.org/t/why-complex-numbers-only-work-with-real-numbers-and-not-all-numbers/81042)

<div class="topic-metadata">

**Author:** [@davidalencia](https://discourse.julialang.org/u/davidalencia)\
**Replies:** 11\
**Last updated:** [May 15, 2022, 3:08pm UTC](https://discourse.julialang.org/t/why-complex-numbers-only-work-with-real-numbers-and-not-all-numbers/81042 "2022-05-15T15:08:04Z")

</div>

If I try to instanstate a complex number with a type T \<: Number but not \<:Real returns not defined. Why isn’t defined for all numbers.,

---

## [Shared array for non bit types](https://discourse.julialang.org/t/shared-array-for-non-bit-types/81096)

<div class="topic-metadata">

**Author:** [@Elyco](https://discourse.julialang.org/u/Elyco)\
**Replies:** 1\
**Last updated:** [May 15, 2022, 3:07pm UTC](https://discourse.julialang.org/t/shared-array-for-non-bit-types/81096 "2022-05-15T15:07:18Z")

</div>

Probably this is a silly question but I couldn’t find any solution for that. I want to iterate over a vector of my own type and do some calculation. Here is a MWE # julia -p 5 @everywhere mutable struct MyType val…

---

## [Nested task error: AssertionError](https://discourse.julialang.org/t/nested-task-error-assertionerror/81041)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 2\
**Last updated:** [May 15, 2022, 2:37pm UTC](https://discourse.julialang.org/t/nested-task-error-assertionerror/81041 "2022-05-15T14:37:56Z")

</div>

recently i updated Julia to 1.7.2 which means that i had to update all the used packages, i am getting an assertion error, that is not clear to me knowing that the same exact code was running fine in Julia 1.5 using Plo…

---

## [Pullback method error for Diagonal() call inside array generator](https://discourse.julialang.org/t/pullback-method-error-for-diagonal-call-inside-array-generator/81016)

<div class="topic-metadata">

**Author:** [@pr0physicist](https://discourse.julialang.org/u/pr0physicist)\
**Replies:** 4\
**Last updated:** [May 15, 2022, 1:28pm UTC](https://discourse.julialang.org/t/pullback-method-error-for-diagonal-call-inside-array-generator/81016 "2022-05-15T13:28:19Z")

</div>

Here’s a minimal example of an error I’ve encountered with my code using Flux. const x = zeros(Float32, 10, 4) p = Flux.params(x) function f() x1 = softmax(x, dims=2) x\_d = \[Diagonal(x1\[:, k\]) for k = 1:4\] x…

---

## [Specifying compat bounds via the REPL](https://discourse.julialang.org/t/specifying-compat-bounds-via-the-repl/81093)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 3\
**Last updated:** [May 15, 2022, 1:13pm UTC](https://discourse.julialang.org/t/specifying-compat-bounds-via-the-repl/81093 "2022-05-15T13:13:41Z")

</div>

For quite a while, I have wanted the ability to specify compat bounds from the REPL. I came across this PR after doing a search. Does anyone know when this will be added to Julia? As a related question, does the PR incl…

---

## [Allocations when calling eigen for hermitian 3x3 SMatrix](https://discourse.julialang.org/t/allocations-when-calling-eigen-for-hermitian-3x3-smatrix/80994)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 12:59pm UTC](https://discourse.julialang.org/t/allocations-when-calling-eigen-for-hermitian-3x3-smatrix/80994 "2022-05-15T12:59:56Z")

</div>

Hi, so today I found out that appearantly calling eigen on a hermitian 3x3 SMatrix{ComplexF64} allocates quite a bit of memory which I do not quite understand, since there are no allocations for a real matrix: using Sta…

---

## [ProcessExitedException while using Pardiso.jl](https://discourse.julialang.org/t/processexitedexception-while-using-pardiso-jl/81073)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 0\
**Last updated:** [May 14, 2022, 8:01pm UTC](https://discourse.julialang.org/t/processexitedexception-while-using-pardiso-jl/81073 "2022-05-14T20:01:12Z")

</div>

I’m trying to learn Pardiso.jl to use it to do matrix factorization. The following code creates random Hermitian matrices and then do the numerical factorization on them. For some matrices, this works fine and sometimes …

---

## [Distributed.ProcessExitedException error using Pardiso.jl](https://discourse.julialang.org/t/distributed-processexitedexception-error-using-pardiso-jl/81065)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 0\
**Last updated:** [May 14, 2022, 3:16pm UTC](https://discourse.julialang.org/t/distributed-processexitedexception-error-using-pardiso-jl/81065 "2022-05-14T15:16:40Z")

</div>

I’m trying to learn Pardiso.jl to use it to do matrix factorization. The following code creates random Hermitian matrices and then do the numerical factorization on them. For some matrices, this works fine and sometimes …

---

## [How to efficiently construct a large SparseArray? Packages for this?](https://discourse.julialang.org/t/how-to-efficiently-construct-a-large-sparsearray-packages-for-this/64863)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 20\
**Last updated:** [May 15, 2022, 12:16pm UTC](https://discourse.julialang.org/t/how-to-efficiently-construct-a-large-sparsearray-packages-for-this/64863 "2022-05-15T12:16:10Z")

</div>

Problem Does Julia have an efficient way of constructing a huge sparse matrix from a given list of entries u,v,w, some of which can have the same locations u,v, and in that case, their weights w must be summed. Thus u,v,…

---

## [Using eigenvalue in JuMP constraint](https://discourse.julialang.org/t/using-eigenvalue-in-jump-constraint/81076)

<div class="topic-metadata">

**Author:** [@Tri](https://discourse.julialang.org/u/Tri)\
**Replies:** 4\
**Last updated:** [May 15, 2022, 12:01pm UTC](https://discourse.julialang.org/t/using-eigenvalue-in-jump-constraint/81076 "2022-05-15T12:01:09Z")

</div>

I want to use the eigenvalues of the matrix Z in a constraint (e.g their sum or product) as in the following: using JuMP using LinearAlgebra model = Model() @variable(model, X\[1:2, 1:2\] \>= 0) @variable(model, c\[1:2\] \>= …

---

## [String formatting, using $](https://discourse.julialang.org/t/string-formatting-using/81091)

<div class="topic-metadata">

**Author:** [@Line](https://discourse.julialang.org/u/Line)\
**Replies:** 4\
**Last updated:** [May 15, 2022, 11:40am UTC](https://discourse.julialang.org/t/string-formatting-using/81091 "2022-05-15T11:40:59Z")

</div>

Hi, I am trying to make it easy for me to load different data files and later plot them and add them into file locations. It would be really nice to be able to specify the scenario I am plotting and then just using $scen…

---

## [How to change size of pooledarrays](https://discourse.julialang.org/t/how-to-change-size-of-pooledarrays/81089)

<div class="topic-metadata">

**Author:** [@ADOWA](https://discourse.julialang.org/u/ADOWA)\
**Replies:** 0\
**Last updated:** [May 15, 2022, 10:35am UTC](https://discourse.julialang.org/t/how-to-change-size-of-pooledarrays/81089 "2022-05-15T10:35:58Z")

</div>

Hi, I have the following pooledarray: 514×1 reshape(::PooledArrays.PooledVector{Any, UInt32, Vector{UInt32}}, 514, 1) with eltype Any: \[0, 1\] \[0, 1\] \[0, 1\] \[1, 0\] \[0, 1\] \[0, 1\] \[1, 0\] ⋮ \[1, 0\] \[1, 0\] \[0, 1\] …

---

## [Integrator.sol.retcode does not update after reinit!(integrator)](https://discourse.julialang.org/t/integrator-sol-retcode-does-not-update-after-reinit-integrator/80417)

<div class="topic-metadata">

**Author:** [@Elyco](https://discourse.julialang.org/u/Elyco)\
**Replies:** 8\
**Last updated:** [May 15, 2022, 7:46am UTC](https://discourse.julialang.org/t/integrator-sol-retcode-does-not-update-after-reinit-integrator/80417 "2022-05-15T07:46:52Z")

</div>

Hi all, In my code I need to check the status of my integrator, and if it got terminated (because of my own callback) I want to know about that. But I have some difficulty with the MWE down below. It seems like the ret…

---

## [Problem with taking inputs in Visual Studio Code](https://discourse.julialang.org/t/problem-with-taking-inputs-in-visual-studio-code/81054)

<div class="topic-metadata">

**Author:** [@Kamal\_Utla](https://discourse.julialang.org/u/Kamal_Utla)\
**Replies:** 2\
**Last updated:** [May 15, 2022, 2:50am UTC](https://discourse.julialang.org/t/problem-with-taking-inputs-in-visual-studio-code/81054 "2022-05-15T02:50:17Z")

</div>

I’m new to julia, I’ve been trying to solve a normal problem using programming. The question involves me to take input and organise it. I’ve been trying to do it, although I’m not getting any problem in the julia termina…

---

## [Creating a mesh with Meshes(need to use smoothing-Taubin) and getting afterwards a mesh compatible with Makie](https://discourse.julialang.org/t/creating-a-mesh-with-meshes-need-to-use-smoothing-taubin-and-getting-afterwards-a-mesh-compatible-with-makie/81029)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 1\
**Last updated:** [May 15, 2022, 1:34am UTC](https://discourse.julialang.org/t/creating-a-mesh-with-meshes-need-to-use-smoothing-taubin-and-getting-afterwards-a-mesh-compatible-with-makie/81029 "2022-05-15T01:34:03Z")

</div>

After doing some reading I did not found a way to create a simple mesh giving a set of points and then getting back a compatible mesh that can be plotted with Makie. Let’s say we have the following: using GLMakie Θ = L…

---

## [Why is this expression type unstable?](https://discourse.julialang.org/t/why-is-this-expression-type-unstable/80648)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 3:02am UTC](https://discourse.julialang.org/t/why-is-this-expression-type-unstable/80648 "2022-05-09T03:02:37Z")

</div>

I have the following function, and I’ve written two return statements which are identical in an input-output sense, but they have different syntax and mechanics. I like the format of the former statement because it’s a g…

---

## [Overlapping 3d lines in glmakie not drawing as expected](https://discourse.julialang.org/t/overlapping-3d-lines-in-glmakie-not-drawing-as-expected/81031)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 2\
**Last updated:** [May 14, 2022, 11:45pm UTC](https://discourse.julialang.org/t/overlapping-3d-lines-in-glmakie-not-drawing-as-expected/81031 "2022-05-14T23:45:40Z")

</div>

using GLMakie GLMakie.activate!() function mwe\_segments(step\_size) fig = Figure() ax = Axis3(fig\[1,1\],viewmode = :fit, aspect = (1.0,1.0,1.0)) for y in -10:step\_size:10 lines!(ax,\[SVector(0.0,y,…

---

## [How retrieve the best result from sampling? Turing.jl](https://discourse.julialang.org/t/how-retrieve-the-best-result-from-sampling-turing-jl/81077)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 0\
**Last updated:** [May 14, 2022, 10:26pm UTC](https://discourse.julialang.org/t/how-retrieve-the-best-result-from-sampling-turing-jl/81077 "2022-05-14T22:26:12Z")

</div>

https://turing.ml/dev/tutorials/10-bayesian-differential-equations/ I followed this tutorial to model my own ode problem and estimate parameters. When calling sample(model, NUTS(0.65), MCMCThreads(), 1000, 3) I get bac…

---

## [UnStack dataframe with aggregated string column](https://discourse.julialang.org/t/unstack-dataframe-with-aggregated-string-column/81072)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 3\
**Last updated:** [May 14, 2022, 9:44pm UTC](https://discourse.julialang.org/t/unstack-dataframe-with-aggregated-string-column/81072 "2022-05-14T21:44:48Z")

</div>

Hello Can someone let me know if this is possible I have a dataframe like this \> julia\> df = DataFrame(x=\["a","a","b"\],y=\["x","x","y"\],z=\["l","m","n"\]) \> 3×3 DataFrame \> Row │ x y z \> │ String …

---

## [Automatically reimplement methods from one package to support equivalent type](https://discourse.julialang.org/t/automatically-reimplement-methods-from-one-package-to-support-equivalent-type/81074)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 0\
**Last updated:** [May 14, 2022, 8:10pm UTC](https://discourse.julialang.org/t/automatically-reimplement-methods-from-one-package-to-support-equivalent-type/81074 "2022-05-14T20:10:41Z")

</div>

Recently i’m have encountered an issue where i needed two packages. Package A exports a bunch of useful methods from some type T (also exported from A), and another package B that exported additional methods and a equiva…

---

## [\[DataFrames Question\]: How to convert single column with row of dictionary to multiple columns](https://discourse.julialang.org/t/dataframes-question-how-to-convert-single-column-with-row-of-dictionary-to-multiple-columns/80989)

<div class="topic-metadata">

**Author:** [@Stefan\_Bringuier](https://discourse.julialang.org/u/Stefan_Bringuier)\
**Replies:** 4\
**Last updated:** [May 14, 2022, 6:01pm UTC](https://discourse.julialang.org/t/dataframes-question-how-to-convert-single-column-with-row-of-dictionary-to-multiple-columns/80989 "2022-05-14T18:01:39Z")

</div>

Question: If I have a dataframe with a column that has rows which are dictionaries, whats the appropriate way to convert each key to a column and fill the elements with the value. I assume its through the transform! fun…

---

## [How can happen that mutual information is negative?](https://discourse.julialang.org/t/how-can-happen-that-mutual-information-is-negative/81062)

<div class="topic-metadata">

**Author:** [@ladislaus](https://discourse.julialang.org/u/ladislaus)\
**Replies:** 1\
**Last updated:** [May 14, 2022, 4:40pm UTC](https://discourse.julialang.org/t/how-can-happen-that-mutual-information-is-negative/81062 "2022-05-14T16:40:47Z")

</div>

Dear Community, I am about to calculate the mutual information of two PMFs according to (1) in mathworld which i would normalize to get the redundancy, R, in Wiki. A particular feature of the problem is that the sampl…

---

## [How to make an environment with julia, for my RL agent?](https://discourse.julialang.org/t/how-to-make-an-environment-with-julia-for-my-rl-agent/81049)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 9\
**Last updated:** [May 14, 2022, 3:37pm UTC](https://discourse.julialang.org/t/how-to-make-an-environment-with-julia-for-my-rl-agent/81049 "2022-05-14T15:37:04Z")

</div>

I want to make an environment for Agents with julia, what are some packages to do that? I’m thinking of GameZero.jl and Makie.jl. Are there any others? Could I use Unreal Engine or Unity, but create Agents using Julia? …

---

## [Different inverse for almost equal matrices](https://discourse.julialang.org/t/different-inverse-for-almost-equal-matrices/81028)

<div class="topic-metadata">

**Author:** [@shce](https://discourse.julialang.org/u/shce)\
**Replies:** 18\
**Last updated:** [May 14, 2022, 1:57pm UTC](https://discourse.julialang.org/t/different-inverse-for-almost-equal-matrices/81028 "2022-05-14T13:57:06Z")

</div>

Hello, I’m facing a problem and I do not know if it is due to precision errors or I may be doing something wrong. I have two square matrices A and B of type Array{Float64,2} with sizes size(A) = (120,120) and size(B) =…

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

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