# Latest

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

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

**Page:** 1545

---

## [Preventing abuse with interactive Pluto notebooks](https://discourse.julialang.org/t/preventing-abuse-with-interactive-pluto-notebooks/45588)

<div class="topic-metadata">

**Author:** [@stroebel](https://discourse.julialang.org/u/stroebel)\
**Replies:** 5\
**Last updated:** [December 17, 2020, 1:14pm UTC](https://discourse.julialang.org/t/preventing-abuse-with-interactive-pluto-notebooks/45588 "2020-12-17T13:14:15Z")

</div>

I’ve never been a fan of notebooks but Pluto has converted me, I think. And this has led me to think about ways to share notebooks, especially with interactive elements (my first thought was about using it in a teaching …

---

## [Abstract supertype of AbstractAlgebra.jl polynomials and Floats](https://discourse.julialang.org/t/abstract-supertype-of-abstractalgebra-jl-polynomials-and-floats/51958)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 4\
**Last updated:** [December 17, 2020, 12:15pm UTC](https://discourse.julialang.org/t/abstract-supertype-of-abstractalgebra-jl-polynomials-and-floats/51958 "2020-12-17T12:15:52Z")

</div>

I have a struct that contains a real number describing some probability. The algorithm that uses this struct performs fairly simple arithmetic that I would like to be able to track both numerically (Floats) and symbolica…

---

## [Passing a Julia function to C, with a double\* input argument](https://discourse.julialang.org/t/passing-a-julia-function-to-c-with-a-double-input-argument/51966)

<div class="topic-metadata">

**Author:** [@stla](https://discourse.julialang.org/u/stla)\
**Replies:** 1\
**Last updated:** [December 17, 2020, 11:34am UTC](https://discourse.julialang.org/t/passing-a-julia-function-to-c-with-a-double-input-argument/51966 "2020-12-17T11:34:27Z")

</div>

Hello, I have to pass a Julia function to C. The C function has one input argument: a double\*. For example function myfun(x) return sum(x) end What is the way? Is it that: myfun\_c = @cfunction(myfun, Cdouble, (Ref…

---

## [How to use the Juno Debugger?](https://discourse.julialang.org/t/how-to-use-the-juno-debugger/51932)

<div class="topic-metadata">

**Author:** [@R\_Surya\_Narayan](https://discourse.julialang.org/u/R_Surya_Narayan)\
**Replies:** 5\
**Last updated:** [December 17, 2020, 12:13pm UTC](https://discourse.julialang.org/t/how-to-use-the-juno-debugger/51932 "2020-12-17T12:13:43Z")

</div>

Hello everyone, I am relatively new to Julia and I code using the Juno IDE that has the debugger pane towards the right. When I used the debugger, it points me back to the source where the error has occurred in one of t…

---

## [How to call my R package by RCall package inside julia?](https://discourse.julialang.org/t/how-to-call-my-r-package-by-rcall-package-inside-julia/51927)

<div class="topic-metadata">

**Author:** [@Ravinder\_Ram](https://discourse.julialang.org/u/Ravinder_Ram)\
**Replies:** 8\
**Last updated:** [December 17, 2020, 11:11am UTC](https://discourse.julialang.org/t/how-to-call-my-r-package-by-rcall-package-inside-julia/51927 "2020-12-17T11:11:26Z")

</div>

if I’ll call my own R package in julia… is my r code will run fast as C? I’m guessing here my r code running in julia jit compiler? please answer me… please

---

## [High-level package for Pluto interactivity?](https://discourse.julialang.org/t/high-level-package-for-pluto-interactivity/51968)

<div class="topic-metadata">

**Author:** [@Ayush\_Rawat](https://discourse.julialang.org/u/Ayush_Rawat)\
**Replies:** 1\
**Last updated:** [December 17, 2020, 10:49am UTC](https://discourse.julialang.org/t/high-level-package-for-pluto-interactivity/51968 "2020-12-17T10:49:27Z")

</div>

Is there any library that eases the implementation of interactive pluto notebooks? Pluto allows creation of HTML and javascript elements to add interactivity, but are there any packages that allow somebody not versed in…

---

## [Latest wisdom on Python vs. Julia for Economists (Applied Micro)?](https://discourse.julialang.org/t/latest-wisdom-on-python-vs-julia-for-economists-applied-micro/51942)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 8\
**Last updated:** [December 17, 2020, 10:28am UTC](https://discourse.julialang.org/t/latest-wisdom-on-python-vs-julia-for-economists-applied-micro/51942 "2020-12-17T10:28:31Z")

</div>

Hi, Early stage econ Phd student here focusing in micro theory but considering a shift/expansion into applied micro IO/health. I’ve previously learned some basic Python from a more traditional software engineering viewp…

---

## [Julia Binary Heap Benchmark](https://discourse.julialang.org/t/julia-binary-heap-benchmark/51945)

<div class="topic-metadata">

**Author:** [@ndrsh](https://discourse.julialang.org/u/ndrsh)\
**Replies:** 12\
**Last updated:** [December 17, 2020, 10:25am UTC](https://discourse.julialang.org/t/julia-binary-heap-benchmark/51945 "2020-12-17T10:25:26Z")

</div>

Hey Community. Seems like it might be possible that Julia gets adopted at Codeforces. In order to make that happen I need to provide an implementation for this Binary Heap benchmark. My Julia code is quite ugly, becaus…

---

## [When Julia 1.6.0 will be officially released?](https://discourse.julialang.org/t/when-julia-1-6-0-will-be-officially-released/51961)

<div class="topic-metadata">

**Author:** [@bigdataman2015](https://discourse.julialang.org/u/bigdataman2015)\
**Replies:** 5\
**Last updated:** [December 17, 2020, 10:19am UTC](https://discourse.julialang.org/t/when-julia-1-6-0-will-be-officially-released/51961 "2020-12-17T10:19:35Z")

</div>

Anyone know when Julia 1.6.0 will be officially released ? Thanks !

---

## [Simulation of a multivariate distribution](https://discourse.julialang.org/t/simulation-of-a-multivariate-distribution/51750)

<div class="topic-metadata">

**Author:** [@stla](https://discourse.julialang.org/u/stla)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 10:05am UTC](https://discourse.julialang.org/t/simulation-of-a-multivariate-distribution/51750 "2020-12-17T10:05:05Z")

</div>

Hello, R has the package ‘Runuran’, a wrapper of the UNU.RAN library. It allows to simulate a distribution given its unnormalized density, possibly a multivariate distribution. Is there a package for Julia which allows…

---

## [Problem in addidng a package to new created package dependencies](https://discourse.julialang.org/t/problem-in-addidng-a-package-to-new-created-package-dependencies/51964)

<div class="topic-metadata">

**Author:** [@Amirrezz94](https://discourse.julialang.org/u/Amirrezz94)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 9:04am UTC](https://discourse.julialang.org/t/problem-in-addidng-a-package-to-new-created-package-dependencies/51964 "2020-12-17T09:04:26Z")

</div>

Hi all, I recently created a package (for the first time!) and I have a problem with precompiling my package. When I try using PkgMPC in julia repl I get this warning about lack of being required packages in PkgMPC depe…

---

## [Variable not declared](https://discourse.julialang.org/t/variable-not-declared/51956)

<div class="topic-metadata">

**Author:** [@vaeli](https://discourse.julialang.org/u/vaeli)\
**Replies:** 3\
**Last updated:** [December 17, 2020, 8:11am UTC](https://discourse.julialang.org/t/variable-not-declared/51956 "2020-12-17T08:11:03Z")

</div>

Can you explain why, in Julia 1.0.3, this code gives error: A = “” for x in \[1, 2, 3\] if 1 == 1 A \*= “…” end end I tested in Julia 1.5, where it works as expected, but I want to work more with a stable version. Tam…

---

## [Understanding Flux and Zygote : Mutating errors not supported and a new error](https://discourse.julialang.org/t/understanding-flux-and-zygote-mutating-errors-not-supported-and-a-new-error/51860)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 4\
**Last updated:** [December 17, 2020, 5:39am UTC](https://discourse.julialang.org/t/understanding-flux-and-zygote-mutating-errors-not-supported-and-a-new-error/51860 "2020-12-17T05:39:34Z")

</div>

Hello, I am having some trouble about understanding the backward pass in Flux using Zygote. I have a model with a user defined loss function. The problem that I am facing is that when calculating the the loss the output…

---

## [BoundsError with SharedArrays in remote node](https://discourse.julialang.org/t/boundserror-with-sharedarrays-in-remote-node/51670)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 1\
**Last updated:** [December 17, 2020, 1:28am UTC](https://discourse.julialang.org/t/boundserror-with-sharedarrays-in-remote-node/51670 "2020-12-17T01:28:34Z")

</div>

I want to broadcast a matrix into some remote nodes to avoid communication. My best guess is to use SharedArrays, but, when I try to copy the data on remote node, I got a error. Here an example: args = (exeflags=\`--thr…

---

## [Towards standalone (package/project/etc.) management app](https://discourse.julialang.org/t/towards-standalone-package-project-etc-management-app/51482)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 8\
**Last updated:** [December 16, 2020, 9:10pm UTC](https://discourse.julialang.org/t/towards-standalone-package-project-etc-management-app/51482 "2020-12-16T21:10:26Z")

</div>

Hi all! I have been thinking, building, and experimenting standalone manager app implemented in pure Julia (well there are about 50 loc of C in PackageCompiler) in the past few months which is the IonCLI. I’d like to sh…

---

## [Debugger uses old cached (?) file and ignores breakpoints](https://discourse.julialang.org/t/debugger-uses-old-cached-file-and-ignores-breakpoints/51562)

<div class="topic-metadata">

**Author:** [@xyz1](https://discourse.julialang.org/u/xyz1)\
**Replies:** 4\
**Last updated:** [December 16, 2020, 9:06pm UTC](https://discourse.julialang.org/t/debugger-uses-old-cached-file-and-ignores-breakpoints/51562 "2020-12-16T21:06:51Z")

</div>

Hi, I have a problem with the VS Code debugger. Unfortunately I have the same problem on 2 distinct PCs independently. Whenever I run the debugger, then program ends and then change some of my julia code, it breaks the …

---

## [How to uniformly get part of string elements from array of strings](https://discourse.julialang.org/t/how-to-uniformly-get-part-of-string-elements-from-array-of-strings/51776)

<div class="topic-metadata">

**Author:** [@Emmanouil\_Bakirtzis](https://discourse.julialang.org/u/Emmanouil_Bakirtzis)\
**Replies:** 4\
**Last updated:** [December 16, 2020, 8:24pm UTC](https://discourse.julialang.org/t/how-to-uniformly-get-part-of-string-elements-from-array-of-strings/51776 "2020-12-16T20:24:16Z")

</div>

Suppose that we have the array z = \["aaa","bbb","ccc"\] and we want to get a new array where each element has only the first two characters z\_target = \["aa","bb","cc"\] I tried getindex.(z,1:2) but it thows the error …

---

## [Plot inside a loop again\[, but now in Pluto\]](https://discourse.julialang.org/t/plot-inside-a-loop-again-but-now-in-pluto/49295)

<div class="topic-metadata">

**Author:** [@Dsantra92](https://discourse.julialang.org/u/Dsantra92)\
**Replies:** 6\
**Last updated:** [December 16, 2020, 8:04pm UTC](https://discourse.julialang.org/t/plot-inside-a-loop-again-but-now-in-pluto/49295 "2020-12-16T20:04:00Z")

</div>

using Plots;plotly() begin plot() for i = 0:0.1:1 vline!(\[i\], leg = :none) sleep(0.01) end #plot!() end I want to the plot for for each iteration of the loop.How can I do it?

---

## [Part-time Julia development work (stats, NLP, optimization)](https://discourse.julialang.org/t/part-time-julia-development-work-stats-nlp-optimization/51390)

<div class="topic-metadata">

**Author:** [@keorn](https://discourse.julialang.org/u/keorn)\
**Replies:** 1\
**Last updated:** [December 16, 2020, 7:43pm UTC](https://discourse.julialang.org/t/part-time-julia-development-work-stats-nlp-optimization/51390 "2020-12-16T19:43:37Z")

</div>

Help out at an early stage startup with a variety of Julia coding tasks. You can learn more on our site and see an example open source task that you would work on first. See the previous work we advertised on this foru…

---

## [Access Variable (or Variable Values) using String Variable Name](https://discourse.julialang.org/t/access-variable-or-variable-values-using-string-variable-name/51905)

<div class="topic-metadata">

**Author:** [@Steve\_Shupe](https://discourse.julialang.org/u/Steve_Shupe)\
**Replies:** 3\
**Last updated:** [December 16, 2020, 6:54pm UTC](https://discourse.julialang.org/t/access-variable-or-variable-values-using-string-variable-name/51905 "2020-12-16T18:54:39Z")

</div>

I’m working through the Advent of Code problems. One of them involves keeping track of directional moves, given as strings (“N”, “S”, “E”, “W”) and integer values. I’ve set up variables N, S, E, and W to track movement. …

---

## [DifferentialEquations error: "Event repeated at the same time"](https://discourse.julialang.org/t/differentialequations-error-event-repeated-at-the-same-time/51830)

<div class="topic-metadata">

**Author:** [@Bastien](https://discourse.julialang.org/u/Bastien)\
**Replies:** 12\
**Last updated:** [December 16, 2020, 6:38pm UTC](https://discourse.julialang.org/t/differentialequations-error-event-repeated-at-the-same-time/51830 "2020-12-16T18:38:01Z")

</div>

Hi, I’m trying to reproduce results presented in Roup et al. where a verge and foliot mechanism used in clocks is simulated. I tried to use a VectorContinuousCallback to determine the times at which collision events hap…

---

## [Jl\_get\_function() throwing Segmentation fault](https://discourse.julialang.org/t/jl-get-function-throwing-segmentation-fault/37186)

<div class="topic-metadata">

**Author:** [@AndresGomez97](https://discourse.julialang.org/u/AndresGomez97)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 5:04pm UTC](https://discourse.julialang.org/t/jl-get-function-throwing-segmentation-fault/37186 "2020-12-16T17:04:59Z")

</div>

I was trying to use jl\_get\_function() julia.h method to call a method implemented on a different .jl file in julia, being both files in the same directory and on Julia1.3.1 . C file: jl\_init(); jl\_eval\_string("include…

---

## [Why is Module concrete?](https://discourse.julialang.org/t/why-is-module-concrete/51877)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 12\
**Last updated:** [December 16, 2020, 4:34pm UTC](https://discourse.julialang.org/t/why-is-module-concrete/51877 "2020-12-16T16:34:49Z")

</div>

I repeatedly find myself thinking that having a unique type for every module would open possibilities, like dispatching and use of Modules as type parameters. There are workarounds, e.g.: https://github.com/SciML/Runti…

---

## [Would i get financial support for https://juliacomputing.com/training/? \[ Any support for students from all over world\]](https://discourse.julialang.org/t/would-i-get-financial-support-for-https-juliacomputing-com-training-any-support-for-students-from-all-over-world/51889)

<div class="topic-metadata">

**Author:** [@vedasulo](https://discourse.julialang.org/u/vedasulo)\
**Replies:** 4\
**Last updated:** [December 16, 2020, 4:27pm UTC](https://discourse.julialang.org/t/would-i-get-financial-support-for-https-juliacomputing-com-training-any-support-for-students-from-all-over-world/51889 "2020-12-16T16:27:43Z")

</div>

Is it possible to get financial aid for student who want to make further career in julia/ml. Thank you :slight\_smile:

---

## [How to generate n samples from a peculiar (normally distributed) distribution](https://discourse.julialang.org/t/how-to-generate-n-samples-from-a-peculiar-normally-distributed-distribution/51911)

<div class="topic-metadata">

**Author:** [@Jaidy](https://discourse.julialang.org/u/Jaidy)\
**Replies:** 1\
**Last updated:** [December 16, 2020, 4:12pm UTC](https://discourse.julialang.org/t/how-to-generate-n-samples-from-a-peculiar-normally-distributed-distribution/51911 "2020-12-16T16:12:58Z")

</div>

Hi, I am trying to generate n samples from a distribution as follows: each sample is of size m. Say x is a sample. Then for each of the components {x\_1,x\_2,…x\_m}, x\_i follows a normal distribution with mean 0 and varia…

---

## [Warn/error for empty varargs? (push!, vcat, etc.)](https://discourse.julialang.org/t/warn-error-for-empty-varargs-push-vcat-etc/51919)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 4:04pm UTC](https://discourse.julialang.org/t/warn-error-for-empty-varargs-push-vcat-etc/51919 "2020-12-16T16:04:36Z")

</div>

a = \[1, 2\] push!(a) The second line here is effectively a nop, but it runs without any indication that something weird is going on. It’s highly unlikely that this code was intended as is, so it would be useful if we cou…

---

## [How to use units in Cosmology.jl](https://discourse.julialang.org/t/how-to-use-units-in-cosmology-jl/51935)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 3:42pm UTC](https://discourse.julialang.org/t/how-to-use-units-in-cosmology-jl/51935 "2020-12-16T15:42:06Z")

</div>

I have installed and now am trying to use the Cosmology.jl package. When I try, from a recently launched Julia REPL: using Cosmology c = cosmology() hubble\_dist(c,0) I get the expected output: 434.818231884059 Mpc. Ho…

---

## [HTTP.jl doesn't seem to be good at handling over 1k concurrent requests, in comparison to an alternative in Python?](https://discourse.julialang.org/t/http-jl-doesnt-seem-to-be-good-at-handling-over-1k-concurrent-requests-in-comparison-to-an-alternative-in-python/38281)

<div class="topic-metadata">

**Author:** [@aviatesk](https://discourse.julialang.org/u/aviatesk)\
**Replies:** 30\
**Last updated:** [December 16, 2020, 3:24pm UTC](https://discourse.julialang.org/t/http-jl-doesnt-seem-to-be-good-at-handling-over-1k-concurrent-requests-in-comparison-to-an-alternative-in-python/38281 "2020-12-16T15:24:23Z")

</div>

I’m implementing an simple API server that is supposed to handle over concurrent 1k requests at a time. I have a code like below: using HTTP: @register, Response, handle const HEADERS = \["Content-Type" =\> "application…

---

## [Providing variable length args to \`run\` command?](https://discourse.julialang.org/t/providing-variable-length-args-to-run-command/51882)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 2:58pm UTC](https://discourse.julialang.org/t/providing-variable-length-args-to-run-command/51882 "2020-12-16T14:58:33Z")

</div>

Hey all. I’m having some trouble using the run command with a variable number of args to the thing I’m trying to run. For context, I’m playing around with some ways to very directly interact with Gnuplot scripts. I’m awa…

---

## [Better Workflow with source code dependency graphs](https://discourse.julialang.org/t/better-workflow-with-source-code-dependency-graphs/51139)

<div class="topic-metadata">

**Author:** [@Volker\_Weissmann](https://discourse.julialang.org/u/Volker_Weissmann)\
**Replies:** 4\
**Last updated:** [December 16, 2020, 2:55pm UTC](https://discourse.julialang.org/t/better-workflow-with-source-code-dependency-graphs/51139 "2020-12-16T14:55:41Z")

</div>

I was annoyed that everytime I hit “run all” in my IDE, it re-runs everything, including the parts that did not change. Therefore I created SimpleCache.jl. It uses reflection techniques to generate a dependency graph of…

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

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