# Latest

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

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

**Page:** 342

---

## [Slider does not show after upgrade Jupyter](https://discourse.julialang.org/t/slider-does-not-show-after-upgrade-jupyter/112059)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.julialang.org/u/HJW019)\
**Replies:** 3\
**Last updated:** [August 16, 2024, 7:01am UTC](https://discourse.julialang.org/t/slider-does-not-show-after-upgrade-jupyter/112059 "2024-08-16T07:01:06Z")

</div>

(I posted the query on the Jupyter forum, and was suggested that the issue might lie with Interact.jl . Therefore, I’m bringing the question here for further insights.) I’ve been using Julia in Jupyter Notebook (NB) to …

---

## [Julia pre installed in Linux distro like python](https://discourse.julialang.org/t/julia-pre-installed-in-linux-distro-like-python/118230)

<div class="topic-metadata">

**Author:** [@Anil\_Beniwal](https://discourse.julialang.org/u/Anil_Beniwal)\
**Replies:** 22\
**Last updated:** [August 16, 2024, 6:45am UTC](https://discourse.julialang.org/t/julia-pre-installed-in-linux-distro-like-python/118230 "2024-08-16T06:45:38Z")

</div>

Python is pre installed in many Linux distro. Why anyone is not shipping a Linux distro with Julia pre-installed ? or replace python or more like Linux distro with everything made in python replaced with Julia+mousetrap.…

---

## [Increasing size of guide bar fonts in 3d surface plots from Plots.ji](https://discourse.julialang.org/t/increasing-size-of-guide-bar-fonts-in-3d-surface-plots-from-plots-ji/118249)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 1\
**Last updated:** [August 16, 2024, 6:37am UTC](https://discourse.julialang.org/t/increasing-size-of-guide-bar-fonts-in-3d-surface-plots-from-plots-ji/118249 "2024-08-16T06:37:31Z")

</div>

In this image I can increase the guide fonts alright but the fonts on the vertical guide bar (starting from 0.4) remains the same and also, is there any way to reduce the height of that guide bar too? I’m using plotl…

---

## [Divergent colormap with white near center](https://discourse.julialang.org/t/divergent-colormap-with-white-near-center/118215)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 2\
**Last updated:** [August 16, 2024, 5:13am UTC](https://discourse.julialang.org/t/divergent-colormap-with-white-near-center/118215 "2024-08-16T05:13:52Z")

</div>

I’m plotting a 2D field with contourf. The field has positive and negative values and so I use one divergent colormap or another and with a symmetric contouring like levels=-10:2:10. The problem I face now is that I ne…

---

## [SciML: optimizing a control signal](https://discourse.julialang.org/t/sciml-optimizing-a-control-signal/117504)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 7\
**Last updated:** [August 16, 2024, 1:04am UTC](https://discourse.julialang.org/t/sciml-optimizing-a-control-signal/117504 "2024-08-16T01:04:59Z")

</div>

Suppose I’ve got a differential equation that takes some forcing / control signal as input defined as a DataInterpolation.LinearInterpolation(u, t) (similar to the tutorial example). I’d like to find the u vector which m…

---

## [Adjoint vector boundary condition](https://discourse.julialang.org/t/adjoint-vector-boundary-condition/118149)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 7:31pm UTC](https://discourse.julialang.org/t/adjoint-vector-boundary-condition/118149 "2024-08-15T19:31:48Z")

</div>

Hi, I am using Gridap to find adjoint vectors in finite element space. Assume that I have a beam with applied displacement as boundary condition on a line. In this case I got discontinuities in values of adjoint vectors.…

---

## [Spacegrid subset](https://discourse.julialang.org/t/spacegrid-subset/118066)

<div class="topic-metadata">

**Author:** [@JCaro](https://discourse.julialang.org/u/JCaro)\
**Replies:** 7\
**Last updated:** [August 15, 2024, 7:22pm UTC](https://discourse.julialang.org/t/spacegrid-subset/118066 "2024-08-15T19:22:26Z")

</div>

I need to work on a simulation and i want to make a gridspace and sub-divide it, using random points in the grid and their respectivly voronoi polygons. Can someone give some directions on how/how not do it?? a image of…

---

## [Raspberry Pi AI Kit](https://discourse.julialang.org/t/raspberry-pi-ai-kit/118225)

<div class="topic-metadata">

**Author:** [@Vyacheslav\_Vorobyov](https://discourse.julialang.org/u/Vyacheslav_Vorobyov)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 6:25pm UTC](https://discourse.julialang.org/t/raspberry-pi-ai-kit/118225 "2024-08-15T18:25:49Z")

</div>

Hi all! Does Julia support Raspberry Pi AI Kit ? Or is it possible to do that in some hard (not very) way? Raspberry Pi AI Kit – is a Raspberry Pi with Hailo AI acceleration module on top. The context is that I was …

---

## [Plotting scatter points together with surface plot](https://discourse.julialang.org/t/plotting-scatter-points-together-with-surface-plot/118063)

<div class="topic-metadata">

**Author:** [@MoritzD](https://discourse.julialang.org/u/MoritzD)\
**Replies:** 21\
**Last updated:** [August 15, 2024, 6:06pm UTC](https://discourse.julialang.org/t/plotting-scatter-points-together-with-surface-plot/118063 "2024-08-15T18:06:29Z")

</div>

Hello! I have a function that i want to surface plot and a bunch of points that i want to add to that plot. Unfortunately this doesn’t look good the way i do it. The problem appears to be that i first do the surface pl…

---

## [Precise definition of Wiener process](https://discourse.julialang.org/t/precise-definition-of-wiener-process/118213)

<div class="topic-metadata">

**Author:** [@acubed](https://discourse.julialang.org/u/acubed)\
**Replies:** 5\
**Last updated:** [August 15, 2024, 4:29pm UTC](https://discourse.julialang.org/t/precise-definition-of-wiener-process/118213 "2024-08-15T16:29:00Z")

</div>

Having used DifferentialEquations for two years, I have understood that I still do not understand the precise definiton of Wiener process. I try to solve the following system of SDEs, function determ\_dyn!(du, u, p, t) …

---

## ["extended" vector with heterogeneous "padding"](https://discourse.julialang.org/t/extended-vector-with-heterogeneous-padding/118140)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 5\
**Last updated:** [August 15, 2024, 4:08pm UTC](https://discourse.julialang.org/t/extended-vector-with-heterogeneous-padding/118140 "2024-08-15T16:08:07Z")

</div>

Hello, I seem to frequently encounter situations where accounting for boundary/initial conditions requires “extending” vectors in a way similar to padding, but where padded values are not necessarily constant and might …

---

## [Turing custom distribution implementation](https://discourse.julialang.org/t/turing-custom-distribution-implementation/117881)

<div class="topic-metadata">

**Author:** [@jmarsh96](https://discourse.julialang.org/u/jmarsh96)\
**Replies:** 4\
**Last updated:** [August 15, 2024, 2:49pm UTC](https://discourse.julialang.org/t/turing-custom-distribution-implementation/117881 "2024-08-15T14:49:29Z")

</div>

Hi, I am fairly new to Julia and have been having trouble implementing custom distributions for use within Turing. The model is defined as follows. Let Y denote the data which we assume are generated by Y = \\theta + X, …

---

## [Naming variables and constructor functions](https://discourse.julialang.org/t/naming-variables-and-constructor-functions/118222)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [August 15, 2024, 1:32pm UTC](https://discourse.julialang.org/t/naming-variables-and-constructor-functions/118222 "2024-08-15T13:32:06Z")

</div>

This is a style question that has been bugging me for a while so I thought I would ask what others do. Consider a composite type Foo, for which I expose the constructor. This is something that I like to do for non-trivi…

---

## [\[ANN\] MPIHaloArrays.jl](https://discourse.julialang.org/t/ann-mpihaloarrays-jl/77385)

<div class="topic-metadata">

**Author:** [@smillerc](https://discourse.julialang.org/u/smillerc)\
**Replies:** 2\
**Last updated:** [August 15, 2024, 12:49pm UTC](https://discourse.julialang.org/t/ann-mpihaloarrays-jl/77385 "2024-08-15T12:49:58Z")

</div>

MPIHaloArrays.jl is a new package that provides the MPIHaloArray array type, which is a subtype of AbstractArray, that facilitates the exchange of halo, or ghost, cells commonly used in domain-decomposition methods high …

---

## [What's the latest and greatest in data in Julia](https://discourse.julialang.org/t/whats-the-latest-and-greatest-in-data-in-julia/117271)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 29\
**Last updated:** [August 15, 2024, 12:28pm UTC](https://discourse.julialang.org/t/whats-the-latest-and-greatest-in-data-in-julia/117271 "2024-08-15T12:28:42Z")

</div>

Due to personal circumstances, I’ve been away from Julia (actually open-source in general) for a couple of years so haven’t been catching up with what’s going on in data. I have seen some TidierData info on x but is oth…

---

## [Voronoi cell index identification based on point(x,y) position](https://discourse.julialang.org/t/voronoi-cell-index-identification-based-on-point-x-y-position/118216)

<div class="topic-metadata">

**Author:** [@Manasa\_S](https://discourse.julialang.org/u/Manasa_S)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 9:54am UTC](https://discourse.julialang.org/t/voronoi-cell-index-identification-based-on-point-x-y-position/118216 "2024-08-15T09:54:52Z")

</div>

Is there a way to get the closest voronoi cell index based on the point position (x,y)?

---

## [How to use secondary axis for specific series in a groupedbar plot?](https://discourse.julialang.org/t/how-to-use-secondary-axis-for-specific-series-in-a-groupedbar-plot/118173)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [August 15, 2024, 9:04am UTC](https://discourse.julialang.org/t/how-to-use-secondary-axis-for-specific-series-in-a-groupedbar-plot/118173 "2024-08-15T09:04:32Z")

</div>

Is it possible to specify a secondary y-axis for some of the series in a groupedbar plot ? (I am using Plots.jl/StatsPlots.jl) I have tried to split it in two separate calls with twinxs(), but it doesn’t work: x = \[1 3…

---

## [Method for \`Base.length\` on a \`const\` type alias crashes julia](https://discourse.julialang.org/t/method-for-base-length-on-a-const-type-alias-crashes-julia/118169)

<div class="topic-metadata">

**Author:** [@kunzaatko](https://discourse.julialang.org/u/kunzaatko)\
**Replies:** 7\
**Last updated:** [August 15, 2024, 8:36am UTC](https://discourse.julialang.org/t/method-for-base-length-on-a-const-type-alias-crashes-julia/118169 "2024-08-15T08:36:05Z")

</div>

Julia is crashing when I try to define a Base.length method on a const type alias. julia\> import Base: length julia\> const A{N} = NTuple{N, Int64} Tuple{Vararg{Int64, N}} where N julia\> length(a::A) = prod(a) After …

---

## [Help with for-loops optimization / Translation from Matlab](https://discourse.julialang.org/t/help-with-for-loops-optimization-translation-from-matlab/118204)

<div class="topic-metadata">

**Author:** [@Benjamin7](https://discourse.julialang.org/u/Benjamin7)\
**Replies:** 7\
**Last updated:** [August 15, 2024, 7:42am UTC](https://discourse.julialang.org/t/help-with-for-loops-optimization-translation-from-matlab/118204 "2024-08-15T07:42:59Z")

</div>

Hi, I have been asked to translate a matlab code to Julia to gain speed, what I have done is to put each for loop with the @inbound, put each array and all important code in a function, I have defined the type of almost …

---

## [Word Documents and PDFs in Julia](https://discourse.julialang.org/t/word-documents-and-pdfs-in-julia/118175)

<div class="topic-metadata">

**Author:** [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Replies:** 4\
**Last updated:** [August 15, 2024, 4:06am UTC](https://discourse.julialang.org/t/word-documents-and-pdfs-in-julia/118175 "2024-08-15T04:06:05Z")

</div>

I’m working with folders of PDFs and .docx documents in Julia. I’ve been trying to find some packages to help me deal with this, but I only really found Docx (I’ve taken care of the PDFs). While I can the documents with …

---

## [Organizing structures and action functions into files](https://discourse.julialang.org/t/organizing-structures-and-action-functions-into-files/118210)

<div class="topic-metadata">

**Author:** [@ykkan](https://discourse.julialang.org/u/ykkan)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 2:29am UTC](https://discourse.julialang.org/t/organizing-structures-and-action-functions-into-files/118210 "2024-08-15T02:29:22Z")

</div>

Hello everyone, I have a question about organizing structures and action functions into files. In Julia’s programming paradigm, we usually first identify the nouns of a problem and implement the corresponding struct fo…

---

## [Making \`setindex\` public, how to document it, rethinking the Collections docs](https://discourse.julialang.org/t/making-setindex-public-how-to-document-it-rethinking-the-collections-docs/117419)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 13\
**Last updated:** [August 15, 2024, 12:03am UTC](https://discourse.julialang.org/t/making-setindex-public-how-to-document-it-rethinking-the-collections-docs/117419 "2024-08-15T00:03:06Z")

</div>

@aplavin is trying to make Base.setindex a public API of Julia, which seems like a good idea, given that many packages use it already and it seems like an OK interface. The question is, how to document it. The function i…

---

## [Parallelize differential equation solve with interpolated forcing function](https://discourse.julialang.org/t/parallelize-differential-equation-solve-with-interpolated-forcing-function/118207)

<div class="topic-metadata">

**Author:** [@Dima\_Tretiak](https://discourse.julialang.org/u/Dima_Tretiak)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 11:51pm UTC](https://discourse.julialang.org/t/parallelize-differential-equation-solve-with-interpolated-forcing-function/118207 "2024-08-14T23:51:08Z")

</div>

I’m trying to run a parameter sweep across various different forcing functions defined by interpolations through discrete data. My discrete data U\_all is of shape N x Nu x Nt where N is the number of forcing functions I …

---

## [Llamafile/tinyBLAS, and Julia small-install/binary challenge](https://discourse.julialang.org/t/llamafile-tinyblas-and-julia-small-install-binary-challenge/118206)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 11:45pm UTC](https://discourse.julialang.org/t/llamafile-tinyblas-and-julia-small-install-binary-challenge/118206 "2024-08-14T23:45:36Z")

</div>

Julia could replicate the idea behind llamafile (which works for CPUs and GPUs) and/or just use tinyBLAS: llamafile lets you turn large language model (LLM) weights into executables. Say you have a set of LLM weight…

---

## [Running a function over multiple nodes on a julia cluster, from within a julia script](https://discourse.julialang.org/t/running-a-function-over-multiple-nodes-on-a-julia-cluster-from-within-a-julia-script/118153)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 5\
**Last updated:** [August 14, 2024, 3:27pm UTC](https://discourse.julialang.org/t/running-a-function-over-multiple-nodes-on-a-julia-cluster-from-within-a-julia-script/118153 "2024-08-14T15:27:56Z")

</div>

I have a function whose skeleton looks like this: function inner(a,ij) return a\*ij; end function outer(a,N) arr = zeros(ComplexF64, N); for ij = 1:N arr\[ij\] = inner(a,ij); end return sum(arr) end…

---

## [Julia Equivalent to PyTorch's \`torch.nn.functional.affine\_grid\`](https://discourse.julialang.org/t/julia-equivalent-to-pytorchs-torch-nn-functional-affine-grid/118205)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 11:18pm UTC](https://discourse.julialang.org/t/julia-equivalent-to-pytorchs-torch-nn-functional-affine-grid/118205 "2024-08-14T23:18:37Z")

</div>

I asked on Slack without much help. Is there an equivalent to the affine\_grid function from Pytorch? This numpy version will work if I want to port it to Julia but would rather see if any Julia packages provide a more r…

---

## [Fastest way to read fixed-width tables embedded in a larger text file](https://discourse.julialang.org/t/fastest-way-to-read-fixed-width-tables-embedded-in-a-larger-text-file/118108)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 9\
**Last updated:** [August 14, 2024, 11:11pm UTC](https://discourse.julialang.org/t/fastest-way-to-read-fixed-width-tables-embedded-in-a-larger-text-file/118108 "2024-08-14T23:11:36Z")

</div>

I’ve got a bunch of .txt files that contain a few hundred lines of “junk” at the beginning, then two tables embedded at the end. Those two tables always begin the same number of lines from the end of the file. Further, t…

---

## [Feature request: variant of -\> that uses current bindings](https://discourse.julialang.org/t/feature-request-variant-of-that-uses-current-bindings/118161)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 10:34pm UTC](https://discourse.julialang.org/t/feature-request-variant-of-that-uses-current-bindings/118161 "2024-08-14T22:34:43Z")

</div>

It is a documented feature of Julia (see Performance Tips · The Julia Language) that using a variable from the main body of a function in an inner function causes the inner and outer copy of the variable to be bound toge…

---

## [Adjoint(A)\*A for MArray and Type Stability](https://discourse.julialang.org/t/adjoint-a-a-for-marray-and-type-stability/118201)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 6\
**Last updated:** [August 14, 2024, 9:17pm UTC](https://discourse.julialang.org/t/adjoint-a-a-for-marray-and-type-stability/118201 "2024-08-14T21:17:53Z")

</div>

I wonder how to implement Adjoint(A)\*A in type stable way for MArrays. Below is a MWE and output of @code\_warntype() struct SFoo SGnu::SMatrix{3,3} end struct MFoo MGnu::MMatrix{3,3} end sgnu = SMatrix{3,3}(0., …

---

## [Same multi-threaded code, scaling observed only on some machines](https://discourse.julialang.org/t/same-multi-threaded-code-scaling-observed-only-on-some-machines/118200)

<div class="topic-metadata">

**Author:** [@EdTi](https://discourse.julialang.org/u/EdTi)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 8:02pm UTC](https://discourse.julialang.org/t/same-multi-threaded-code-scaling-observed-only-on-some-machines/118200 "2024-08-14T20:02:48Z")

</div>

Hi everyone, I was quite surprised by the following benchmark.The goal is the following : initialize a big vector x, and try to add 1 to all of its coordinates as fast as possible, taking advantage of multi-threading. H…

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

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