# Latest

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

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

**Page:** 1488

---

## [Makie - How to pad data inside an axis?](https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 12:19am UTC](https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488 "2021-02-18T00:19:23Z")

</div>

I currently have the following and I would like to put a bit more space above the curves (generated with density for the second and third). How can I achieve that? If I could access the current xlims or ylims I could…

---

## [How to make functions multipliable?](https://discourse.julialang.org/t/how-to-make-functions-multipliable/55487)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 8\
**Last updated:** [February 17, 2021, 10:15pm UTC](https://discourse.julialang.org/t/how-to-make-functions-multipliable/55487 "2021-02-17T22:15:55Z")

</div>

I want to make functions be able to be multiplied: f(x) = x^2 g = 3 \* f g(10) # == 300 Is this achievable?

---

## [Hyper Priors in Turing](https://discourse.julialang.org/t/hyper-priors-in-turing/20752)

<div class="topic-metadata">

**Author:** [@krenova](https://discourse.julialang.org/u/krenova)\
**Replies:** 5\
**Last updated:** [February 17, 2021, 9:34pm UTC](https://discourse.julialang.org/t/hyper-priors-in-turing/20752 "2021-02-17T21:34:16Z")

</div>

Hi, I’m wondering if hyperpriors work on Turing. I’m playing around with Turing and trying to use it to estimate a Hidden Markov Model. In my HMM model, I’ve used a multivariate normal prior on parameters of my transiti…

---

## [Downloading from github behind a firewall - Peer’s Certificate issuer is not recognized](https://discourse.julialang.org/t/downloading-from-github-behind-a-firewall-peer-s-certificate-issuer-is-not-recognized/43003)

<div class="topic-metadata">

**Author:** [@feacluster](https://discourse.julialang.org/u/feacluster)\
**Replies:** 12\
**Last updated:** [February 17, 2021, 9:27pm UTC](https://discourse.julialang.org/t/downloading-from-github-behind-a-firewall-peer-s-certificate-issuer-is-not-recognized/43003 "2021-02-17T21:27:25Z")

</div>

I am behind a corporate firewall but am authenticated to access the internet. I can access any site using curl . But I keep running into this error in Julia when installing packages: │ \[18:12:51\] curl: (60) Peer’s Certi…

---

## [Vectorized math](https://discourse.julialang.org/t/vectorized-math/55476)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 12\
**Last updated:** [February 17, 2021, 8:02pm UTC](https://discourse.julialang.org/t/vectorized-math/55476 "2021-02-17T20:02:28Z")

</div>

Is there a need to use the “.” for vector math when adding and multiplying? a = \[1 2 3\] b = \[3 4 5\] # Which is better for performance? They both do the same thing. c = 1/2 \* a + b d = 1/2 .\* a .+ b

---

## [Macro behavior depends on method of code loading?](https://discourse.julialang.org/t/macro-behavior-depends-on-method-of-code-loading/55483)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 7:12pm UTC](https://discourse.julialang.org/t/macro-behavior-depends-on-method-of-code-loading/55483 "2021-02-17T19:12:52Z")

</div>

I have two identical versions of a macro that prints all exported names of a given module. One version is imported from a package; the other is defined globally. The former fails while the latter succeeds. What am I doin…

---

## [Query derivative of DAE solution](https://discourse.julialang.org/t/query-derivative-of-dae-solution/55150)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 7:08pm UTC](https://discourse.julialang.org/t/query-derivative-of-dae-solution/55150 "2021-02-17T19:08:03Z")

</div>

Is there a way to query the derivative of the solution when solving a DAE? function f(out, du, u, p, t) out\[1\] = - 0.04u\[1\] + 1e4 \* u\[2\] \* u\[3\] - du\[1\] out\[2\] = + 0.04u\[1\] - 3e7 \* u\[2\]^2 - 1e4 \* u\[2\] \* u\[3\] - du…

---

## [How to convert Array{Int64} to Array{BigInt}](https://discourse.julialang.org/t/how-to-convert-array-int64-to-array-bigint/55473)

<div class="topic-metadata">

**Author:** [@Renan\_Rabelo](https://discourse.julialang.org/u/Renan_Rabelo)\
**Replies:** 4\
**Last updated:** [February 17, 2021, 6:29pm UTC](https://discourse.julialang.org/t/how-to-convert-array-int64-to-array-bigint/55473 "2021-02-17T18:29:29Z")

</div>

Is there any function to do it?

---

## [Symmetric matrix is not symmetric](https://discourse.julialang.org/t/symmetric-matrix-is-not-symmetric/55479)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 6:26pm UTC](https://discourse.julialang.org/t/symmetric-matrix-is-not-symmetric/55479 "2021-02-17T18:26:08Z")

</div>

I’m trying to do a hierarchical clustering of a matrix, and I’m running into a weird problem. Using Distances.jl, I’m doing dm = pairwise(Jaccard(), my\_matrix), and then hclust(dm) from Clustering.jl. But I’m getting ju…

---

## [Efficient Repeat: Array of single value](https://discourse.julialang.org/t/efficient-repeat-array-of-single-value/55464)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 6:17pm UTC](https://discourse.julialang.org/t/efficient-repeat-array-of-single-value/55464 "2021-02-17T18:17:26Z")

</div>

I want to define defaults for a read-only AbstractVector{Bool} argument to a function and so far used falses(n). However, this allocates a full BitArray. I guess should be a type similar to a Range that can do this job,…

---

## [Efficient reflection on structs](https://discourse.julialang.org/t/efficient-reflection-on-structs/55278)

<div class="topic-metadata">

**Author:** [@Guillaume\_Leclerc](https://discourse.julialang.org/u/Guillaume_Leclerc)\
**Replies:** 54\
**Last updated:** [February 17, 2021, 6:08pm UTC](https://discourse.julialang.org/t/efficient-reflection-on-structs/55278 "2021-02-17T18:08:43Z")

</div>

Hello, I am trying to do something to StructArray but I can’t seem to generate efficient code. Let’s say there is struct Wrapper{T} and it is supposed to behave similarly to T except I’m managing where/how the underlyi…

---

## [Seeking support for the Julia Language's YouTube](https://discourse.julialang.org/t/seeking-support-for-the-julia-languages-youtube/55471)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 5:28pm UTC](https://discourse.julialang.org/t/seeking-support-for-the-julia-languages-youtube/55471 "2021-02-17T17:28:32Z")

</div>

Hey all, I am wondering if there’s anyone out there in the community who would be interested in helping snaz up the YouTube channel. What that entails: Adding custom thumbnails to videos created on Canva.com Making …

---

## [Any performance issues with multiple dispatch?](https://discourse.julialang.org/t/any-performance-issues-with-multiple-dispatch/55468)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 5\
**Last updated:** [February 17, 2021, 5:18pm UTC](https://discourse.julialang.org/t/any-performance-issues-with-multiple-dispatch/55468 "2021-02-17T17:18:49Z")

</div>

Hi! I have some functions in a loop that get called a huge number of times. Some of them have two different forms, one when my elements are triangles and on when they are quads. Normally, I’d write two different for loo…

---

## [DSP Filter application](https://discourse.julialang.org/t/dsp-filter-application/55156)

<div class="topic-metadata">

**Author:** [@roble](https://discourse.julialang.org/u/roble)\
**Replies:** 13\
**Last updated:** [February 17, 2021, 4:28pm UTC](https://discourse.julialang.org/t/dsp-filter-application/55156 "2021-02-17T16:28:45Z")

</div>

Hi, I am trying to use the filt(f, x\[, si\]) function from the DSP.jl module. My raw data looks like this: On this data I apply a lowpass filter: df.data\_raw # my raw data w0 = 1/120 # cutoff frequency df.data\_lp= …

---

## [What might have happened to \*my\* @code\_warntype?](https://discourse.julialang.org/t/what-might-have-happened-to-my-code-warntype/55435)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 7\
**Last updated:** [February 17, 2021, 4:04pm UTC](https://discourse.julialang.org/t/what-might-have-happened-to-my-code-warntype/55435 "2021-02-17T16:04:21Z")

</div>

I run this command many times before and it used to print hundreds of lines, now it just print this (same for other @code\_warntype calls to other functions) julia\> @code\_warntype plot(\[0 0; 1 1\]); Variables #self#::Co…

---

## [Logistic Regression Mixture Model](https://discourse.julialang.org/t/logistic-regression-mixture-model/55406)

<div class="topic-metadata">

**Author:** [@Carter](https://discourse.julialang.org/u/Carter)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 2:20pm UTC](https://discourse.julialang.org/t/logistic-regression-mixture-model/55406 "2021-02-17T14:20:23Z")

</div>

I’m trying to implement robust logistic regression fromchapter 10.5 of PML. The model is p(y|\\mathbf{x}) = \\pi Ber(y|0.5) + (1-\\pi) Ber(y|\\sigma(\\mathbf{w}^\\top\\mathbf{x})) where \\pi are the mixture weights drawn from a …

---

## [Trying to use textbook with ChemEquations.jl package](https://discourse.julialang.org/t/trying-to-use-textbook-with-chemequations-jl-package/55356)

<div class="topic-metadata">

**Author:** [@22natarajank](https://discourse.julialang.org/u/22natarajank)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 2:07pm UTC](https://discourse.julialang.org/t/trying-to-use-textbook-with-chemequations-jl-package/55356 "2021-02-17T14:07:19Z")

</div>

I have been learning Julia along side my AP chemistry class and was trying the ChemEquations.jl. It uses keyword ce to define a chemical Equations like this. balance(ce"Al{3} + Cl{-1} = AlCl3") What is ce above as a la…

---

## [VS Code Julia extension version](https://discourse.julialang.org/t/vs-code-julia-extension-version/55458)

<div class="topic-metadata">

**Author:** [@j2b2](https://discourse.julialang.org/u/j2b2)\
**Replies:** 2\
**Last updated:** [February 17, 2021, 1:45pm UTC](https://discourse.julialang.org/t/vs-code-julia-extension-version/55458 "2021-02-17T13:45:05Z")

</div>

Hello, I’m trying to install VS Code Julia extension, following Getting Started · Julia in VS Code, and in the “EXTENSIONS” tab of VS Code I see julia 1.1.21, instead of 0.17 !! What did I do wrong ?

---

## [Call @show in logging macro](https://discourse.julialang.org/t/call-show-in-logging-macro/55313)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 5\
**Last updated:** [February 17, 2021, 11:59am UTC](https://discourse.julialang.org/t/call-show-in-logging-macro/55313 "2021-02-17T11:59:15Z")

</div>

Does anyone know how to call @show in logging macro, ex @info? I tried: julia\> using Logging julia\> @info “hi” \[ Info: hi julia\> message = “hi” “hi” julia\> @info message \[ Info: hi julia\> @info @show message m…

---

## [Plot function with multiple arguments](https://discourse.julialang.org/t/plot-function-with-multiple-arguments/55411)

<div class="topic-metadata">

**Author:** [@Evan](https://discourse.julialang.org/u/Evan)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 9:12am UTC](https://discourse.julialang.org/t/plot-function-with-multiple-arguments/55411 "2021-02-17T09:12:13Z")

</div>

I would like to plot a function that takes multiple inputs or arguments. An example for illustrative purpose: using Plots function dgp\_DD\_t(x, treatment=1) y = (2+ treatment)\*x end plot(dgp\_DD\_t,0,50) But what i wa…

---

## [Cant install OpenSpecFun](https://discourse.julialang.org/t/cant-install-openspecfun/54457)

<div class="topic-metadata">

**Author:** [@ctaraborelli](https://discourse.julialang.org/u/ctaraborelli)\
**Replies:** 5\
**Last updated:** [February 17, 2021, 11:32am UTC](https://discourse.julialang.org/t/cant-install-openspecfun/54457 "2021-02-17T11:32:38Z")

</div>

Hello! I am trying to install JuMP and it throws me the following error: As I’ve been reading I can install the package manually from here but I’m really new and I don’t understand how to do it. Could you help me…

---

## [I made a EM Algorithm for Gaussian Mixture Models, but that is not working](https://discourse.julialang.org/t/i-made-a-em-algorithm-for-gaussian-mixture-models-but-that-is-not-working/55205)

<div class="topic-metadata">

**Author:** [@ryuma](https://discourse.julialang.org/u/ryuma)\
**Replies:** 4\
**Last updated:** [February 17, 2021, 11:18am UTC](https://discourse.julialang.org/t/i-made-a-em-algorithm-for-gaussian-mixture-models-but-that-is-not-working/55205 "2021-02-17T11:18:47Z")

</div>

I made a EM Algorithm for Gaussian Mixture Models, but that is not working. error massages → matrix is not Hermitian; Cholesky factorization failed. why error happen, please teach me. using LinearAlgebra using Distrib…

---

## [How to convert a Vector of MVectors to a Matrix](https://discourse.julialang.org/t/how-to-convert-a-vector-of-mvectors-to-a-matrix/55449)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 10:52am UTC](https://discourse.julialang.org/t/how-to-convert-a-vector-of-mvectors-to-a-matrix/55449 "2021-02-17T10:52:24Z")

</div>

I have the following code: using StaticArrays function test() X = range(0, stop=10, length=8) X\_vec = Vector{MVector{8, Float32}}(undef, 10) for i in range(1, stop=10) X\_vec\[i\] = X end retur…

---

## [Lag with WGLMakie](https://discourse.julialang.org/t/lag-with-wglmakie/55399)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 9\
**Last updated:** [February 17, 2021, 10:51am UTC](https://discourse.julialang.org/t/lag-with-wglmakie/55399 "2021-02-17T10:51:20Z")

</div>

In the following MWE (requires a connected webcam to work), I experience a substantial lag and a surprisingly low frame-rate: using VideoIO, WGLMakie, JSServe, Observables cam = VideoIO.opencamera() # open the webcam i…

---

## [Is there a way to "enumerate" \`mapslices\` other than\`\`\`i = 0result = mapslices(m](https://discourse.julialang.org/t/is-there-a-way-to-enumerate-mapslices-other-than-i-0result-mapslices-m/55414)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 9:39am UTC](https://discourse.julialang.org/t/is-there-a-way-to-enumerate-mapslices-other-than-i-0result-mapslices-m/55414 "2021-02-17T09:39:06Z")

</div>

Is there a way to “enumerate” mapslices other than i = 0 result = mapslices(myarray; dims=dims) do x i += 1 myfunction(x, i) end ? Note that the original poster on Slack cannot see your response here on Discou…

---

## [\[ANN\] UnitfulLatexify.jl](https://discourse.julialang.org/t/ann-unitfullatexify-jl/54090)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 16\
**Last updated:** [February 17, 2021, 9:02am UTC](https://discourse.julialang.org/t/ann-unitfullatexify-jl/54090 "2021-02-17T09:02:52Z")

</div>

Announcing UnitfulLatexify.jl – A glue package between Unitful and Latexify (surprise!). Creates LaTeXStrings from Unitful quantities and units, either on the form 35\\;\\mathrm{cm} or \\SI{35}{\\centi\\meter}. I think it’s…

---

## [Documenter.jl error after using StatsPlots](https://discourse.julialang.org/t/documenter-jl-error-after-using-statsplots/55444)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 0\
**Last updated:** [February 17, 2021, 8:23am UTC](https://discourse.julialang.org/t/documenter-jl-error-after-using-statsplots/55444 "2021-02-17T08:23:52Z")

</div>

I have the error afet using StatsPlots: /home/runner/.julia/packages/GR/G9I5v/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory…

---

## [Hi again. Now I'm having trouble to download the \`OpenSpecFun\` artifact. It happen](https://discourse.julialang.org/t/hi-again-now-im-having-trouble-to-download-the-openspecfun-artifact-it-happen/55392)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 17, 2021, 7:26am UTC](https://discourse.julialang.org/t/hi-again-now-im-having-trouble-to-download-the-openspecfun-artifact-it-happen/55392 "2021-02-17T07:26:15Z")

</div>

Hi again. Now I’m having trouble to download the OpenSpecFun artifact. It happens when adding a package from a custom registry, please see the screenshot attached with the traceback (the user claims they’re unable to cop…

---

## [Package for lazy concatenation along arbitrary higher dimensions?](https://discourse.julialang.org/t/package-for-lazy-concatenation-along-arbitrary-higher-dimensions/55413)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 4\
**Last updated:** [February 17, 2021, 7:17am UTC](https://discourse.julialang.org/t/package-for-lazy-concatenation-along-arbitrary-higher-dimensions/55413 "2021-02-17T07:17:57Z")

</div>

Are there any packages that let you concatenate lazily along arbitrary dimensions like the eager cat does? julia\> mats = \[rand(5,6,7,8), rand(5,6,7,8)\]; julia\> combo = cat(mats..., dims=3); # this, but lazy julia\> siz…

---

## [Add a Jupyter Notebook subcategory to Tooling?](https://discourse.julialang.org/t/add-a-jupyter-notebook-subcategory-to-tooling/55273)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 4\
**Last updated:** [February 17, 2021, 7:06am UTC](https://discourse.julialang.org/t/add-a-jupyter-notebook-subcategory-to-tooling/55273 "2021-02-17T07:06:35Z")

</div>

I noticed that the Tooling category has subcategories for VSCode, Juno, and Julia Pro. Could we add a subcategory for Jupyter Notebook? I use Jupyter notebooks as my main IDE for Julia, and I imagine a lot of other Julia…

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

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