# Latest

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

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

**Page:** 363

---

## [Reduce not type stable](https://discourse.julialang.org/t/reduce-not-type-stable/117056)

<div class="topic-metadata">

**Author:** [@ssdfg](https://discourse.julialang.org/u/ssdfg)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 7:35pm UTC](https://discourse.julialang.org/t/reduce-not-type-stable/117056 "2024-07-15T19:35:25Z")

</div>

julia\> reduce(vcat, \[1,2\]) 2-element Vector{Int64}: 1 2 julia\> reduce(vcat, \[1\]) 1

---

## [Tracking population vs agent level attributes in Agents.jl](https://discourse.julialang.org/t/tracking-population-vs-agent-level-attributes-in-agents-jl/117050)

<div class="topic-metadata">

**Author:** [@amynang](https://discourse.julialang.org/u/amynang)\
**Replies:** 3\
**Last updated:** [July 15, 2024, 7:23pm UTC](https://discourse.julialang.org/t/tracking-population-vs-agent-level-attributes-in-agents-jl/117050 "2024-07-15T19:23:55Z")

</div>

I am translating an ABM model from NetLogo to Julia (i.e. Agents.jl). The model, “particle world” is described in Paul Smaldino’s Modeling Social Behavior, where it is used to introduce basic NetLogo functionality. Agen…

---

## [Problem with \`replace\` function making too many replacements](https://discourse.julialang.org/t/problem-with-replace-function-making-too-many-replacements/117022)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 7:06pm UTC](https://discourse.julialang.org/t/problem-with-replace-function-making-too-many-replacements/117022 "2024-07-15T19:06:51Z")

</div>

I have a dataset where one of the columns provides the names of university departments, such as “economics department” and “statistics department”, etc. However there are cases where some rows list the name as “statistic…

---

## [Intersection of two dataframes based on columns](https://discourse.julialang.org/t/intersection-of-two-dataframes-based-on-columns/31421)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [July 14, 2024, 10:01pm UTC](https://discourse.julialang.org/t/intersection-of-two-dataframes-based-on-columns/31421 "2024-07-14T22:01:17Z")

</div>

Hi all- I have two dataframes in which one is a subset of the other based on the values in some columns. For example, using DataFrames df1 = DataFrame(a=\[1,1,2,2,3,3\], b=\[1,2,1,2,1,2\], c=rand(6)) df2 = DataFrame(a=\[1,…

---

## [Condition Turing model on a variable created within the model](https://discourse.julialang.org/t/condition-turing-model-on-a-variable-created-within-the-model/116994)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 4:19pm UTC](https://discourse.julialang.org/t/condition-turing-model-on-a-variable-created-within-the-model/116994 "2024-07-15T16:19:17Z")

</div>

Assuming I have the following variable \[0, 1\] using Downloads, CSV, DataFrames, Random using Turing, Distributions using GLMakie using StatsFuns: logistic y = vcat(rand(Beta(2, 10), 200), rand(Uniform(0, 1), 100), …

---

## [Hcubature + spherical from CoordinateTransformations](https://discourse.julialang.org/t/hcubature-spherical-from-coordinatetransformations/117042)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 3\
**Last updated:** [July 15, 2024, 3:05pm UTC](https://discourse.julialang.org/t/hcubature-spherical-from-coordinatetransformations/117042 "2024-07-15T15:05:57Z")

</div>

I am trying integration over a spherical shell by combining hcubature and spherical from CoordinateTransformations. I do get a method error. Code and error message below. Advice is much appreciated. function foo(r) …

---

## [Multiple colobars](https://discourse.julialang.org/t/multiple-colobars/116970)

<div class="topic-metadata">

**Author:** [@ArneSpang](https://discourse.julialang.org/u/ArneSpang)\
**Replies:** 8\
**Last updated:** [July 15, 2024, 10:15am UTC](https://discourse.julialang.org/t/multiple-colobars/116970 "2024-07-15T10:15:53Z")

</div>

I am trying to make a plot with a heatmap in the background and contour plot of a different field on top. I could steal some ideas from this thread (Overlay a contour over a heatmap - #8 by lazarusA) and I get as far as …

---

## [JuliaHealth Warsaw Workshop 🇵🇱 : Monday, July 15th 2024](https://discourse.julialang.org/t/juliahealth-warsaw-workshop-monday-july-15th-2024/116487)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 8:00am UTC](https://discourse.julialang.org/t/juliahealth-warsaw-workshop-monday-july-15th-2024/116487 "2024-07-15T08:00:49Z")

</div>

Hi everyone, With a huge thank you to Dr. @Jakub\_Mitura, I am pleased to announce that I will be visiting the National Information Processing Institute in Warsaw, Poland to give a small workshop on Julia and JuliaHealth…

---

## [Is there a Julia package for using the Raspberry Pi camera?](https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 7:57am UTC](https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032 "2024-07-15T07:57:19Z")

</div>

I want to do image processing in real time using the Raspberry Pi global shutter camera. Is there a Julia package that wraps the the Raspberry camera libraries?

---

## [Fast Exponential of a large matrix](https://discourse.julialang.org/t/fast-exponential-of-a-large-matrix/116998)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 14\
**Last updated:** [July 15, 2024, 7:21am UTC](https://discourse.julialang.org/t/fast-exponential-of-a-large-matrix/116998 "2024-07-15T07:21:47Z")

</div>

I have to perform the exponential of a matrix. I have compared the built-in exp function to the exponential! function from the ExponentialUtilites package. The latter is supposed to be much faster than the built-in funct…

---

## [State of creating Executables for Julia code](https://discourse.julialang.org/t/state-of-creating-executables-for-julia-code/117045)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 1\
**Last updated:** [July 15, 2024, 6:32am UTC](https://discourse.julialang.org/t/state-of-creating-executables-for-julia-code/117045 "2024-07-15T06:32:40Z")

</div>

How do we create an executable app for whatever code we’ve written in Julia? I am relatively new to the language. Creating my little project I felt like checking out how executables work in Julia. To my surprise, there…

---

## [Callbacks with xpress in JuMP](https://discourse.julialang.org/t/callbacks-with-xpress-in-jump/116889)

<div class="topic-metadata">

**Author:** [@Popeye](https://discourse.julialang.org/u/Popeye)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 5:11am UTC](https://discourse.julialang.org/t/callbacks-with-xpress-in-jump/116889 "2024-07-15T05:11:30Z")

</div>

Hi everyone, I’m currently working on a MILP problem using the Xpress solver in JuMP. Some instances of this problem are taking considerably longer to solve to optimality, and I would like to implement solver-specific c…

---

## [Compare array (of String) with no regard to the order](https://discourse.julialang.org/t/compare-array-of-string-with-no-regard-to-the-order/62322)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 8\
**Last updated:** [July 15, 2024, 4:17am UTC](https://discourse.julialang.org/t/compare-array-of-string-with-no-regard-to-the-order/62322 "2024-07-15T04:17:04Z")

</div>

Le’t have 2 arrays (of String, but it doesn’t really matter). I need to compare them, but the order is irrelevant, just that they contain the same Strings/items (and are of the same length, obviously). i.e. comparison o…

---

## [Alpha keyword ignored in scatterlines](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 2:52am UTC](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954 "2024-07-15T02:52:11Z")

</div>

MWE: using CairoMakie set\_theme!(theme\_latexfonts()) update\_theme!( palette=(color=ColorSchemes.glasbey\_category10\_n256.colors,), ScatterLines=(cycle=Cycle(:color),) ) function main() f = Figure() ax =…

---

## [C struct garbage collection not run frequently enough](https://discourse.julialang.org/t/c-struct-garbage-collection-not-run-frequently-enough/116919)

<div class="topic-metadata">

**Author:** [@mattsignorelli](https://discourse.julialang.org/u/mattsignorelli)\
**Replies:** 28\
**Last updated:** [July 14, 2024, 11:42pm UTC](https://discourse.julialang.org/t/c-struct-garbage-collection-not-run-frequently-enough/116919 "2024-07-14T23:42:04Z")

</div>

I have a Julia interface to a C library where each C struct represents a number. In Julia, the mutable struct just contains a Ptr to the C struct, and the finalizer calls the C destructor. These C structs can be very me…

---

## [Kalman Filters example translation from python](https://discourse.julialang.org/t/kalman-filters-example-translation-from-python/117039)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 3\
**Last updated:** [July 14, 2024, 9:41pm UTC](https://discourse.julialang.org/t/kalman-filters-example-translation-from-python/117039 "2024-07-14T21:41:36Z")

</div>

I want to implement this Kalman Filter from pykalman in julia kf = KalmanFilter( transition\_matrices = \[1\], observation\_matrices = \[1\], initial\_state\_mean = 0, initial\_state\_covariance = 1, observat…

---

## [Send email with Franklin.jl?](https://discourse.julialang.org/t/send-email-with-franklin-jl/117041)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 9:40pm UTC](https://discourse.julialang.org/t/send-email-with-franklin-jl/117041 "2024-07-14T21:40:44Z")

</div>

Would it be possible to add a “Send email” button to a website created with Franklin.jl ? a. if deployed on Github b. if deployed on a web/email server? And if yes, how?

---

## [Some CUDA functions suddenly become very slow](https://discourse.julialang.org/t/some-cuda-functions-suddenly-become-very-slow/117025)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 3\
**Last updated:** [July 14, 2024, 8:00pm UTC](https://discourse.julialang.org/t/some-cuda-functions-suddenly-become-very-slow/117025 "2024-07-14T20:00:23Z")

</div>

I am new to GPU computation and I want to start from julia. I use CUDA.jl to do this and write some code following the instruction. However, it takes very long time for the following simple code: module TestMyCUDA fun…

---

## [ERROR: LoadError: Python: IndexError: only integers, slices (\`:\`), ellipsis (\`...\`), numpy.newaxis (\`None\`) and integer or boolean arrays are valid indices](https://discourse.julialang.org/t/error-loaderror-python-indexerror-only-integers-slices-ellipsis-numpy-newaxis-none-and-integer-or-boolean-arrays-are-valid-indices/117028)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [July 14, 2024, 6:48pm UTC](https://discourse.julialang.org/t/error-loaderror-python-indexerror-only-integers-slices-ellipsis-numpy-newaxis-none-and-integer-or-boolean-arrays-are-valid-indices/117028 "2024-07-14T18:48:38Z")

</div>

I am getting ERROR: LoadError: Python: IndexError: only integers, slices (:), ellipsis (…), numpy.newaxis (None) and integer or boolean arrays are valid indices Python stacktrace: none I am using julia script that calls…

---

## [Metal Kernel 3D indices](https://discourse.julialang.org/t/metal-kernel-3d-indices/116429)

<div class="topic-metadata">

**Author:** [@trasor](https://discourse.julialang.org/u/trasor)\
**Replies:** 4\
**Last updated:** [July 14, 2024, 6:47pm UTC](https://discourse.julialang.org/t/metal-kernel-3d-indices/116429 "2024-07-14T18:47:19Z")

</div>

Hello together, i try to write a metal kernel that do some operations on 3D arrays like: function vadd!( nz::Int64,ny::Int64,nx::Int64, a::MtlDeviceArray{Float32, 3, 1}, b::MtlDeviceArray{Float32, 3, 1}, c::MtlDeviceArr…

---

## [Max of a vector as an objective for JuMP?](https://discourse.julialang.org/t/max-of-a-vector-as-an-objective-for-jump/116911)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 11\
**Last updated:** [July 14, 2024, 6:13pm UTC](https://discourse.julialang.org/t/max-of-a-vector-as-an-objective-for-jump/116911 "2024-07-14T18:13:10Z")

</div>

Hi Everyone, I have an optimization problem similar to this one, except my objective is now the maximum element in a vector (which I want to minimize). Can JuMP handle this as an objective, and if so, what’s the best wa…

---

## [Julia documentation about FOR loop](https://discourse.julialang.org/t/julia-documentation-about-for-loop/104725)

<div class="topic-metadata">

**Author:** [@atBNE](https://discourse.julialang.org/u/atBNE)\
**Replies:** 16\
**Last updated:** [July 14, 2024, 5:11pm UTC](https://discourse.julialang.org/t/julia-documentation-about-for-loop/104725 "2024-07-14T17:11:28Z")

</div>

Incomplete / missing element in Julia documentation about: Repeated Evaluation: Loops https://docs.julialang.org/en/v1/manual/control-flow/#man-loops The description of the “for” loop is missing the “step” value. Pl…

---

## [Resizing an image with Franklin](https://discourse.julialang.org/t/resizing-an-image-with-franklin/117036)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 4:46pm UTC](https://discourse.julialang.org/t/resizing-an-image-with-franklin/117036 "2024-07-14T16:46:38Z")

</div>

Is there a way to resize an image in Franklin.jl ? This is too small: Code: # The floods in Kenya in April 2024 \\fig{flood.jpeg} This image has 639x396 pixel, the original image was much bigger, so somewhere it m…

---

## [\[Seeking feedback\] Blog post about "Modern Julia workflows"?](https://discourse.julialang.org/t/seeking-feedback-blog-post-about-modern-julia-workflows/100324)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 38\
**Last updated:** [July 14, 2024, 4:10pm UTC](https://discourse.julialang.org/t/seeking-feedback-blog-post-about-modern-julia-workflows/100324 "2024-07-14T16:10:30Z")

</div>

Hi everyone, After watching a nice video by @jacobusmmsmit yesterday, I sat down and thought about all the lore that experienced Julia users keep in their heads. How to write and share code properly, which packages to u…

---

## [Debugging Julia code in a Jupyter Notebook in VS Code](https://discourse.julialang.org/t/debugging-julia-code-in-a-jupyter-notebook-in-vs-code/117005)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 5\
**Last updated:** [July 14, 2024, 4:06pm UTC](https://discourse.julialang.org/t/debugging-julia-code-in-a-jupyter-notebook-in-vs-code/117005 "2024-07-14T16:06:53Z")

</div>

Hi, I am working with the debugger that comes with Julia for VS Code. This works fine for script files, but I can’t seem to figure out how to get it to work with Jupyter notebooks running Julia code. Any assistance would…

---

## [Strange: the Julia Package I never heard is the one with double the stars of the second one](https://discourse.julialang.org/t/strange-the-julia-package-i-never-heard-is-the-one-with-double-the-stars-of-the-second-one/117031)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [July 14, 2024, 1:57pm UTC](https://discourse.julialang.org/t/strange-the-julia-package-i-never-heard-is-the-one-with-double-the-stars-of-the-second-one/117031 "2024-07-14T13:57:58Z")

</div>

Just browsed juliapackages sorting by github stars and found that, while in these years I heard more or less of all the main packages, the one at the very top, with more that double the stars of the second one, I never h…

---

## [Franklin.jl and Github](https://discourse.julialang.org/t/franklin-jl-and-github/117008)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 20\
**Last updated:** [July 14, 2024, 10:48am UTC](https://discourse.julialang.org/t/franklin-jl-and-github/117008 "2024-07-14T10:48:34Z")

</div>

I installed Franklin.jl and created a website, which is in a subfolder. I know I can deploy the generated website to Github. But does this deploy just the generated code, or also the source code?

---

## [Using everything exported in a module and its submodules](https://discourse.julialang.org/t/using-everything-exported-in-a-module-and-its-submodules/117024)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 4\
**Last updated:** [July 14, 2024, 10:28am UTC](https://discourse.julialang.org/t/using-everything-exported-in-a-module-and-its-submodules/117024 "2024-07-14T10:28:12Z")

</div>

I am currently replacing some String arguments of my mutable structure with dedicated types instead. The following MWE works perfectly fine: module MyPackage ### Some code module Options module SolveMod …

---

## [How to install pySR on python(Windows system)](https://discourse.julialang.org/t/how-to-install-pysr-on-python-windows-system/116952)

<div class="topic-metadata">

**Author:** [@wilson](https://discourse.julialang.org/u/wilson)\
**Replies:** 20\
**Last updated:** [July 14, 2024, 8:52am UTC](https://discourse.julialang.org/t/how-to-install-pysr-on-python-windows-system/116952 "2024-07-14T08:52:16Z")

</div>

Hi,everyone. I am very new to pysr and julia. When I installed pysr by using the command “pip install pysr”, and imported it in python, it told that Command ‘\[‘C:\\Users\\wilson\\.julia\\juliaup\\julia-1.10.4+0.x64.w64.mingw3…

---

## [TOML parsing error](https://discourse.julialang.org/t/toml-parsing-error/116891)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 4\
**Last updated:** [July 14, 2024, 8:48am UTC](https://discourse.julialang.org/t/toml-parsing-error/116891 "2024-07-14T08:48:21Z")

</div>

My julia keeps running into unknow problems and get killed when I install packages. And when I restart I always got error messages like this: (@v1.9) pkg\> up ERROR: TOML Parser error: C:\\Users\\pkudu\\.julia\\logs\\manifest…

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

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