# Latest

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

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

**Page:** 1487

---

## [Custom posterior distribution in Turing](https://discourse.julialang.org/t/custom-posterior-distribution-in-turing/55457)

<div class="topic-metadata">

**Author:** [@mcql](https://discourse.julialang.org/u/mcql)\
**Replies:** 5\
**Last updated:** [February 18, 2021, 11:10pm UTC](https://discourse.julialang.org/t/custom-posterior-distribution-in-turing/55457 "2021-02-18T23:10:52Z")

</div>

Hello, I have the following simple Turing model: @model function opt(y, λ, sa, sb) α ~ Exponential(λ) β ~ Exponential(λ) end I would like to sample from a posterior custom distribution similar to: (beta(α, …

---

## [This must be an elementary question for the pros but how do I iterate over unique](https://discourse.julialang.org/t/this-must-be-an-elementary-question-for-the-pros-but-how-do-i-iterate-over-unique/55579)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 10:21pm UTC](https://discourse.julialang.org/t/this-must-be-an-elementary-question-for-the-pros-but-how-do-i-iterate-over-unique/55579 "2021-02-18T22:21:23Z")

</div>

This must be an elementary question for the pros but how do I iterate over unique This must be an elementary question for the pros but how do I iterate over unique triplets. E.g. 1:5 triplets would give me (1,1,1), (1,…

---

## [Reference to the value of a named function argument](https://discourse.julialang.org/t/reference-to-the-value-of-a-named-function-argument/55572)

<div class="topic-metadata">

**Author:** [@xor](https://discourse.julialang.org/u/xor)\
**Replies:** 3\
**Last updated:** [February 18, 2021, 9:42pm UTC](https://discourse.julialang.org/t/reference-to-the-value-of-a-named-function-argument/55572 "2021-02-18T21:42:54Z")

</div>

Within a function body I’d like to refer to a value of a named argument. An example of what I have in mind, how to implement f: function f(; arg1, arg2, argname) println("value of argument named $argname is: ???") …

---

## [AMDGPU available for Windows?](https://discourse.julialang.org/t/amdgpu-available-for-windows/55547)

<div class="topic-metadata">

**Author:** [@MatsMor](https://discourse.julialang.org/u/MatsMor)\
**Replies:** 4\
**Last updated:** [February 18, 2021, 9:39pm UTC](https://discourse.julialang.org/t/amdgpu-available-for-windows/55547 "2021-02-18T21:39:40Z")

</div>

Does anyone know when the AMDGPU.jl package will be available for Windows? Right now, it is only available for Linux. Thxs!

---

## [Is there a way to separate development dependencies from runtime dependencies in Project.toml?](https://discourse.julialang.org/t/is-there-a-way-to-separate-development-dependencies-from-runtime-dependencies-in-project-toml/55568)

<div class="topic-metadata">

**Author:** [@flipgthb](https://discourse.julialang.org/u/flipgthb)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 9:16pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-separate-development-dependencies-from-runtime-dependencies-in-project-toml/55568 "2021-02-18T21:16:19Z")

</div>

Suppose I’m working on a project that depends on DataFrames.jl and Gadfly.jl to run and I decide to work on it using Pluto.jl or IJulia.jl. As far as I know, I can create Pkg.activate an environment for this project and …

---

## [2-step guide for github repos with Pkg](https://discourse.julialang.org/t/2-step-guide-for-github-repos-with-pkg/50166)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 8:35pm UTC](https://discourse.julialang.org/t/2-step-guide-for-github-repos-with-pkg/50166 "2021-02-18T20:35:50Z")

</div>

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 followed these instr…

---

## [Can the two language problem ever be solved for GUI programming](https://discourse.julialang.org/t/can-the-two-language-problem-ever-be-solved-for-gui-programming/8857)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 72\
**Last updated:** [February 18, 2021, 7:45pm UTC](https://discourse.julialang.org/t/can-the-two-language-problem-ever-be-solved-for-gui-programming/8857 "2021-02-18T19:45:17Z")

</div>

For example if I wanted to create a GUI using Julia at some point I need to know another language like Javascript for web interface and C++ for desktops. At least we can avoid the 3 language problem though.

---

## [Creating a new distribution: 3-parameter Weibull](https://discourse.julialang.org/t/creating-a-new-distribution-3-parameter-weibull/55538)

<div class="topic-metadata">

**Author:** [@Peter\_Staab](https://discourse.julialang.org/u/Peter_Staab)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 7:36pm UTC](https://discourse.julialang.org/t/creating-a-new-distribution-3-parameter-weibull/55538 "2021-02-18T19:36:14Z")

</div>

I have been working with a 3-parameter Weibull, which can be found at the Weibull wikipedia site. I’m working to get a pull request to add to the Distributions.jl library. I have two somewhat unrelated questions: shou…

---

## [Last call for GSoC 2021 Mentors/Admins](https://discourse.julialang.org/t/last-call-for-gsoc-2021-mentors-admins/55560)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 4:52pm UTC](https://discourse.julialang.org/t/last-call-for-gsoc-2021-mentors-admins/55560 "2021-02-18T16:52:19Z")

</div>

Hey all, we will be submitting our project application tonight (PST) for GSoC 2021. If you want to get involved as an admin or mentor, see here: Seeking Julia Mentors and Projects for GSoC 2021 and please get in touch as…

---

## [Segmentation fault when embedding Julia code that uses Array](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-code-that-uses-array/55056)

<div class="topic-metadata">

**Author:** [@Clonkk](https://discourse.julialang.org/u/Clonkk)\
**Replies:** 17\
**Last updated:** [February 18, 2021, 4:38pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-code-that-uses-array/55056 "2021-02-18T16:38:08Z")

</div>

Hello, I have an issue that I can’t figure out regarding returning memory allocated by Julia during embedding. I tried to simplify the C-code but it’s still a bit verbose : // Create an array jl\_array\_t \*jl\_make\_3d\_ar…

---

## [Scalar contained by vector of StaticArrays](https://discourse.julialang.org/t/scalar-contained-by-vector-of-staticarrays/55549)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 5\
**Last updated:** [February 18, 2021, 4:33pm UTC](https://discourse.julialang.org/t/scalar-contained-by-vector-of-staticarrays/55549 "2021-02-18T16:33:53Z")

</div>

Hi! I want to check if an integer is contained by a vector of StaticArrays. Here’s an example (with regular arrays, but it’s the same issue). a = \[\[1,2\], \[3,4\]\] 1 in a # false I guess I could write a for loop, but tha…

---

## [Returning a function multiple time to an array](https://discourse.julialang.org/t/returning-a-function-multiple-time-to-an-array/55541)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 1:46pm UTC](https://discourse.julialang.org/t/returning-a-function-multiple-time-to-an-array/55541 "2021-02-18T13:46:22Z")

</div>

i have this function that i’m trying to call it more than once and push the return value to an array function f(x,y) return s=x+y end for i=0:3 x=i\*pi/2 s=f(x,2) global X=\[\] push!(X,s) end X bu…

---

## [Emacs ESS and Windows](https://discourse.julialang.org/t/emacs-ess-and-windows/9175)

<div class="topic-metadata">

**Author:** [@TonyRubak](https://discourse.julialang.org/u/TonyRubak)\
**Replies:** 7\
**Last updated:** [February 18, 2021, 4:24pm UTC](https://discourse.julialang.org/t/emacs-ess-and-windows/9175 "2021-02-18T16:24:46Z")

</div>

I am trying to use emacs with ESS to work with Julia, but when I load Julia through emacs it hangs. Basically, the issue appears to be the same as https://github.com/emacs-ess/ESS/issues/162 where it is claimed that the …

---

## [ReadOnlyMemory](https://discourse.julialang.org/t/readonlymemory/54460)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 9\
**Last updated:** [February 18, 2021, 3:22pm UTC](https://discourse.julialang.org/t/readonlymemory/54460 "2021-02-18T15:22:07Z")

</div>

i’m trying to run a code for an mcmc samling , the code runs fine for an iteration of 1000 when i want to do the same for 2^20 iterations it shows me this error: beta:0.0 1123.840121 seconds (1.19 G allocations: 137.227…

---

## [Saving solution data from ODEIntegrator types](https://discourse.julialang.org/t/saving-solution-data-from-odeintegrator-types/55533)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 1:39pm UTC](https://discourse.julialang.org/t/saving-solution-data-from-odeintegrator-types/55533 "2021-02-18T13:39:26Z")

</div>

Hi all, I’m not getting the output I expect when following the I/O: Saving and Loading Solution Data section of the DifferentialEquations.jl docs. I’ve solved my ODE via the integrator interface, so my type looks like …

---

## [Parsing Strings as Strings](https://discourse.julialang.org/t/parsing-strings-as-strings/13833)

<div class="topic-metadata">

**Author:** [@nphair](https://discourse.julialang.org/u/nphair)\
**Replies:** 7\
**Last updated:** [February 18, 2021, 1:31pm UTC](https://discourse.julialang.org/t/parsing-strings-as-strings/13833 "2021-02-18T13:31:15Z")

</div>

I was playing around with parse the other day and was a bit surprised by, julia\> str = "foo" julia\> parse(String, str) ERROR: MethodError: no method matching parse(::Type{String}, ::String) and similarly, julia\> str =…

---

## [Mixture models with binary indicator variables](https://discourse.julialang.org/t/mixture-models-with-binary-indicator-variables/55219)

<div class="topic-metadata">

**Author:** [@drbenvincent](https://discourse.julialang.org/u/drbenvincent)\
**Replies:** 11\
**Last updated:** [February 18, 2021, 12:43pm UTC](https://discourse.julialang.org/t/mixture-models-with-binary-indicator-variables/55219 "2021-02-18T12:43:08Z")

</div>

I’m having trouble with a number of models which all involve a mixture model with binary indicator variables. I’m reasonably sure they are all suffering from the same underlying issue, and I’m semi-convinced the problem …

---

## [Problem registering package in general registry](https://discourse.julialang.org/t/problem-registering-package-in-general-registry/55536)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 12:25pm UTC](https://discourse.julialang.org/t/problem-registering-package-in-general-registry/55536 "2021-02-18T12:25:42Z")

</div>

Hi, I’m trying to submit my first package to the general registry through JuliaHub and it keeps on failing on the auto merge step. The package url I entered is: GitHub - HapponomyOrg/EconoSim.jl: Economic simulation to…

---

## [Makie - Is there a \`show\_axis=false\` equivalent for the \`Axis\` object?](https://discourse.julialang.org/t/makie-is-there-a-show-axis-false-equivalent-for-the-axis-object/55535)

<div class="topic-metadata">

**Author:** [@jonalm](https://discourse.julialang.org/u/jonalm)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 11:04am UTC](https://discourse.julialang.org/t/makie-is-there-a-show-axis-false-equivalent-for-the-axis-object/55535 "2021-02-18T11:04:39Z")

</div>

Is it possible to mimic the old show\_axis=false behavior for Axis objects? potentially relevant issue: show\_axis parameter is ignored · Issue #88 · jkrumbiegel/MakieLayout.jl · GitHub

---

## [Local package in git submodule](https://discourse.julialang.org/t/local-package-in-git-submodule/55530)

<div class="topic-metadata">

**Author:** [@andrekal](https://discourse.julialang.org/u/andrekal)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 10:52am UTC](https://discourse.julialang.org/t/local-package-in-git-submodule/55530 "2021-02-18T10:52:03Z")

</div>

Hi, I am working on a project in which I develop a couple of different packages (and also keep a fork of a public package). I wanted to use git sub-modules to keep that in check. Specifically the tree looks something li…

---

## [Understanding the performance of Zygote](https://discourse.julialang.org/t/understanding-the-performance-of-zygote/55447)

<div class="topic-metadata">

**Author:** [@Himanshu\_Chaudhary](https://discourse.julialang.org/u/Himanshu_Chaudhary)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 10:37am UTC](https://discourse.julialang.org/t/understanding-the-performance-of-zygote/55447 "2021-02-18T10:37:27Z")

</div>

I remember reading somewhere that the cost of automatic differentiation is usually less than 2 times the cost of evaluating the function itself. I tried to benchmark a small code and the results that I got were a little…

---

## [Creating function that broadcast function over multiple keyword arguments](https://discourse.julialang.org/t/creating-function-that-broadcast-function-over-multiple-keyword-arguments/55491)

<div class="topic-metadata">

**Author:** [@matnbo](https://discourse.julialang.org/u/matnbo)\
**Replies:** 7\
**Last updated:** [February 18, 2021, 10:15am UTC](https://discourse.julialang.org/t/creating-function-that-broadcast-function-over-multiple-keyword-arguments/55491 "2021-02-18T10:15:11Z")

</div>

Dear all I come from the R community, and try to switch to Julia ) Assume I have a function f1 (fictive function below) f1 = function(x, y ; a = 1.5, b = 5) coef = a \* sum(x’y) + b (coef = coef, mod = 1) end whe…

---

## [Too many allocations?](https://discourse.julialang.org/t/too-many-allocations/55478)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 23\
**Last updated:** [February 18, 2021, 9:06am UTC](https://discourse.julialang.org/t/too-many-allocations/55478 "2021-02-18T09:06:28Z")

</div>

I’m thinking about optimizing performance and my mind initially goes to reducing the number of allocations. Below is a function with a loop that executes ~ 1,000,000 times. When I “time” the routine, I find that it exe…

---

## [Why is \`copy(adjoint)\` not an adjoint object?](https://discourse.julialang.org/t/why-is-copy-adjoint-not-an-adjoint-object/55371)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 12\
**Last updated:** [February 18, 2021, 7:03am UTC](https://discourse.julialang.org/t/why-is-copy-adjoint-not-an-adjoint-object/55371 "2021-02-18T07:03:11Z")

</div>

This surprised me: julia\> typeof(copy(rand(4,4)')) Matrix{Float64} (alias for Array{Float64, 2}) julia\> typeof(deepcopy(rand(4,4)')) LinearAlgebra.Adjoint{Float64, Matrix{Float64}} I have an algorithm which looks pret…

---

## [Postdoc Julia Econometrics Cipro](https://discourse.julialang.org/t/postdoc-julia-econometrics-cipro/55511)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 6:56am UTC](https://discourse.julialang.org/t/postdoc-julia-econometrics-cipro/55511 "2021-02-18T06:56:04Z")

</div>

I’m not related, but just noticed they put Julia as first…

---

## [Is it possible that \`JLD2\` /Julia can't read files from another drive? On Windows,](https://discourse.julialang.org/t/is-it-possible-that-jld2-julia-cant-read-files-from-another-drive-on-windows/55509)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 5:54am UTC](https://discourse.julialang.org/t/is-it-possible-that-jld2-julia-cant-read-files-from-another-drive-on-windows/55509 "2021-02-18T05:54:54Z")

</div>

Is it possible that JLD2 /Julia can’t read files from another drive? On Windows, my Julia extension is installed on C (infact, it’s installed in WSL2) and have an SD card thats assigned drive letter D for data files. But…

---

## [Querying WRDS Data using Julia](https://discourse.julialang.org/t/querying-wrds-data-using-julia/31835)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 13\
**Last updated:** [February 18, 2021, 3:44am UTC](https://discourse.julialang.org/t/querying-wrds-data-using-julia/31835 "2021-02-18T03:44:39Z")

</div>

I have written a short tutorial about querying WRDS data using Julia. A user only needs to input her username and password to work with WRDS remotely in Julia. Basically, I translated the existing tutorial about querying…

---

## [Interact widgets in Jupyter Notebook not reacting](https://discourse.julialang.org/t/interact-widgets-in-jupyter-notebook-not-reacting/52150)

<div class="topic-metadata">

**Author:** [@schmuelinsky](https://discourse.julialang.org/u/schmuelinsky)\
**Replies:** 8\
**Last updated:** [February 18, 2021, 2:55am UTC](https://discourse.julialang.org/t/interact-widgets-in-jupyter-notebook-not-reacting/52150 "2021-02-18T02:55:02Z")

</div>

I’ve been having a weird issue for a long time now. I’ve tried multiple things, but they only worked temporarily at best. I’m using the package Interact in Jupyter Notebook to create some interactive plots. But the prob…

---

## [Are there no docs for 1.6? can't find it in the menu here https://docs.julialang.o](https://discourse.julialang.org/t/are-there-no-docs-for-1-6-cant-find-it-in-the-menu-here-https-docs-julialang-o/55505)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 2:23am UTC](https://discourse.julialang.org/t/are-there-no-docs-for-1-6-cant-find-it-in-the-menu-here-https-docs-julialang-o/55505 "2021-02-18T02:23:18Z")

</div>

are there no docs for 1.6? can’t find it in the menu here https://docs.julialang.org/en/v1/|https://docs.julialang.org/en/v1/ Note that the original poster on Slack cannot see your response here on Discourse. Consider t…

---

## [Store complex and real numbers with same underlying](https://discourse.julialang.org/t/store-complex-and-real-numbers-with-same-underlying/55489)

<div class="topic-metadata">

**Author:** [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Replies:** 6\
**Last updated:** [February 18, 2021, 12:27am UTC](https://discourse.julialang.org/t/store-complex-and-real-numbers-with-same-underlying/55489 "2021-02-18T00:27:57Z")

</div>

Hi, I am trying to store multiple values in a struct. I’d like those values to have the same precision (expected use cases are floating point and fixed point types with several precisions). Some of those values may be c…

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

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