# Latest

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

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

**Page:** 1657

---

## [Add field to standard JSON serialization](https://discourse.julialang.org/t/add-field-to-standard-json-serialization/45112)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 3:21pm UTC](https://discourse.julialang.org/t/add-field-to-standard-json-serialization/45112 "2020-08-17T15:21:24Z")

</div>

Hello, I basically want to achieve what is explained in this post: When calling JSON.json on an object, add a Pair type =\> string(typeof(t)) for child types of a certain abstract type. A cpuple restrictions: I need t…

---

## [IJulia install issue](https://discourse.julialang.org/t/ijulia-install-issue/45037)

<div class="topic-metadata">

**Author:** [@Nikesh\_Bansal](https://discourse.julialang.org/u/Nikesh_Bansal)\
**Replies:** 40\
**Last updated:** [August 17, 2020, 3:12pm UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037 "2020-08-17T15:12:12Z")

</div>

Hi, I am trying to install IJulia on a Windows 10 system with Julia 1.5.0 version. However , I am facing the following issue. Any help is appreciated. thanks. (@v1.5) pkg\> add IJula Installing known registries into C:\\…

---

## [Turing Model debug info](https://discourse.julialang.org/t/turing-model-debug-info/40440)

<div class="topic-metadata">

**Author:** [@rsteckel](https://discourse.julialang.org/u/rsteckel)\
**Replies:** 6\
**Last updated:** [August 17, 2020, 2:55pm UTC](https://discourse.julialang.org/t/turing-model-debug-info/40440 "2020-08-17T14:55:26Z")

</div>

Is there a way to get more information about when Turing is unable to sample from a model? For example, I tried a simple (univariate) mixture of gaussians model and when I try to sample from it, I get this error: ERROR…

---

## [Julia not found in VSCode](https://discourse.julialang.org/t/julia-not-found-in-vscode/45059)

<div class="topic-metadata">

**Author:** [@Sanji\_Vinsmoke](https://discourse.julialang.org/u/Sanji_Vinsmoke)\
**Replies:** 14\
**Last updated:** [August 17, 2020, 2:33pm UTC](https://discourse.julialang.org/t/julia-not-found-in-vscode/45059 "2020-08-17T14:33:30Z")

</div>

I tried using julia in VSCode. But whenever I try to run the code from VSCode, I get \[Running\] julia “/home/ved/Documents/ProgrammingProjectsJulia/1.jl” /bin/sh: 1: julia: not found \[Done\] exited with code=127 in 0.0…

---

## [DifferentialEquations.jl, Error: Exponentiation yielding a complex result requires a complex argument](https://discourse.julialang.org/t/differentialequations-jl-error-exponentiation-yielding-a-complex-result-requires-a-complex-argument/44935)

<div class="topic-metadata">

**Author:** [@Gregers](https://discourse.julialang.org/u/Gregers)\
**Replies:** 6\
**Last updated:** [August 17, 2020, 2:28pm UTC](https://discourse.julialang.org/t/differentialequations-jl-error-exponentiation-yielding-a-complex-result-requires-a-complex-argument/44935 "2020-08-17T14:28:56Z")

</div>

Hey, I am trying to solve a boundary value problem using DifferentialEquations.jl. Unfortunately, I get the error: “DomainError with -117.96192353385844: Exponentiation yielding a complex result requires a complex ar…

---

## [Understanding how HTTP works](https://discourse.julialang.org/t/understanding-how-http-works/44980)

<div class="topic-metadata">

**Author:** [@Bucephalus](https://discourse.julialang.org/u/Bucephalus)\
**Replies:** 12\
**Last updated:** [August 17, 2020, 2:11pm UTC](https://discourse.julialang.org/t/understanding-how-http-works/44980 "2020-08-17T14:11:42Z")

</div>

I’m trying to learn programming in Julia. i’m using this package HTTP.jl can anybody explain why this first request won’t work for me, however the second one straight out of the documentation for HTTP.jl works? This…

---

## [Arrays, MPI, and broadcasting](https://discourse.julialang.org/t/arrays-mpi-and-broadcasting/45098)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 5\
**Last updated:** [August 17, 2020, 2:03pm UTC](https://discourse.julialang.org/t/arrays-mpi-and-broadcasting/45098 "2020-08-17T14:03:46Z")

</div>

I would like to use some kind of AbstractArray based on MPI such that broadcasting can be used for things like +, \*, muladd, which are necessary for simple explicit Runge-Kutta methods (e.g. from OrdinaryDiffEq.jl) cus…

---

## [\[RFC\] Dropping support for Julia \< 1.3 in Turing.jl?](https://discourse.julialang.org/t/rfc-dropping-support-for-julia-1-3-in-turing-jl/45015)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 4\
**Last updated:** [August 17, 2020, 1:45pm UTC](https://discourse.julialang.org/t/rfc-dropping-support-for-julia-1-3-in-turing-jl/45015 "2020-08-17T13:45:12Z")

</div>

Hi! It seems that the Julia SciML and FluxML ecosystems are moving away from Julia 1.0 and using Julia 1.3 as the new lower bound, e.g. DifferentialEquations, Flux, Zygote, Tracker, NNlib, etc. In Turing.jl, we are cons…

---

## [Juno buttons in the sidebar?](https://discourse.julialang.org/t/juno-buttons-in-the-sidebar/45105)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 0\
**Last updated:** [August 17, 2020, 1:44pm UTC](https://discourse.julialang.org/t/juno-buttons-in-the-sidebar/45105 "2020-08-17T13:44:49Z")

</div>

I liked the play (start repl), pause, stop, save buttons in Juno. Is there a way to manually create them ? Or is it planned to add them to VS ?

---

## [DiffEq result for a dynamical system differs from wolframalpha](https://discourse.julialang.org/t/diffeq-result-for-a-dynamical-system-differs-from-wolframalpha/45101)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 3\
**Last updated:** [August 17, 2020, 1:38pm UTC](https://discourse.julialang.org/t/diffeq-result-for-a-dynamical-system-differs-from-wolframalpha/45101 "2020-08-17T13:38:52Z")

</div>

I want to solve this differential equation: (d^2 y(t))/(dt^2) = -0.1×(dy(t))/(dt) + 0.5 y(t) - 2 y(t)^3 + 2 cos(2.4 t) How I tried to solve it using DiffEq: using DifferentialEquations using Plots function duffing!(d…

---

## [Reloading by re-executing include() doesn't seem to work](https://discourse.julialang.org/t/reloading-by-re-executing-include-doesnt-seem-to-work/45075)

<div class="topic-metadata">

**Author:** [@akdor1154](https://discourse.julialang.org/u/akdor1154)\
**Replies:** 4\
**Last updated:** [August 17, 2020, 12:23pm UTC](https://discourse.julialang.org/t/reloading-by-re-executing-include-doesnt-seem-to-work/45075 "2020-08-17T12:23:23Z")

</div>

Hey all, I’m trying to run a reloading workflow just one step in complexity above the basic workflow as described in the manual. :slight\_smile: I have a MWE which I believe fits the same pattern as given in the manual,…

---

## [Error in constraint statement](https://discourse.julialang.org/t/error-in-constraint-statement/45088)

<div class="topic-metadata">

**Author:** [@mamo](https://discourse.julialang.org/u/mamo)\
**Replies:** 2\
**Last updated:** [August 17, 2020, 10:20am UTC](https://discourse.julialang.org/t/error-in-constraint-statement/45088 "2020-08-17T10:20:24Z")

</div>

I can not identify the reason for “LoadError: syntax: missing comma or ) in argument list in expression starting at” in the first line of this constraint: @constraint(problem1, raball\[r in RAW, k in 1:interval:length(T…

---

## [\[Question\] Python  \`scipy.stats\`  alternative for Julia](https://discourse.julialang.org/t/question-python-scipy-stats-alternative-for-julia/45083)

<div class="topic-metadata">

**Author:** [@rakesh4real](https://discourse.julialang.org/u/rakesh4real)\
**Replies:** 2\
**Last updated:** [August 17, 2020, 8:07am UTC](https://discourse.julialang.org/t/question-python-scipy-stats-alternative-for-julia/45083 "2020-08-17T08:07:03Z")

</div>

Hi, Can I know if there is any Python scipy.stats alternative for Julia. If yes, can anyone please share the link. If not available, is there some similar project where I can get built-in implementations of different …

---

## [Speed up simple product accumulator loop](https://discourse.julialang.org/t/speed-up-simple-product-accumulator-loop/44920)

<div class="topic-metadata">

**Author:** [@stst](https://discourse.julialang.org/u/stst)\
**Replies:** 6\
**Last updated:** [August 17, 2020, 7:52am UTC](https://discourse.julialang.org/t/speed-up-simple-product-accumulator-loop/44920 "2020-08-17T07:52:42Z")

</div>

Hello Julia community, I need help with speeding up an inner loop in a larger project (running on Julia 1.5.0). Here is a MWE. The loop accumulates multiplicatively into a vector. using BenchmarkTools function signal1…

---

## [Objective function declaration issue](https://discourse.julialang.org/t/objective-function-declaration-issue/45028)

<div class="topic-metadata">

**Author:** [@mamo](https://discourse.julialang.org/u/mamo)\
**Replies:** 4\
**Last updated:** [August 17, 2020, 7:43am UTC](https://discourse.julialang.org/t/objective-function-declaration-issue/45028 "2020-08-17T07:43:46Z")

</div>

If I have a member of an objective function: sum((setup\_cost\[f,p,j\]\*PR\[f,p,j,t\]+oper\_cost\[p,j\]\*PRD\[o,f,p,j,t\]) for o in O,f in FAM, p in PROD\[f\], j in U, t in TIME) and I want to limit the counter o, f and p on 1…end-…

---

## [What is the bool in a module expr?](https://discourse.julialang.org/t/what-is-the-bool-in-a-module-expr/45079)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 6:31am UTC](https://discourse.julialang.org/t/what-is-the-bool-in-a-module-expr/45079 "2020-08-17T06:31:46Z")

</div>

A module expr contains a Bool as the first arg julia\> :(module A end).args 3-element Array{Any,1}: true :A quote #= none:1 =# #= none:1 =# end What is it for? How would you name it?

---

## [Accessing constraints from JuMP model created in function](https://discourse.julialang.org/t/accessing-constraints-from-jump-model-created-in-function/45044)

<div class="topic-metadata">

**Author:** [@fnbillimoria](https://discourse.julialang.org/u/fnbillimoria)\
**Replies:** 4\
**Last updated:** [August 17, 2020, 6:07am UTC](https://discourse.julialang.org/t/accessing-constraints-from-jump-model-created-in-function/45044 "2020-08-17T06:07:16Z")

</div>

Hello, I have specified a function which creates a JuMP model as below. I can call the function to create the model, and subsequently can optimize! it. I wish to access the shadow prices/duals of the constraint create…

---

## [Speeding up creation of maximum mask array](https://discourse.julialang.org/t/speeding-up-creation-of-maximum-mask-array/45001)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 11\
**Last updated:** [August 17, 2020, 6:01am UTC](https://discourse.julialang.org/t/speeding-up-creation-of-maximum-mask-array/45001 "2020-08-17T06:01:48Z")

</div>

I’ve a program where it needs a mask array which is created by filling all column-wise maxima positions with 1 and others with 0. I want the mask to have only one 1 filled per column. I can do this by x = rand(3, 3); m…

---

## [ForwardDiff.jl and its Dual Type question](https://discourse.julialang.org/t/forwarddiff-jl-and-its-dual-type-question/45071)

<div class="topic-metadata">

**Author:** [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Replies:** 4\
**Last updated:** [August 17, 2020, 4:23am UTC](https://discourse.julialang.org/t/forwarddiff-jl-and-its-dual-type-question/45071 "2020-08-17T04:23:58Z")

</div>

Hello fellow Julia users, I want to ask a question using ForwardDiff.jl. using LinearAlgebra, Statistics, Distributions, Random using Optim, ForwardDiff using Optim: converged, maximum, maximizer, minimizer, iterations…

---

## [Performance and allocation issue with arrays of functions (v1.5)](https://discourse.julialang.org/t/performance-and-allocation-issue-with-arrays-of-functions-v1-5/45013)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 6\
**Last updated:** [August 17, 2020, 2:44am UTC](https://discourse.julialang.org/t/performance-and-allocation-issue-with-arrays-of-functions-v1-5/45013 "2020-08-17T02:44:14Z")

</div>

I have an ODE type problem where I generate a sequence of values, x\_n, that, in principle, may be in a comparatively high dimensional space. Often, I don’t need to record teh full values, but rather, just some scalar va…

---

## [Array conversion](https://discourse.julialang.org/t/array-conversion/44901)

<div class="topic-metadata">

**Author:** [@vaglino](https://discourse.julialang.org/u/vaglino)\
**Replies:** 5\
**Last updated:** [August 17, 2020, 2:37am UTC](https://discourse.julialang.org/t/array-conversion/44901 "2020-08-17T02:37:06Z")

</div>

How can we convert a 2-element array where each element is a row vector of size N to an array of size 2 by N? Thanks

---

## [Spark.jl: Can we abandon RDD API?](https://discourse.julialang.org/t/spark-jl-can-we-abandon-rdd-api/45063)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 1:01am UTC](https://discourse.julialang.org/t/spark-jl-can-we-abandon-rdd-api/45063 "2020-08-17T01:01:19Z")

</div>

Cross-posting from GitHub issue. Originally, Spark.jl was developed for Spark 1.x with its RDD interface, e.g. most useful functions were map , filter , etc. In Spark 2.0, the default interface changed to Dataset ( D…

---

## [Buffer for CircularDeque](https://discourse.julialang.org/t/buffer-for-circulardeque/45041)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 5\
**Last updated:** [August 16, 2020, 11:17pm UTC](https://discourse.julialang.org/t/buffer-for-circulardeque/45041 "2020-08-16T23:17:35Z")

</div>

Good day folks of Julialand! If I have something similar to the following function foo(x) w = 50 d = CircularDeque{Int64}(w) # Do some calculation based on x using d and return the result end for i in 1:10000…

---

## [CuArray find first negative value along columns](https://discourse.julialang.org/t/cuarray-find-first-negative-value-along-columns/45012)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 4\
**Last updated:** [August 16, 2020, 10:38pm UTC](https://discourse.julialang.org/t/cuarray-find-first-negative-value-along-columns/45012 "2020-08-16T22:38:03Z")

</div>

I have the following which gives the correct result, but I need to keep the result on the device. diffs = CuArray(\[-0.1 0.2 0.1;-0.2 -0.2 -0.3\]) firstmatch = map(x-\>CUDA.findfirst(y-\>y\<0,x),CUDA.eachslice(diffs,dims=2))…

---

## [Alter Date List in dd/mm/yyyy format to yyyy format](https://discourse.julialang.org/t/alter-date-list-in-dd-mm-yyyy-format-to-yyyy-format/45031)

<div class="topic-metadata">

**Author:** [@torieowers](https://discourse.julialang.org/u/torieowers)\
**Replies:** 4\
**Last updated:** [August 16, 2020, 10:24pm UTC](https://discourse.julialang.org/t/alter-date-list-in-dd-mm-yyyy-format-to-yyyy-format/45031 "2020-08-16T22:24:32Z")

</div>

Hi there! Could anyone help me alter a column of data (49019-element Array{String,1}:slight\_smile: to drop the dd/mm and just leave the year? I have tried working\_df\[!, :DATE\] |\> string |\> Date and I get the Error A…

---

## [Modules and namespaces](https://discourse.julialang.org/t/modules-and-namespaces/45027)

<div class="topic-metadata">

**Author:** [@Holdmycoffee](https://discourse.julialang.org/u/Holdmycoffee)\
**Replies:** 6\
**Last updated:** [August 16, 2020, 9:36pm UTC](https://discourse.julialang.org/t/modules-and-namespaces/45027 "2020-08-16T21:36:28Z")

</div>

Hey everyone, so I have a weird namespace issue. I import a struct “parameter” into a module QuadratureTypes, then import a function which takes an instance of parameter as input from QadratureTypes into another module, …

---

## [LDAPClient.jl](https://discourse.julialang.org/t/ldapclient-jl/45062)

<div class="topic-metadata">

**Author:** [@felipenoris](https://discourse.julialang.org/u/felipenoris)\
**Replies:** 1\
**Last updated:** [August 16, 2020, 9:28pm UTC](https://discourse.julialang.org/t/ldapclient-jl/45062 "2020-08-16T21:28:45Z")

</div>

Enjoy!

---

## [Name suggestions for VS Code](https://discourse.julialang.org/t/name-suggestions-for-vs-code/43958)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 75\
**Last updated:** [August 16, 2020, 9:23pm UTC](https://discourse.julialang.org/t/name-suggestions-for-vs-code/43958 "2020-08-16T21:23:19Z")

</div>

Name suggestions: Culia Coolia Cudia Codia Edit: JCodia

---

## [Discovery of possible keywords for kwargs... Maybe we need Base.optional\_keywords?](https://discourse.julialang.org/t/discovery-of-possible-keywords-for-kwargs-maybe-we-need-base-optional-keywords/44989)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 7\
**Last updated:** [August 16, 2020, 8:41pm UTC](https://discourse.julialang.org/t/discovery-of-possible-keywords-for-kwargs-maybe-we-need-base-optional-keywords/44989 "2020-08-16T20:41:25Z")

</div>

I think we need better tooling to discover optional keyword arguments. Maybe this needs to be dealt with in Base, rather than VSCode, Juno, etc. Consider the following scenario: In Makie, we have many plotting function…

---

## [Julia not found in doom-emacs](https://discourse.julialang.org/t/julia-not-found-in-doom-emacs/45060)

<div class="topic-metadata">

**Author:** [@Sanji\_Vinsmoke](https://discourse.julialang.org/u/Sanji_Vinsmoke)\
**Replies:** 0\
**Last updated:** [August 16, 2020, 7:59pm UTC](https://discourse.julialang.org/t/julia-not-found-in-doom-emacs/45060 "2020-08-16T19:59:00Z")

</div>

I want to use julia in doom-emacs. But I can’t open REPL or run the code using C-c C-c. I have never used emacs before but it seems that it is quite good. Hence, can someone please help me with this? Thank you.

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

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