# Latest

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

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

**Page:** 1511

---

## [How to define JuMP expressions using a loop](https://discourse.julialang.org/t/how-to-define-jump-expressions-using-a-loop/54079)

<div class="topic-metadata">

**Author:** [@Micah\_Mungal](https://discourse.julialang.org/u/Micah_Mungal)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 10:03pm UTC](https://discourse.julialang.org/t/how-to-define-jump-expressions-using-a-loop/54079 "2021-01-27T22:03:48Z")

</div>

Hi, I am trying to incorporate an expression into Julia using JuMP. Now I have been able to do this using MATLAB, but decided to switch to Julia for specific purposes. However based on the documentation provided for usin…

---

## [Writing a macro for manual @spawn control](https://discourse.julialang.org/t/writing-a-macro-for-manual-spawn-control/54074)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 8:16pm UTC](https://discourse.julialang.org/t/writing-a-macro-for-manual-spawn-control/54074 "2021-01-27T20:16:10Z")

</div>

In some situations we need to limit the number of simultaneously running tasks, for example, when you @spawn run(...), Julia won’t know about CPU usage resulting an over-spawn. I find something like this helpful: julia\>…

---

## [Dispatch with @userplot and external recipes](https://discourse.julialang.org/t/dispatch-with-userplot-and-external-recipes/54045)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 7:54pm UTC](https://discourse.julialang.org/t/dispatch-with-userplot-and-external-recipes/54045 "2021-01-27T19:54:24Z")

</div>

Hi all, I’m trying to learn the Plots.jl recipe syntax and have a few design questions. Say I have struct MyData{T} where {T\<:Union{One,Two}} ... end I’d like to define @userplot PlotCustom for this, and provide t…

---

## [Debugging Warning: Package Base does not have Parameters in its dependencies:](https://discourse.julialang.org/t/debugging-warning-package-base-does-not-have-parameters-in-its-dependencies/54068)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 7:12pm UTC](https://discourse.julialang.org/t/debugging-warning-package-base-does-not-have-parameters-in-its-dependencies/54068 "2021-01-27T19:12:35Z")

</div>

I am trying to make my own package with PkgTemplates and I get the following error julia\> using InformationJobSearch \[ Info: Precompiling InformationJobSearch \[ae686e5f-2e63-48c8-ad06-f757a7909ed6\] ┌ Warning: Package Ba…

---

## [Auxiliary GLM Statistics](https://discourse.julialang.org/t/auxiliary-glm-statistics/14722)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 9\
**Last updated:** [January 27, 2021, 6:35pm UTC](https://discourse.julialang.org/t/auxiliary-glm-statistics/14722 "2021-01-27T18:35:30Z")

</div>

Julia 1.0. GLM 1.0.0. My Basic Example julia\> using GLM, StatsBase julia\> y=\[1:10;\] ; X= hcat( fill(1,10), y.^2, y.^3 ); lm1= GLM.lm(X, y); Basic Questions is the sigma (i.e., sqrt(deviance(lm)/dof\_residual(lm)) al…

---

## [Changing DEPOT\_PATH](https://discourse.julialang.org/t/changing-depot-path/54057)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 8\
**Last updated:** [January 27, 2021, 6:49pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057 "2021-01-27T18:49:52Z")

</div>

Dear all, I need to change the folder .julia to another, after instalation (JuliaPro). The DEPOT\_PATH is given by: julia\> DEPOT\_PATH 3-element Array{String,1}: "C:\\\\Users\\\\Usuário\\\\.julia" "C:\\\\Users\\\\Angelo\\\\Julia-1…

---

## [Why wouldn't use tuples for computation?](https://discourse.julialang.org/t/why-wouldnt-use-tuples-for-computation/54060)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 6\
**Last updated:** [January 27, 2021, 5:29pm UTC](https://discourse.julialang.org/t/why-wouldnt-use-tuples-for-computation/54060 "2021-01-27T17:29:07Z")

</div>

I was reading this Github page, and came across a post from StefanKarpinski, and he says: …but you really mostly shouldn’t be doing much computation with tuples in the first place,… I was wondering if someone could e…

---

## [Filling non-contiguous slices of an array with the real and imaginary part of another](https://discourse.julialang.org/t/filling-non-contiguous-slices-of-an-array-with-the-real-and-imaginary-part-of-another/54033)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 3\
**Last updated:** [January 27, 2021, 5:07pm UTC](https://discourse.julialang.org/t/filling-non-contiguous-slices-of-an-array-with-the-real-and-imaginary-part-of-another/54033 "2021-01-27T17:07:53Z")

</div>

Hello, I would like to get your feedback on the fastest way to fill the 1 modulo 3 entries with the real part of an array and the 2 modul0 3 entries with the imaginary part of the same array. using BenchmarkTools A = r…

---

## [Remove elements with matching string values in tuple](https://discourse.julialang.org/t/remove-elements-with-matching-string-values-in-tuple/54065)

<div class="topic-metadata">

**Author:** [@lorb24](https://discourse.julialang.org/u/lorb24)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 5:00pm UTC](https://discourse.julialang.org/t/remove-elements-with-matching-string-values-in-tuple/54065 "2021-01-27T17:00:09Z")

</div>

I have a list called list1: \[a,b,c\] And use the function function combos(list1,list2) combolist=vec(collect(Base.product(list1,list2))) return combolist end And my results look something like below: (a,a) (a…

---

## [Package Manager won't load in Pluto](https://discourse.julialang.org/t/package-manager-wont-load-in-pluto/54066)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 4:55pm UTC](https://discourse.julialang.org/t/package-manager-wont-load-in-pluto/54066 "2021-01-27T16:55:34Z")

</div>

In Pluto everything runs until begin import Pkg Pkg.activate(mktempdir()) end then this keeps trying to load, but never loads or gives an error message.

---

## [Does eigen( ) get stuck in processing of the results?](https://discourse.julialang.org/t/does-eigen-get-stuck-in-processing-of-the-results/53917)

<div class="topic-metadata">

**Author:** [@Erik](https://discourse.julialang.org/u/Erik)\
**Replies:** 10\
**Last updated:** [January 27, 2021, 3:56pm UTC](https://discourse.julialang.org/t/does-eigen-get-stuck-in-processing-of-the-results/53917 "2021-01-27T15:56:16Z")

</div>

I wrote the below code (originally in MATLAB, ported to Julia). Unfortunately, the code runs at pretty much the same speed as the MATLAB original. using LinearAlgebra using StaticArrays using DelimitedFiles using Benchm…

---

## [Avoid terminal instance to close when Server crash](https://discourse.julialang.org/t/avoid-terminal-instance-to-close-when-server-crash/54063)

<div class="topic-metadata">

**Author:** [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Replies:** 2\
**Last updated:** [January 27, 2021, 3:49pm UTC](https://discourse.julialang.org/t/avoid-terminal-instance-to-close-when-server-crash/54063 "2021-01-27T15:49:33Z")

</div>

From https://github.com/julia-vscode/julia-vscode/issues/1697 Hi, sorry for the lack of details, but it is part of the issue. Sometimes when I’m using the Shift + enter workflow I run some code that crash the Server, bu…

---

## [Creating a matrix as Symmetric causes excessive allocations in multithreaded loop](https://discourse.julialang.org/t/creating-a-matrix-as-symmetric-causes-excessive-allocations-in-multithreaded-loop/54059)

<div class="topic-metadata">

**Author:** [@pedrohnv](https://discourse.julialang.org/u/pedrohnv)\
**Replies:** 2\
**Last updated:** [January 27, 2021, 3:36pm UTC](https://discourse.julialang.org/t/creating-a-matrix-as-symmetric-causes-excessive-allocations-in-multithreaded-loop/54059 "2021-01-27T15:36:37Z")

</div>

In the following code snippet, I use a symmetric matrix to calculate another. If I assign the matrix as Symmetric, it leads to excessive allocations if the loop is multi-threaded. using BenchmarkTools function foo() …

---

## [Neovim: Getting LSP running for Julia using Coc-Plugin](https://discourse.julialang.org/t/neovim-getting-lsp-running-for-julia-using-coc-plugin/46654)

<div class="topic-metadata">

**Author:** [@pascal-mueller](https://discourse.julialang.org/u/pascal-mueller)\
**Replies:** 20\
**Last updated:** [January 27, 2021, 3:20pm UTC](https://discourse.julialang.org/t/neovim-getting-lsp-running-for-julia-using-coc-plugin/46654 "2021-01-27T15:20:58Z")

</div>

so I’m trying to get LSP working for Julia using the CoC Plugin. It works for python or HTML. So I’m using: Coc-Plugin: /neoclide/coc.nvim @ github CoC-Extension (coc-julia): /neoclide/coc.nvim/wiki/Language-servers#ju…

---

## [Wrong dev & instantiate order in PkgTemplates and Documenter?](https://discourse.julialang.org/t/wrong-dev-instantiate-order-in-pkgtemplates-and-documenter/54062)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 3:07pm UTC](https://discourse.julialang.org/t/wrong-dev-instantiate-order-in-pkgtemplates-and-documenter/54062 "2021-01-27T15:07:09Z")

</div>

Documenter and PkgTemplates use the following to prepare a docs job: Pkg.develop(PackageSpec(path=pwd())) Pkg.instantiate()' Could it be that this order is wrong? I have a case where it fails with the following error: …

---

## [Positve semidefinite constraint on SDP program in JuMP](https://discourse.julialang.org/t/positve-semidefinite-constraint-on-sdp-program-in-jump/53972)

<div class="topic-metadata">

**Author:** [@cheng\_chen](https://discourse.julialang.org/u/cheng_chen)\
**Replies:** 11\
**Last updated:** [January 27, 2021, 2:51pm UTC](https://discourse.julialang.org/t/positve-semidefinite-constraint-on-sdp-program-in-jump/53972 "2021-01-27T14:51:56Z")

</div>

I have to solve an SDP program. For example: min tr(Σ \* A ) s.t. Σ\[1:2,1:2\] \>= AΣA’ Σ \>= 0 Here is what I have: n = 4 d = 2 A = rand(d,n) B = rand(n,n) model = Model(ProxSDP.Optimizer) @variable(model, Σ\[1:n, 1:n\], …

---

## [Unicode characters in Plot](https://discourse.julialang.org/t/unicode-characters-in-plot/53997)

<div class="topic-metadata">

**Author:** [@mcql](https://discourse.julialang.org/u/mcql)\
**Replies:** 8\
**Last updated:** [January 27, 2021, 2:36pm UTC](https://discourse.julialang.org/t/unicode-characters-in-plot/53997 "2021-01-27T14:36:18Z")

</div>

Hello, I’m building a Turing model and I’m using unicode character for the third variable. Plotting the sample I obtain this: How could I correctly render the unicode symbol of the third variable? Thanks

---

## [Generate a zero mean gaussian vector](https://discourse.julialang.org/t/generate-a-zero-mean-gaussian-vector/54056)

<div class="topic-metadata">

**Author:** [@cheng\_chen](https://discourse.julialang.org/u/cheng_chen)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 2:12pm UTC](https://discourse.julialang.org/t/generate-a-zero-mean-gaussian-vector/54056 "2021-01-27T14:12:37Z")

</div>

How can I generate a zero mean 2 by 1 Gaussian vector with covariance Identity matrix?

---

## [Cannot document @everywhere function](https://discourse.julialang.org/t/cannot-document-everywhere-function/54044)

<div class="topic-metadata">

**Author:** [@matthiasbe](https://discourse.julialang.org/u/matthiasbe)\
**Replies:** 5\
**Last updated:** [January 27, 2021, 1:43pm UTC](https://discourse.julialang.org/t/cannot-document-everywhere-function/54044 "2021-01-27T13:43:48Z")

</div>

It seems I can not document and put the @everywhere annotation at the same time. The following code """ Prints something """ @everywhere function my\_func() println("hello") end throws the error ERROR: LoadError: ca…

---

## [Truncated Gaussian Process with AbstractGPs?](https://discourse.julialang.org/t/truncated-gaussian-process-with-abstractgps/53779)

<div class="topic-metadata">

**Author:** [@michielver](https://discourse.julialang.org/u/michielver)\
**Replies:** 4\
**Last updated:** [January 27, 2021, 1:05pm UTC](https://discourse.julialang.org/t/truncated-gaussian-process-with-abstractgps/53779 "2021-01-27T13:05:12Z")

</div>

Hi all, So I have started to work with gaussian process for a time-series model in my case, and I have a variable of interest “score”, which is always between 0 and 4, and varies over time. Now I am using AbstractGPs a…

---

## [Marker shapes in Plots](https://discourse.julialang.org/t/marker-shapes-in-plots/53806)

<div class="topic-metadata">

**Author:** [@yarahmad](https://discourse.julialang.org/u/yarahmad)\
**Replies:** 2\
**Last updated:** [January 27, 2021, 12:37pm UTC](https://discourse.julialang.org/t/marker-shapes-in-plots/53806 "2021-01-27T12:37:57Z")

</div>

I have to use two marker shapes say: circle and star5, to plot some simulation results via scatter plot. However, the second marker shape, apart from its type, does not appear in plots. I have been trying different ways …

---

## [DifferentialEquations.jl solution object: save\_idxs and interpolation](https://discourse.julialang.org/t/differentialequations-jl-solution-object-save-idxs-and-interpolation/54030)

<div class="topic-metadata">

**Author:** [@cdwhite](https://discourse.julialang.org/u/cdwhite)\
**Replies:** 3\
**Last updated:** [January 27, 2021, 11:55am UTC](https://discourse.julialang.org/t/differentialequations-jl-solution-object-save-idxs-and-interpolation/54030 "2021-01-27T11:55:25Z")

</div>

Hello, I’m trying to solve a largeish number of largeish systems of linear differential equations. I ultimately only care about one component from each equation, so save\_idxs in principle should be exactly what I want: …

---

## [Julia v1.6.0-beta1 is now available](https://discourse.julialang.org/t/julia-v1-6-0-beta1-is-now-available/53065)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 41\
**Last updated:** [January 27, 2021, 9:47am UTC](https://discourse.julialang.org/t/julia-v1-6-0-beta1-is-now-available/53065 "2021-01-27T09:47:29Z")

</div>

The Julia developers are pleased to announce that Julia v1.6.0 is now in beta, and binaries for the first beta version, 1.6.0-beta1, are available now. You can get them at Download Julia in the “upcoming release” section…

---

## [CUDA.jl compiles to 15GB](https://discourse.julialang.org/t/cuda-jl-compiles-to-15gb/54040)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 4\
**Last updated:** [January 27, 2021, 9:56am UTC](https://discourse.julialang.org/t/cuda-jl-compiles-to-15gb/54040 "2021-01-27T09:56:20Z")

</div>

Hi. I’m trying to use PackageCompiler and CUDA. PackageCompiler makes even the smallest program around 150MB because it adds almost all of Julia to it. But when using CUDA, the smallest program seems to have 15GB in the…

---

## [Invertible Constraint in JuMP](https://discourse.julialang.org/t/invertible-constraint-in-jump/54031)

<div class="topic-metadata">

**Author:** [@cheng\_chen](https://discourse.julialang.org/u/cheng_chen)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 8:03am UTC](https://discourse.julialang.org/t/invertible-constraint-in-jump/54031 "2021-01-27T08:03:31Z")

</div>

How can I add a constraint in JuMP model with ProxSDP optimizer such that the solution is invertible?

---

## [Cannot assign struct as a dictionary value](https://discourse.julialang.org/t/cannot-assign-struct-as-a-dictionary-value/54027)

<div class="topic-metadata">

**Author:** [@ruysan](https://discourse.julialang.org/u/ruysan)\
**Replies:** 6\
**Last updated:** [January 27, 2021, 7:59am UTC](https://discourse.julialang.org/t/cannot-assign-struct-as-a-dictionary-value/54027 "2021-01-27T07:59:10Z")

</div>

Hi! I have a simple struct to store some data: struct Gene name::String exonarray::Array pi::Int64 pf::Int64 is\_reverse::Bool #note::String end I then get some data from a file and generate an…

---

## [Defining custom getindex method](https://discourse.julialang.org/t/defining-custom-getindex-method/54038)

<div class="topic-metadata">

**Author:** [@Zachary\_Winkeler](https://discourse.julialang.org/u/Zachary_Winkeler)\
**Replies:** 2\
**Last updated:** [January 27, 2021, 7:38am UTC](https://discourse.julialang.org/t/defining-custom-getindex-method/54038 "2021-01-27T07:38:07Z")

</div>

Hi all, just started learning Julia, and I think I’m missing something really obvious here. I’m trying to make a type indexable, but I get an error when using the \[ …\] syntax. Specifically, if g is an instance of my type…

---

## [Sundials and SecondOrderODEProblem (OrdinaryDiffEq) not compatible](https://discourse.julialang.org/t/sundials-and-secondorderodeproblem-ordinarydiffeq-not-compatible/53989)

<div class="topic-metadata">

**Author:** [@magix](https://discourse.julialang.org/u/magix)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 7:05am UTC](https://discourse.julialang.org/t/sundials-and-secondorderodeproblem-ordinarydiffeq-not-compatible/53989 "2021-01-27T07:05:23Z")

</div>

Unfortunately I cannot get a working example of using a SecondOrderODEProblem and any Sundials solver. One workaround is to reformulate the problem as a ODEProblem, but perhaps you know more than I do. This shows the pr…

---

## [JuliaHEP Meeting](https://discourse.julialang.org/t/juliahep-meeting/53260)

<div class="topic-metadata">

**Author:** [@lyonsquark](https://discourse.julialang.org/u/lyonsquark)\
**Replies:** 2\
**Last updated:** [January 27, 2021, 6:46am UTC](https://discourse.julialang.org/t/juliahep-meeting/53260 "2021-01-27T06:46:06Z")

</div>

After our successful first meeting in December, please see Julia in HEP - Google Docs for information about the next JuliaHEP meeting (mid-late January). There is a link there to a Doodle Poll to help set the day/time if…

---

## [Is there a way to change font of \`series\_annotations\` in the \`scatter\` plot in Plots?](https://discourse.julialang.org/t/is-there-a-way-to-change-font-of-series-annotations-in-the-scatter-plot-in-plots/54035)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 6:09am UTC](https://discourse.julialang.org/t/is-there-a-way-to-change-font-of-series-annotations-in-the-scatter-plot-in-plots/54035 "2021-01-27T06:09:25Z")

</div>

Is there a way to change font of series\_annotations in the scatter plot in Plots? using Plots f = font(13, "Noto Sans CJK JP") default( titlefont = f, legendfont = f, guidefont = f, tickfont = f) pyplot(…

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

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