# Latest

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

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

**Page:** 1685

---

## [How to make plot legend have names instead of "y1, y2, ..., yn"](https://discourse.julialang.org/t/how-to-make-plot-legend-have-names-instead-of-y1-y2-yn/43270)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 7\
**Last updated:** [July 20, 2020, 5:27pm UTC](https://discourse.julialang.org/t/how-to-make-plot-legend-have-names-instead-of-y1-y2-yn/43270 "2020-07-20T17:27:31Z")

</div>

Much to my chagrin, after reading the Plots.jl Tutorial in its entirety I can’t get this to work: histogram(\[\[1,2,3,1\],\[1,2,2,2,2\]\],labels=\["foo","bar"\]) Gives (obviously I don’t want arrays for variable names): May…

---

## [Julia equivalent for an ndarray datatype object in python](https://discourse.julialang.org/t/julia-equivalent-for-an-ndarray-datatype-object-in-python/43080)

<div class="topic-metadata">

**Author:** [@onafinedayforscience](https://discourse.julialang.org/u/onafinedayforscience)\
**Replies:** 16\
**Last updated:** [July 20, 2020, 4:24pm UTC](https://discourse.julialang.org/t/julia-equivalent-for-an-ndarray-datatype-object-in-python/43080 "2020-07-20T16:24:23Z")

</div>

I am converting a large Python code into Julia. In my Python code, I have the ndarray datatype objects that allow me to add fieldnames to each value of an array (as in the name of a chemical species and its concentrati…

---

## [Issue passing array to FORTRAN subroutine](https://discourse.julialang.org/t/issue-passing-array-to-fortran-subroutine/43383)

<div class="topic-metadata">

**Author:** [@AstroBarker](https://discourse.julialang.org/u/AstroBarker)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 4:20pm UTC](https://discourse.julialang.org/t/issue-passing-array-to-fortran-subroutine/43383 "2020-07-20T16:20:20Z")

</div>

I’m trying to use Julia to wrap a FORTRAN subroutine taking several arrays as arguments. The issue is that the subroutine receives garbage as the array values (1e-314 etc), so I must be defining something wrong for the c…

---

## [Interested in using TaylorSeries.jl as an implementation of high-order automatic differentiation / AD , as presented in the book by W. Tucker](https://discourse.julialang.org/t/interested-in-using-taylorseries-jl-as-an-implementation-of-high-order-automatic-differentiation-ad-as-presented-in-the-book-by-w-tucker/43356)

<div class="topic-metadata">

**Author:** [@Marc.Cox](https://discourse.julialang.org/u/Marc.Cox)\
**Replies:** 5\
**Last updated:** [July 20, 2020, 4:08pm UTC](https://discourse.julialang.org/t/interested-in-using-taylorseries-jl-as-an-implementation-of-high-order-automatic-differentiation-ad-as-presented-in-the-book-by-w-tucker/43356 "2020-07-20T16:08:06Z")

</div>

Below is my (initial) solution to an issue I was having with TaylorSeries.jl , which leads to another question \>\> And more generally I’m interested in using TaylorSeries.jl as an implementation of high-order automatic di…

---

## [Handling "Type IOError has no field status" with some delay](https://discourse.julialang.org/t/handling-type-ioerror-has-no-field-status-with-some-delay/43369)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 1:14pm UTC](https://discourse.julialang.org/t/handling-type-ioerror-has-no-field-status-with-some-delay/43369 "2020-07-20T13:14:58Z")

</div>

I make regular calls to an API. Sometimes the call results in the error “type IOError has no field status”. Rather than my script stopping, I would like to handle that error and permit the script to continue. What is th…

---

## [How to test if something is a stack trace](https://discourse.julialang.org/t/how-to-test-if-something-is-a-stack-trace/43363)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 10:08am UTC](https://discourse.julialang.org/t/how-to-test-if-something-is-a-stack-trace/43363 "2020-07-20T10:08:01Z")

</div>

I have a function that works on an array and collects the exceptions and backtraces encountered during processing. For the tests I need to check if something is a backtrace. The following works, but seems very fragile: …

---

## [Question about Clustering](https://discourse.julialang.org/t/question-about-clustering/43359)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 7\
**Last updated:** [July 20, 2020, 7:28am UTC](https://discourse.julialang.org/t/question-about-clustering/43359 "2020-07-20T07:28:51Z")

</div>

Could you please introduce some Pkg based on TNN clustering?thankS！！！

---

## [Reducing dynamic dispatch using type inference?](https://discourse.julialang.org/t/reducing-dynamic-dispatch-using-type-inference/43233)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 4\
**Last updated:** [July 20, 2020, 7:17am UTC](https://discourse.julialang.org/t/reducing-dynamic-dispatch-using-type-inference/43233 "2020-07-20T07:17:37Z")

</div>

First of all, apologies for the terrible title, but I’m having a hard time describing what I want to do. I’ve written a lot of my code for an optimisation problem to look something like this: using JuMP # Function def…

---

## [How to debug LanguageServer (in VSCode) problems?](https://discourse.julialang.org/t/how-to-debug-languageserver-in-vscode-problems/43104)

<div class="topic-metadata">

**Author:** [@lyonsquark](https://discourse.julialang.org/u/lyonsquark)\
**Replies:** 4\
**Last updated:** [July 20, 2020, 6:40am UTC](https://discourse.julialang.org/t/how-to-debug-languageserver-in-vscode-problems/43104 "2020-07-20T06:40:39Z")

</div>

I’m using Julia 1.4.2 with VSCode Insiders and the Julia Insiders extension v0.17.5 on a Mac with Catalina. Ever since extension v0.17, the LanguageServer hangs. I’m in a directory with empty Project.toml and Manifest.t…

---

## [Can't Create Github Repo](https://discourse.julialang.org/t/cant-create-github-repo/43361)

<div class="topic-metadata">

**Author:** [@Holdmycoffee](https://discourse.julialang.org/u/Holdmycoffee)\
**Replies:** 0\
**Last updated:** [July 20, 2020, 6:14am UTC](https://discourse.julialang.org/t/cant-create-github-repo/43361 "2020-07-20T06:14:28Z")

</div>

Does anyone else get stuck on the “Publish Github Repository” screen? It says loading… and won’t let me click publish.

---

## [\[ForwardDiff Question\]: Jacobian of a function that calls another function](https://discourse.julialang.org/t/forwarddiff-question-jacobian-of-a-function-that-calls-another-function/43276)

<div class="topic-metadata">

**Author:** [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Replies:** 6\
**Last updated:** [July 20, 2020, 1:41am UTC](https://discourse.julialang.org/t/forwarddiff-question-jacobian-of-a-function-that-calls-another-function/43276 "2020-07-20T01:41:29Z")

</div>

I don’t understand why my vector-valued function does not produce Jacobian using ForwardDiff.jl. Could you help me how can I make it work? Ultimately I am gonna call that resulting Jacobian P and try to compute P’P\\P(som…

---

## [Why travis is not creating the Stable part of the document?](https://discourse.julialang.org/t/why-travis-is-not-creating-the-stable-part-of-the-document/43341)

<div class="topic-metadata">

**Author:** [@DataPsycho](https://discourse.julialang.org/u/DataPsycho)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 12:15am UTC](https://discourse.julialang.org/t/why-travis-is-not-creating-the-stable-part-of-the-document/43341 "2020-07-20T00:15:53Z")

</div>

hi, I am trying to create documents for my packge and I have added a document part in travis yml file. Its creating the dev part of the document but not sure why its not creating the stable part. If some one can have a l…

---

## [Help setting up a problem with JuMP and/or Clustering.jl](https://discourse.julialang.org/t/help-setting-up-a-problem-with-jump-and-or-clustering-jl/43252)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 5\
**Last updated:** [July 19, 2020, 8:22pm UTC](https://discourse.julialang.org/t/help-setting-up-a-problem-with-jump-and-or-clustering-jl/43252 "2020-07-19T20:22:14Z")

</div>

Let’s say I want to divide all of the counties within a state into 4 groups and I want all of the counties in a group to be geographically contiguous. Furthermore, when I’m done, I want the total population of each of th…

---

## [How to make a struct support subsetting elements 'recursively'](https://discourse.julialang.org/t/how-to-make-a-struct-support-subsetting-elements-recursively/43344)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 8:04pm UTC](https://discourse.julialang.org/t/how-to-make-a-struct-support-subsetting-elements-recursively/43344 "2020-07-19T20:04:30Z")

</div>

Suppose I have the following: struct mystuff x::Array{Float64,1} y::Array{Float64,1} mystuff(n) = begin s = new(Array{Float64,1}(undef,n),Array{Float64,1}(undef,n)) return s end mystuff(x,y) = begin …

---

## [What does "user\_cache: method has not been implemented for the integrator" mean?](https://discourse.julialang.org/t/what-does-user-cache-method-has-not-been-implemented-for-the-integrator-mean/19233)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 4\
**Last updated:** [July 19, 2020, 7:09pm UTC](https://discourse.julialang.org/t/what-does-user-cache-method-has-not-been-implemented-for-the-integrator-mean/19233 "2020-07-19T19:09:13Z")

</div>

I have been working through the example of a Discrete Callback that I need to adapt for my code but Atom generates an error. I cannot find a definition of user\_cache so I need your help. I am an introductory Julia user u…

---

## [Kramer-type SDE - conditionally stop solution process](https://discourse.julialang.org/t/kramer-type-sde-conditionally-stop-solution-process/37866)

<div class="topic-metadata">

**Author:** [@StarecZosima](https://discourse.julialang.org/u/StarecZosima)\
**Replies:** 3\
**Last updated:** [July 19, 2020, 7:08pm UTC](https://discourse.julialang.org/t/kramer-type-sde-conditionally-stop-solution-process/37866 "2020-07-19T19:08:10Z")

</div>

Hi there, I am trying to solve a Kramer-type SDE, simulating a particle in a double well. I use the DifferentialEquations package and it all works well until the particle reaches the top of the barrier and start rollin…

---

## [Error using Sundials and JuMP](https://discourse.julialang.org/t/error-using-sundials-and-jump/42272)

<div class="topic-metadata">

**Author:** [@Jorge\_Silva](https://discourse.julialang.org/u/Jorge_Silva)\
**Replies:** 1\
**Last updated:** [June 29, 2020, 11:33pm UTC](https://discourse.julialang.org/t/error-using-sundials-and-jump/42272 "2020-06-29T23:33:37Z")

</div>

First I ve defined a function that uses Sundials solver. function rheo(czz0) … prob = DAEProblem(filament,du₀,u₀,tspan,differential\_vars=differential\_vars) sol = Sundials.solve(prob, IDA(), reltol=1e-8, abstol=1e-8) …

---

## [Where can I find the DAE Initialization Choices?](https://discourse.julialang.org/t/where-can-i-find-the-dae-initialization-choices/36958)

<div class="topic-metadata">

**Author:** [@fermion4](https://discourse.julialang.org/u/fermion4)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 7:07pm UTC](https://discourse.julialang.org/t/where-can-i-find-the-dae-initialization-choices/36958 "2020-07-19T19:07:33Z")

</div>

I just read the news about the DifferentialEquations.jl DAE update and was very happy about it. https://sciml.ai/2020/03/23/DAE.html But I wasn’t able to find out how to use the DAE Initialization Choices. Is it includ…

---

## [JuMP Release Cadence](https://discourse.julialang.org/t/jump-release-cadence/43338)

<div class="topic-metadata">

**Author:** [@vtjeng](https://discourse.julialang.org/u/vtjeng)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 5:54pm UTC](https://discourse.julialang.org/t/jump-release-cadence/43338 "2020-07-19T17:54:51Z")

</div>

Is there somewhere where I can track when the next release of JuMP is planned for? In this case, I’d like to know when https://github.com/jump-dev/JuMP.jl/pull/2275 will make it into a release (I’ve been holding off of …

---

## [A question about BilevelJuMP.jl](https://discourse.julialang.org/t/a-question-about-bileveljump-jl/43336)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 5:49pm UTC](https://discourse.julialang.org/t/a-question-about-bileveljump-jl/43336 "2020-07-19T17:49:11Z")

</div>

using JuMP, BilevelJuMP, Xpress model = BilevelModel() @variable(Lower(model), x) @variable(Upper(model), y) @objective(Upper(model), Min, 3x + y) @constraints(Upper(model), begin x \<= 5 y \<= 8 y \>= 0 end)…

---

## [Distributed, packages, and race condition in pre-compiling](https://discourse.julialang.org/t/distributed-packages-and-race-condition-in-pre-compiling/43340)

<div class="topic-metadata">

**Author:** [@torgo](https://discourse.julialang.org/u/torgo)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 5:35pm UTC](https://discourse.julialang.org/t/distributed-packages-and-race-condition-in-pre-compiling/43340 "2020-07-19T17:35:51Z")

</div>

I am having a problem that I think is represented well by this StackExchange question discussion. As far as I understand that discussion, one needs to be careful when using Distributed to balance two issues: Each work…

---

## [Linear least-squares solution occasionally much slower than what is achievable using LAPACK based wrappers](https://discourse.julialang.org/t/linear-least-squares-solution-occasionally-much-slower-than-what-is-achievable-using-lapack-based-wrappers/43337)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 0\
**Last updated:** [July 19, 2020, 3:46pm UTC](https://discourse.julialang.org/t/linear-least-squares-solution-occasionally-much-slower-than-what-is-achievable-using-lapack-based-wrappers/43337 "2020-07-19T15:46:00Z")

</div>

The computation of the least-squares solution of linear equations using x = A\\b is occasionally substantially slower than the attainable speed using LAPACK based wrappers. For example, let A be a full matrix A = rand(1…

---

## [Linked arrays of elements](https://discourse.julialang.org/t/linked-arrays-of-elements/43329)

<div class="topic-metadata">

**Author:** [@mamo](https://discourse.julialang.org/u/mamo)\
**Replies:** 5\
**Last updated:** [July 19, 2020, 3:09pm UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329 "2020-07-19T15:09:49Z")

</div>

Dear Julia&JuMP support team, if i have a set or an array of elements: A=\[“A1”, “A2”, “A3”\] I want to define a new array B linked to each element of A: B(“A1”)=\[“m1”, “m2”\] B(“A2”)=\[“m3”, “m4”\] B(“A3”)=\[“m1”, “m5”\] …

---

## [Base.getproperty via Val types](https://discourse.julialang.org/t/base-getproperty-via-val-types/43195)

<div class="topic-metadata">

**Author:** [@jackf](https://discourse.julialang.org/u/jackf)\
**Replies:** 7\
**Last updated:** [July 19, 2020, 5:09am UTC](https://discourse.julialang.org/t/base-getproperty-via-val-types/43195 "2020-07-19T05:09:28Z")

</div>

I’m familiar with Base.getproperty, and often structure it as a big list of if statements, with a fallback to getfield. Sometimes, though, having to define all the behaviour in one place can be a bit annoying. I thought…

---

## [A future for JLD2?](https://discourse.julialang.org/t/a-future-for-jld2/42958)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 56\
**Last updated:** [July 19, 2020, 2:26pm UTC](https://discourse.julialang.org/t/a-future-for-jld2/42958 "2020-07-19T14:26:08Z")

</div>

Hi everyone, Julia shines at numerical computing and inevitably we need to write data to disk. There are a few binary formats for julia out there such as Serialization, HDF5.jl, MAT.jl, BSON.jl, JLD.jl and JLD2.jl tha…

---

## [Provide startup option to include current active environment in julia prompt](https://discourse.julialang.org/t/provide-startup-option-to-include-current-active-environment-in-julia-prompt/43306)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 7\
**Last updated:** [July 19, 2020, 2:04pm UTC](https://discourse.julialang.org/t/provide-startup-option-to-include-current-active-environment-in-julia-prompt/43306 "2020-07-19T14:04:33Z")

</div>

I just experienced the second occasion where I was trying to create a MWE for a bug report, but while creating the MWE I forgot that I was back in my @v1.4 environment rather than the environment in which I first encount…

---

## [How to use dilate in Julia](https://discourse.julialang.org/t/how-to-use-dilate-in-julia/43241)

<div class="topic-metadata">

**Author:** [@sudo](https://discourse.julialang.org/u/sudo)\
**Replies:** 9\
**Last updated:** [July 19, 2020, 1:58pm UTC](https://discourse.julialang.org/t/how-to-use-dilate-in-julia/43241 "2020-07-19T13:58:05Z")

</div>

Hi! I am looking for something similar to python’s dilation function in skimage.morphology. I want to achieve precisely the following functionality: \>\>\> import numpy as np \>\>\> from skimage.morphology import dilation \>\>\> …

---

## [Thought Experiment: Open-source AI project \`The Julia\` religion](https://discourse.julialang.org/t/thought-experiment-open-source-ai-project-the-julia-religion/43284)

<div class="topic-metadata">

**Author:** [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Replies:** 17\
**Last updated:** [July 19, 2020, 6:42am UTC](https://discourse.julialang.org/t/thought-experiment-open-source-ai-project-the-julia-religion/43284 "2020-07-19T06:42:11Z")

</div>

Introduction I’m in my thirties and like many people of my generation, I’ve often imagined the rise of artificial intelligence and its consequences. Terminator2 was the first movie I’ve watched to be dealing with this su…

---

## [Why "Int()" is capitalized and "float()" is not?](https://discourse.julialang.org/t/why-int-is-capitalized-and-float-is-not/43285)

<div class="topic-metadata">

**Author:** [@alusiani](https://discourse.julialang.org/u/alusiani)\
**Replies:** 7\
**Last updated:** [July 19, 2020, 6:19am UTC](https://discourse.julialang.org/t/why-int-is-capitalized-and-float-is-not/43285 "2020-07-19T06:19:51Z")

</div>

In order to force a number to be float I can use “float(1)”, to force an integer I can use “Int(1e7)”. I am curious about why Int() is capitalized and float() is not. The first is related to Int64 etc, the second one to …

---

## [How to manually update the params in a \`Flux.Chain\` neural network?](https://discourse.julialang.org/t/how-to-manually-update-the-params-in-a-flux-chain-neural-network/43267)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 5:14am UTC](https://discourse.julialang.org/t/how-to-manually-update-the-params-in-a-flux-chain-neural-network/43267 "2020-07-19T05:14:03Z")

</div>

I have a simple Flux neural network, e.g. nn = Chain( Dense(20, 20), Dense(20, 2) ) I wish to compute the gradient of the log(nn(input)) wrt to Flux.Params(nn). I can’t use the Flux.train! and use a loss function…

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

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