# Latest

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

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

**Page:** 1119

---

## [Iterated Random Search Methods?](https://discourse.julialang.org/t/iterated-random-search-methods/76636)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 5:16pm UTC](https://discourse.julialang.org/t/iterated-random-search-methods/76636 "2022-02-17T17:16:46Z")

</div>

Hi, I’m trying to optimize a non-differentiable function with a mixture of discrete and continuous parameters. The function takes a long time to run, but we can run many batches of it at a time on separate machines, so …

---

## [Can you force CUDA to find an existing artifacts?](https://discourse.julialang.org/t/can-you-force-cuda-to-find-an-existing-artifacts/76575)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 5:15pm UTC](https://discourse.julialang.org/t/can-you-force-cuda-to-find-an-existing-artifacts/76575 "2022-02-17T17:15:47Z")

</div>

I tend to jump around projects a lot, most of which need the CUDA package. Everytime I “add CUDA” to my project and then go to use it, it always seems to download a new artifact. Is there anyway to force CUDA to look for…

---

## [StatsPlots & DataFrames: grouping by multiple columns](https://discourse.julialang.org/t/statsplots-dataframes-grouping-by-multiple-columns/76364)

<div class="topic-metadata">

**Author:** [@Cingulate7](https://discourse.julialang.org/u/Cingulate7)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 4:33pm UTC](https://discourse.julialang.org/t/statsplots-dataframes-grouping-by-multiple-columns/76364 "2022-02-17T16:33:51Z")

</div>

I want to create a box plot of data in a DataFrame grouped by more than one variable (column value). Is there a compact high-level way to do this? The following does not work: ‘’'using DataFrames, StatsPlots dfa = Data…

---

## [How may I reproduce the \`Distributions.jl\` logo?](https://discourse.julialang.org/t/how-may-i-reproduce-the-distributions-jl-logo/76631)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [February 17, 2022, 4:33pm UTC](https://discourse.julialang.org/t/how-may-i-reproduce-the-distributions-jl-logo/76631 "2022-02-17T16:33:32Z")

</div>

Hey, I’m trying to reproduce the Distributions.jl logo. Is there somewhere a code I can use to reproduce this logo ? I cannot retrace back the logo further than this PR : https://github.com/JuliaStats/Distributions.jl/p…

---

## [How to get the manifest version?](https://discourse.julialang.org/t/how-to-get-the-manifest-version/76633)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 3:56pm UTC](https://discourse.julialang.org/t/how-to-get-the-manifest-version/76633 "2022-02-17T15:56:38Z")

</div>

I’m moving Manifest files from Julia 1.6 to 1.7 and calling Pkg.upgrade\_manifest() to do this. Unfortunately, if a manifest is already at version 2.0, then Pkg.upgrade\_manifest() throws an exception: ERROR: LoadError: …

---

## [A few basic questions about Precompilation](https://discourse.julialang.org/t/a-few-basic-questions-about-precompilation/71545)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 6\
**Last updated:** [February 17, 2022, 3:46pm UTC](https://discourse.julialang.org/t/a-few-basic-questions-about-precompilation/71545 "2022-02-17T15:46:10Z")

</div>

Hi everyone, I have recently tried with little success to add a precompilation step to my own package project and hope someone can help me clarify a few problems. In this post it is explained that one can precompile …

---

## [String Distance Calculations on GPU](https://discourse.julialang.org/t/string-distance-calculations-on-gpu/57549)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 3:38pm UTC](https://discourse.julialang.org/t/string-distance-calculations-on-gpu/57549 "2022-02-17T15:38:42Z")

</div>

How difficult would it be to do this in Julia? It looks like it might be possible to do this with PyTorch: And here are some papers on the topic: https://www.researchgate.net/publication/300042590\_Using\_GPUs\_to\_Spee…

---

## [Can sampling a distribution in R result in more wider density or larger range than sampling the same thing in julia?](https://discourse.julialang.org/t/can-sampling-a-distribution-in-r-result-in-more-wider-density-or-larger-range-than-sampling-the-same-thing-in-julia/76598)

<div class="topic-metadata">

**Author:** [@mirror63](https://discourse.julialang.org/u/mirror63)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 2:42pm UTC](https://discourse.julialang.org/t/can-sampling-a-distribution-in-r-result-in-more-wider-density-or-larger-range-than-sampling-the-same-thing-in-julia/76598 "2022-02-17T14:42:08Z")

</div>

say I am sampling a model using HMC or Gibbs in Julia, then I produce the same thing in R. Even though the result produced by the sampling have very near mean but I am seeing that my sampling result in Julia has less var…

---

## [How can I create type stable stable tuples with non-concrete parameters (or: Invariant tuple types)](https://discourse.julialang.org/t/how-can-i-create-type-stable-stable-tuples-with-non-concrete-parameters-or-invariant-tuple-types/76627)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 5\
**Last updated:** [February 17, 2022, 2:14pm UTC](https://discourse.julialang.org/t/how-can-i-create-type-stable-stable-tuples-with-non-concrete-parameters-or-invariant-tuple-types/76627 "2022-02-17T14:14:28Z")

</div>

Hey all, So, I made this script where I have a type like this: struct Foo v::NTuple{8, Union{String, Nothing}} end The reason being that I want the compiler to be able to enforce a length of 8 for me, and also tha…

---

## [Pkg certificate issue on linux](https://discourse.julialang.org/t/pkg-certificate-issue-on-linux/76623)

<div class="topic-metadata">

**Author:** [@nabajour](https://discourse.julialang.org/u/nabajour)\
**Replies:** 13\
**Last updated:** [February 17, 2022, 2:13pm UTC](https://discourse.julialang.org/t/pkg-certificate-issue-on-linux/76623 "2022-02-17T14:13:53Z")

</div>

Hi, I have an issue downloading packages with Julia 1.7.2 on Debian Sid. (julia compiled from source) From a fresh machine (I moved the .julia folder out of the way), I get a certificate error when trying to install a …

---

## ["Vector{NamedTuple{" type](https://discourse.julialang.org/t/vector-namedtuple-type/76619)

<div class="topic-metadata">

**Author:** [@nicob](https://discourse.julialang.org/u/nicob)\
**Replies:** 3\
**Last updated:** [February 17, 2022, 1:22pm UTC](https://discourse.julialang.org/t/vector-namedtuple-type/76619 "2022-02-17T13:22:30Z")

</div>

Using the read() function from HDF5.jil I obtain this output for data: 43466-element Vector{NamedTuple{(:H1, \[…\]}}: (H1 = 8.26600, \[…\]), (H1 = 8.26600, \[…\]), How can I access a field? e.g. I tried data.H1 and data\[…

---

## [Can anyone give me an example of using Turing for sampling using metropolis hastings algorithm?](https://discourse.julialang.org/t/can-anyone-give-me-an-example-of-using-turing-for-sampling-using-metropolis-hastings-algorithm/76315)

<div class="topic-metadata">

**Author:** [@mirror63](https://discourse.julialang.org/u/mirror63)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 12:55pm UTC](https://discourse.julialang.org/t/can-anyone-give-me-an-example-of-using-turing-for-sampling-using-metropolis-hastings-algorithm/76315 "2022-02-17T12:55:35Z")

</div>

I have a normal proposal distribution with mean 3 and variance 4. Can anyone give me an example of sampling using metropolis hastings algorithm?

---

## [How to mutate static arrays?](https://discourse.julialang.org/t/how-to-mutate-static-arrays/7870)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 13\
**Last updated:** [February 17, 2022, 12:05pm UTC](https://discourse.julialang.org/t/how-to-mutate-static-arrays/7870 "2022-02-17T12:05:45Z")

</div>

From the README: The package provides a range of different useful built-in StaticArray types, which include mutable and immutable arrays based upon tuples, arrays based upon structs, and wrappers of Array. There is a r…

---

## [How to get empty markers, Plots, gr() backend](https://discourse.julialang.org/t/how-to-get-empty-markers-plots-gr-backend/20069)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 14\
**Last updated:** [February 17, 2022, 10:56am UTC](https://discourse.julialang.org/t/how-to-get-empty-markers-plots-gr-backend/20069 "2022-02-17T10:56:39Z")

</div>

If I have something like this plot(x, y, shape = :rect, m = (5, :black, stroke(1, :red)) the second option in m fills my marker with that color. But what I want is an empty marker, not white. Empty! Is this possible he…

---

## [Speed of exp function for skew hermitian matrices](https://discourse.julialang.org/t/speed-of-exp-function-for-skew-hermitian-matrices/76611)

<div class="topic-metadata">

**Author:** [@HKaras](https://discourse.julialang.org/u/HKaras)\
**Replies:** 12\
**Last updated:** [February 17, 2022, 9:41am UTC](https://discourse.julialang.org/t/speed-of-exp-function-for-skew-hermitian-matrices/76611 "2022-02-17T09:41:50Z")

</div>

I am currently investigating the use of Julia instead of MATLAB for some large quantum spin-dynamics simulations. As for most QM simulations this requires a large number of matrix exponentials. However I am getting a con…

---

## [How to set up / use a Kubernetes-cluster for distributed-computing?](https://discourse.julialang.org/t/how-to-set-up-use-a-kubernetes-cluster-for-distributed-computing/76615)

<div class="topic-metadata">

**Author:** [@tim-hilt](https://discourse.julialang.org/u/tim-hilt)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 9:18am UTC](https://discourse.julialang.org/t/how-to-set-up-use-a-kubernetes-cluster-for-distributed-computing/76615 "2022-02-17T09:18:29Z")

</div>

I want to use the nodes of a Kubernetes-cluster to act as remote workers for my Julia script. Coming from a workplace, where we mostly develop enterprise-software, I thought that virtually every cluster is based on Kube…

---

## [Library for visual arts?](https://discourse.julialang.org/t/library-for-visual-arts/76592)

<div class="topic-metadata">

**Author:** [@apoorvvyas52](https://discourse.julialang.org/u/apoorvvyas52)\
**Replies:** 3\
**Last updated:** [February 17, 2022, 7:47am UTC](https://discourse.julialang.org/t/library-for-visual-arts/76592 "2022-02-17T07:47:20Z")

</div>

Processing is a free and open-source programming environment perfect for beginners and advanced users alike. It allows to learn core principles of computer programming within the context of the visual arts. It runs on JA…

---

## [PCA Output?](https://discourse.julialang.org/t/pca-output/22687)

<div class="topic-metadata">

**Author:** [@Gunter\_Faes](https://discourse.julialang.org/u/Gunter_Faes)\
**Replies:** 25\
**Last updated:** [February 17, 2022, 7:36am UTC](https://discourse.julialang.org/t/pca-output/22687 "2022-02-17T07:36:46Z")

</div>

Thanks to your support I can now estimate my PCA model and get the following output (MultivariateStats): PCA(indim = 1599, outdim = 3, principalratio = 0.99857) The methods offered by PCA seem a little rudimentary to m…

---

## [Creating a function in Julia](https://discourse.julialang.org/t/creating-a-function-in-julia/76603)

<div class="topic-metadata">

**Author:** [@fsanik041](https://discourse.julialang.org/u/fsanik041)\
**Replies:** 3\
**Last updated:** [February 17, 2022, 5:29am UTC](https://discourse.julialang.org/t/creating-a-function-in-julia/76603 "2022-02-17T05:29:34Z")

</div>

I’m trying to write a function in Julia that draws n values from a arbitrary distribution truncated on loess fit and hybrid index class. I can create the function in r using: rtruncated=function(n,lo,hi,pf,qf,...) ...…

---

## [Which is better Makie or Graphs?](https://discourse.julialang.org/t/which-is-better-makie-or-graphs/76508)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 7\
**Last updated:** [February 17, 2022, 4:24am UTC](https://discourse.julialang.org/t/which-is-better-makie-or-graphs/76508 "2022-02-17T04:24:41Z")

</div>

I’m trying to visually see how some functions converge and use it for some other visualizations of functions or 3d simulations and I’m wondering which one is better, or should I learn both? Initially I choose Makie, but …

---

## [Rising Stars 2022 Sandia Labs](https://discourse.julialang.org/t/rising-stars-2022-sandia-labs/76602)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 3:27am UTC](https://discourse.julialang.org/t/rising-stars-2022-sandia-labs/76602 "2022-02-17T03:27:27Z")

</div>

Rising Stars is an intensive workshop for women graduate students and postdocs who are interested in pursuing academic and research careers. https://www.sandia.gov/risingstars/

---

## [Profiling Revised Base](https://discourse.julialang.org/t/profiling-revised-base/76599)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 3:14am UTC](https://discourse.julialang.org/t/profiling-revised-base/76599 "2022-02-17T03:14:49Z")

</div>

After running Revise.track(Base) and editing files in Base, @profile & Profile.print() give wrong line numbers. Is there a way around this?

---

## [Checking whether a variable is of a supertype](https://discourse.julialang.org/t/checking-whether-a-variable-is-of-a-supertype/76563)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 5\
**Last updated:** [February 17, 2022, 2:54am UTC](https://discourse.julialang.org/t/checking-whether-a-variable-is-of-a-supertype/76563 "2022-02-17T02:54:36Z")

</div>

Is there a way to check whether a variable is of a particular supertype. For example, if I initialize a=1; M = rand(Int64, 3, 4); can I check whether a is also of type Real and M is also of types AbstractMatrix or Matr…

---

## [Calculating 2-point correlation of a large 3D array: \`view\` seems to make it worse?](https://discourse.julialang.org/t/calculating-2-point-correlation-of-a-large-3d-array-view-seems-to-make-it-worse/76493)

<div class="topic-metadata">

**Author:** [@Ickaser](https://discourse.julialang.org/u/Ickaser)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 2:46am UTC](https://discourse.julialang.org/t/calculating-2-point-correlation-of-a-large-3d-array-view-seems-to-make-it-worse/76493 "2022-02-17T02:46:53Z")

</div>

I am trying to calculate the 2-point correlation of a large 3D BitArray (the data comes from a micro-CT scan of a porous structure, which I have already thresholded, hence each voxel is either 1 or 0). At the moment, I a…

---

## [Transposed matrix](https://discourse.julialang.org/t/transposed-matrix/76597)

<div class="topic-metadata">

**Author:** [@lln](https://discourse.julialang.org/u/lln)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 2:32am UTC](https://discourse.julialang.org/t/transposed-matrix/76597 "2022-02-17T02:32:31Z")

</div>

Hi, I’m new to Julia and I apologize in advance if there’s a simple answer to my question somewhere but I’ve spent lots of time without any success. I’m trying to re-write the following Python code in Julia import sci…

---

## [Supress scale bar in gadfly](https://discourse.julialang.org/t/supress-scale-bar-in-gadfly/76520)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 12:36am UTC](https://discourse.julialang.org/t/supress-scale-bar-in-gadfly/76520 "2022-02-17T00:36:18Z")

</div>

I’m sure this is obvious, but I’ve been searching for hours for a solution. How do I suppress the “Count” scale bar on the right? using Gadfly # code plot(x=dnas, y=brdus, Geom.histogram2d, Guide.xlabel("DNA"), Guid…

---

## [ANN: InteractiveCodeSearch.jl --- Interactively search Julia code](https://discourse.julialang.org/t/ann-interactivecodesearch-jl-interactively-search-julia-code/17657)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 21\
**Last updated:** [February 16, 2022, 11:14pm UTC](https://discourse.julialang.org/t/ann-interactivecodesearch-jl-interactively-search-julia-code/17657 "2022-02-16T23:14:56Z")

</div>

Let me introduce my package InteractiveCodeSearch.jl. It helps you searching Julia code. Julia has @edit, @less, etc. which are very handy for reading the implementation of functions. However, you need to specify a “…

---

## [How to force Flux to use FiniteDiff](https://discourse.julialang.org/t/how-to-force-flux-to-use-finitediff/76324)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 16\
**Last updated:** [February 16, 2022, 10:48pm UTC](https://discourse.julialang.org/t/how-to-force-flux-to-use-finitediff/76324 "2022-02-16T22:48:47Z")

</div>

I have loss() function. FiniteDiff.finite\_difference\_derivative - works great with the this loss() ForwardDiff.derivative - doesn’t work at all. As result Flux.train!(loss,Flux.params(NNODE),data,ADAM(0.001)) doesn’t …

---

## [LibPQ, missing to nothing in query result](https://discourse.julialang.org/t/libpq-missing-to-nothing-in-query-result/76591)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 9:39pm UTC](https://discourse.julialang.org/t/libpq-missing-to-nothing-in-query-result/76591 "2022-02-16T21:39:55Z")

</div>

Hello LibPQ users! Is there a simple way to replace missing on nothing in the query result?

---

## [Finding points in a Delaunay triangulation](https://discourse.julialang.org/t/finding-points-in-a-delaunay-triangulation/71154)

<div class="topic-metadata">

**Author:** [@jmaffi](https://discourse.julialang.org/u/jmaffi)\
**Replies:** 14\
**Last updated:** [February 16, 2022, 9:26pm UTC](https://discourse.julialang.org/t/finding-points-in-a-delaunay-triangulation/71154 "2022-02-16T21:26:45Z")

</div>

Hello everyone, Is there a specific package/function that computes the id’s of the simplices that contain a given (probably large) set of points in a n-d Delaunay triangulation? Something equivalent to Matlab’s tsearchn …

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

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