# Latest

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

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

**Page:** 1611

---

## [Implementation of SNPE](https://discourse.julialang.org/t/implementation-of-snpe/47879)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 7:29pm UTC](https://discourse.julialang.org/t/implementation-of-snpe/47879 "2020-10-06T19:29:34Z")

</div>

Hi, Does anyone have a code for SNPE in Julia? see delfi for a python version. Thank you, Best.

---

## [Is Juno debugging in Atom broken for Julia 1.5.2?](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865)

<div class="topic-metadata">

**Author:** [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Replies:** 5\
**Last updated:** [October 6, 2020, 6:57pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865 "2020-10-06T18:57:25Z")

</div>

Hi all, I cannot seem to get any debugging to work using latest Atom and Juno client 0.12.6. I always get an: ERROR: UndefVarError: ModuleWhereTheFunction I run Juno.@run on. Seems to be a bug somewhere in logging.jl w…

---

## [What is defination of dims](https://discourse.julialang.org/t/what-is-defination-of-dims/47878)

<div class="topic-metadata">

**Author:** [@Batuhan\_Guvenc](https://discourse.julialang.org/u/Batuhan_Guvenc)\
**Replies:** 1\
**Last updated:** [October 6, 2020, 6:39pm UTC](https://discourse.julialang.org/t/what-is-defination-of-dims/47878 "2020-10-06T18:39:14Z")

</div>

search func which gives sum of every matris rows in a list for matris like this 1 0 1 0 1 0 output \[2,1\] i fins sum(list,dims=2) func but i dont want use this for examle i use " +(list…) "instead of "sum(list) "i…

---

## [A playful competition: who can define a method that invalidates the most code?](https://discourse.julialang.org/t/a-playful-competition-who-can-define-a-method-that-invalidates-the-most-code/47543)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 44\
**Last updated:** [October 6, 2020, 6:28pm UTC](https://discourse.julialang.org/t/a-playful-competition-who-can-define-a-method-that-invalidates-the-most-code/47543 "2020-10-06T18:28:18Z")

</div>

You may know that several of us have been hard at work stamping out invalidations as a way of reducing Julia’s latency. Kristoffer Carlsson and I thought it might be fun to have a contest to do the opposite: see who can …

---

## [Julia assertion failure](https://discourse.julialang.org/t/julia-assertion-failure/46725)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 3\
**Last updated:** [October 6, 2020, 5:17pm UTC](https://discourse.julialang.org/t/julia-assertion-failure/46725 "2020-10-06T17:17:27Z")

</div>

I just downloaded julia 1.4.2 and tried to run but received the following error message. What did I do wrong?? (base) myuser:~ $ exec '/private/var/folders/10/y7z26t512kbbfrsj12fx3wkr0000gn/T/AppTranslocation/361AA1DE-3…

---

## [GMT.jl errors when trying to plot- problem with PNG?](https://discourse.julialang.org/t/gmt-jl-errors-when-trying-to-plot-problem-with-png/47860)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 4:33pm UTC](https://discourse.julialang.org/t/gmt-jl-errors-when-trying-to-plot-problem-with-png/47860 "2020-10-06T16:33:43Z")

</div>

For some reason, I cannot get GMT.jl to work. When I attempt to do the “Hello, World” example plot I get the following message: Error: /undefined in PSL\_movie\_label\_completion (skipping the stacktrace...) ERROR: Some…

---

## [Intel oneAPI](https://discourse.julialang.org/t/intel-oneapi/47858)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 3\
**Last updated:** [October 6, 2020, 4:27pm UTC](https://discourse.julialang.org/t/intel-oneapi/47858 "2020-10-06T16:27:48Z")

</div>

We should be aware of this - and I am sure many people are. It has been around for a bit of time now. I am not advocating yet another C-based language… But we should be aware of the newly named oneMKL and the level Ze…

---

## [Help with Package Dependencies](https://discourse.julialang.org/t/help-with-package-dependencies/47819)

<div class="topic-metadata">

**Author:** [@jleman](https://discourse.julialang.org/u/jleman)\
**Replies:** 10\
**Last updated:** [October 6, 2020, 3:34pm UTC](https://discourse.julialang.org/t/help-with-package-dependencies/47819 "2020-10-06T15:34:45Z")

</div>

I am experimenting with creation of my first package called OHTLCSM.jl. I followed the steps at the link below to add the package to my local repository: Link: Simple Package Tutorial StaticArrays.jl was among the de…

---

## [Organizing many inputs for iterative function calls](https://discourse.julialang.org/t/organizing-many-inputs-for-iterative-function-calls/47856)

<div class="topic-metadata">

**Author:** [@jleman](https://discourse.julialang.org/u/jleman)\
**Replies:** 6\
**Last updated:** [October 6, 2020, 3:31pm UTC](https://discourse.julialang.org/t/organizing-many-inputs-for-iterative-function-calls/47856 "2020-10-06T15:31:49Z")

</div>

I am working on my first package (a basic charge simulator for electrical engineering). The code is broken up into a handful of small functions. There is no need to make those functions available so I wrap them all in …

---

## [Putting xaxis ticks and labels on top (not bottom)](https://discourse.julialang.org/t/putting-xaxis-ticks-and-labels-on-top-not-bottom/47854)

<div class="topic-metadata">

**Author:** [@mit.edelman](https://discourse.julialang.org/u/mit.edelman)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 3:01pm UTC](https://discourse.julialang.org/t/putting-xaxis-ticks-and-labels-on-top-not-bottom/47854 "2020-10-06T15:01:49Z")

</div>

In a plot, the xticks and the xlabel go at the bottom. Can I directly put it on top rather than the bottom by somehow using guide\_position somehow? or what does guide\_position do?

---

## [ANN: LazilyInitializedFields.jl - Handling lazily initialized fields in a consistent way](https://discourse.julialang.org/t/ann-lazilyinitializedfields-jl-handling-lazily-initialized-fields-in-a-consistent-way/47770)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 21\
**Last updated:** [October 6, 2020, 2:50pm UTC](https://discourse.julialang.org/t/ann-lazilyinitializedfields-jl-handling-lazily-initialized-fields-in-a-consistent-way/47770 "2020-10-06T14:50:07Z")

</div>

Hi, I created a small package to handle lazily initialized fields. A lazily initialized field is a field in a struct that does not get initialized on the creation of the struct but at some later point. While it is a goo…

---

## [Error when calling 2D dynamic kernel with view argument](https://discourse.julialang.org/t/error-when-calling-2d-dynamic-kernel-with-view-argument/47647)

<div class="topic-metadata">

**Author:** [@barrettp](https://discourse.julialang.org/u/barrettp)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 2:23pm UTC](https://discourse.julialang.org/t/error-when-calling-2d-dynamic-kernel-with-view-argument/47647 "2020-10-06T14:23:16Z")

</div>

The following MWE returns a kernel of type Union{} for a 2D dynamic kernel with at least one argument being a view(). The kernel compiles fine if the dynamic kernel is 1D or has no view() arguments. I’d be much obliged …

---

## [Is it possible to update Array elements in a list comprehension?](https://discourse.julialang.org/t/is-it-possible-to-update-array-elements-in-a-list-comprehension/47855)

<div class="topic-metadata">

**Author:** [@aachener](https://discourse.julialang.org/u/aachener)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 1:56pm UTC](https://discourse.julialang.org/t/is-it-possible-to-update-array-elements-in-a-list-comprehension/47855 "2020-10-06T13:56:48Z")

</div>

I found list comprehension is very useful tool. Currently I encountered a problem. Say there is an array of 5 integers named TEST. I want to add 1 to randomly selected elements of TEST for 10 times and see if there is a…

---

## [How to iterate over unicode characters with multiple codepoints](https://discourse.julialang.org/t/how-to-iterate-over-unicode-characters-with-multiple-codepoints/47828)

<div class="topic-metadata">

**Author:** [@systems](https://discourse.julialang.org/u/systems)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 1:28pm UTC](https://discourse.julialang.org/t/how-to-iterate-over-unicode-characters-with-multiple-codepoints/47828 "2020-10-06T13:28:06Z")

</div>

Hi this code str = "Héllo World" for i in str println(i) end produce this output H e ́ l l o W o r l d How to make it produce H é l l o W o r l d (On a side note, if you run it in vs code repl the line wi…

---

## [What can I do in case Gram matrix is not positive definite?](https://discourse.julialang.org/t/what-can-i-do-in-case-gram-matrix-is-not-positive-definite/47835)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 1:27pm UTC](https://discourse.julialang.org/t/what-can-i-do-in-case-gram-matrix-is-not-positive-definite/47835 "2020-10-06T13:27:49Z")

</div>

Dear Julians, I have constructed a Gram matrix from Gaussian kernel function and tried to get some samples from the Gaussian process with zero mean and the Gram matrix as its covariance. However, MvNormal throws “Not p…

---

## [FAQ: using Plots, plot on a map?](https://discourse.julialang.org/t/faq-using-plots-plot-on-a-map/47853)

<div class="topic-metadata">

**Author:** [@ZhouZhuofei](https://discourse.julialang.org/u/ZhouZhuofei)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 12:57pm UTC](https://discourse.julialang.org/t/faq-using-plots-plot-on-a-map/47853 "2020-10-06T12:57:20Z")

</div>

When I have plotted some pictures in the jupyter notebook with Plots, however, when I want to draw a map, I need to use some other packages like PlotlyJS, emmm. But there will be conflict WARNING: both PlotlyJS and Plot…

---

## [Update Cassandra/Scylla drivers](https://discourse.julialang.org/t/update-cassandra-scylla-drivers/3906)

<div class="topic-metadata">

**Author:** [@petterhg](https://discourse.julialang.org/u/petterhg)\
**Replies:** 5\
**Last updated:** [October 6, 2020, 12:33pm UTC](https://discourse.julialang.org/t/update-cassandra-scylla-drivers/3906 "2020-10-06T12:33:20Z")

</div>

Hi, Are there any plans on updating Cassandra drivers for Julia? I’ve seen some that has been written for v.0.4 that failed the tests. It would be really awesome to have!

---

## [Need help with resolving method ambiguities](https://discourse.julialang.org/t/need-help-with-resolving-method-ambiguities/47779)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 8\
**Last updated:** [October 6, 2020, 11:39am UTC](https://discourse.julialang.org/t/need-help-with-resolving-method-ambiguities/47779 "2020-10-06T11:39:51Z")

</div>

Just started to experiment with implementing a proxy type, but I failed very early: module Proxies export AbstractProxy, Proxy abstract type AbstractProxy end struct Proxy{TInner} \<: AbstractProxy inner::TInner …

---

## [These stack traces are out of control](https://discourse.julialang.org/t/these-stack-traces-are-out-of-control/47162)

<div class="topic-metadata">

**Author:** [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Replies:** 14\
**Last updated:** [October 6, 2020, 11:19am UTC](https://discourse.julialang.org/t/these-stack-traces-are-out-of-control/47162 "2020-10-06T11:19:02Z")

</div>

I just got a stack trace that has exceeded the scroll back on the VSCode terminal: \[15\] \_\_solve(::ODEProblem{Array{Float64,1},Tuple{Float64,Float64},true,DiffEqBase.NullParameters,DiffEqBase.ODEFunction{true,DiffEqSens…

---

## [Correct way to add elements to a multidimensional array?](https://discourse.julialang.org/t/correct-way-to-add-elements-to-a-multidimensional-array/47798)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 11:02am UTC](https://discourse.julialang.org/t/correct-way-to-add-elements-to-a-multidimensional-array/47798 "2020-10-06T11:02:44Z")

</div>

numbers = Array{Int}(undef, 2,2) println(typeof(numbers)) I attempted to use push!() but I kept getting an error. Is there a method specifically to add elements to multidimensional arrays?

---

## [Strange dot-syntax result](https://discourse.julialang.org/t/strange-dot-syntax-result/47840)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 17\
**Last updated:** [October 6, 2020, 8:53am UTC](https://discourse.julialang.org/t/strange-dot-syntax-result/47840 "2020-10-06T08:53:29Z")

</div>

the following is strange to me: julia\> a = \[11, 12, 13, 14\]; julia\> a\[2:4\] .= view(a, 1:3); julia\> a 4-element Array{Int64,1}: 11 11 12 13 which, in my understanding, the above assignment should be equivalent to: j…

---

## [Partial SVD](https://discourse.julialang.org/t/partial-svd/47820)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 7\
**Last updated:** [October 6, 2020, 6:57am UTC](https://discourse.julialang.org/t/partial-svd/47820 "2020-10-06T06:57:27Z")

</div>

Hello, Is there a command to only perform a partial SVD decomposition of a non-square matrix?

---

## [Store abstract types in a container](https://discourse.julialang.org/t/store-abstract-types-in-a-container/47764)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 7\
**Last updated:** [October 6, 2020, 5:00am UTC](https://discourse.julialang.org/t/store-abstract-types-in-a-container/47764 "2020-10-06T05:00:36Z")

</div>

What is the best way to store abstract types in an array let’s say: I have array world geometry. Each world component is essentially an object. Each array element could be A or B type, but both A\<:C, B\<:C. So I need a A…

---

## [Modify global variable in a function](https://discourse.julialang.org/t/modify-global-variable-in-a-function/47831)

<div class="topic-metadata">

**Author:** [@Jea](https://discourse.julialang.org/u/Jea)\
**Replies:** 1\
**Last updated:** [October 6, 2020, 3:52am UTC](https://discourse.julialang.org/t/modify-global-variable-in-a-function/47831 "2020-10-06T03:52:46Z")

</div>

I want to rename a variable in a function for later use with its new value. What I was thinking was this: myVar = "" function renameVar() myVar = "Hello" end renameVar() println(myVar) #What I wanted is for it …

---

## [Pre-Allocate Array Custom Struct with Zeroed Values](https://discourse.julialang.org/t/pre-allocate-array-custom-struct-with-zeroed-values/47823)

<div class="topic-metadata">

**Author:** [@RodBiren](https://discourse.julialang.org/u/RodBiren)\
**Replies:** 6\
**Last updated:** [October 6, 2020, 2:25am UTC](https://discourse.julialang.org/t/pre-allocate-array-custom-struct-with-zeroed-values/47823 "2020-10-06T02:25:38Z")

</div>

I am trying to figure out how to pre-allocate an array with a custom struct with zeroed values. I figured out how to allocate using undef, but I am uncertain how I can do that while setting the values other than a loop. …

---

## [Concatenating vectors of different length into a dataframe or table](https://discourse.julialang.org/t/concatenating-vectors-of-different-length-into-a-dataframe-or-table/47760)

<div class="topic-metadata">

**Author:** [@horizon](https://discourse.julialang.org/u/horizon)\
**Replies:** 9\
**Last updated:** [October 6, 2020, 1:32am UTC](https://discourse.julialang.org/t/concatenating-vectors-of-different-length-into-a-dataframe-or-table/47760 "2020-10-06T01:32:40Z")

</div>

Hi, I am trying to concatenate vectors of different length (can we merge vectors of different lengths?) into a dataframe or table but nothing seems to work. I will share my code. g = loadtable("all\_files" ; spacedelim…

---

## [How best to write this macro?](https://discourse.julialang.org/t/how-best-to-write-this-macro/47817)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 8\
**Last updated:** [October 6, 2020, 12:27am UTC](https://discourse.julialang.org/t/how-best-to-write-this-macro/47817 "2020-10-06T00:27:48Z")

</div>

I’m learning about meta programming and as practice, I tried to define a macro that would batch define and initialize arrays of a certain type. I got some of the way, but it’s clunky. What would be a better way of writ…

---

## [VarStructs.jl: variable Julia structs](https://discourse.julialang.org/t/varstructs-jl-variable-julia-structs/44653)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 4\
**Last updated:** [October 5, 2020, 11:27pm UTC](https://discourse.julialang.org/t/varstructs-jl-variable-julia-structs/44653 "2020-10-05T23:27:56Z")

</div>

I want to announce the VarStructs.jl package which introduces variables structs with dispatching and redefinition support. using Pkg; Pkg.add("VarStructs") using VarStructs Features VarStructs are similar to structs …

---

## [How can I get the loss functions in a multi-class classification Flux.jl neural network to work with Flux.onehotbatch?](https://discourse.julialang.org/t/how-can-i-get-the-loss-functions-in-a-multi-class-classification-flux-jl-neural-network-to-work-with-flux-onehotbatch/47767)

<div class="topic-metadata">

**Author:** [@qingyanz](https://discourse.julialang.org/u/qingyanz)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 8:45pm UTC](https://discourse.julialang.org/t/how-can-i-get-the-loss-functions-in-a-multi-class-classification-flux-jl-neural-network-to-work-with-flux-onehotbatch/47767 "2020-10-05T20:45:50Z")

</div>

I am trying to set up a model to predict a 8-label classification problem. Suppose the labels are ycat = \["a", "b", "c", "d", "e", "f", "g"\] and I have a sample set of labels to train & test on: ysample = \["a", "a", "g",…

---

## [Logdet of a cholesky! factorized matrix trows a \`DomainError\`](https://discourse.julialang.org/t/logdet-of-a-cholesky-factorized-matrix-trows-a-domainerror/47592)

<div class="topic-metadata">

**Author:** [@Maximilian](https://discourse.julialang.org/u/Maximilian)\
**Replies:** 3\
**Last updated:** [October 5, 2020, 8:39pm UTC](https://discourse.julialang.org/t/logdet-of-a-cholesky-factorized-matrix-trows-a-domainerror/47592 "2020-10-05T20:39:17Z")

</div>

The following code trows a DomainError after cholesky!() was called: mat = \[2.4 2.05 2.05 2.4\] logdet(mat) logdet(cholesky(mat)) cholesky!(mat) logdet(mat) Why is this the case?

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

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