# Latest

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

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

**Page:** 401

---

## [Several questions on distributed computing from a beginner](https://discourse.julialang.org/t/several-questions-on-distributed-computing-from-a-beginner/114620)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 21\
**Last updated:** [May 28, 2024, 3:00pm UTC](https://discourse.julialang.org/t/several-questions-on-distributed-computing-from-a-beginner/114620 "2024-05-28T15:00:53Z")

</div>

Hi, everyone! I’d like to ask several questions that have confused me very much during my learning distributed computing as a complete beginner. So I came here looking for some confirmation, and also hope it can help oth…

---

## [Android studio, tflite and random forest](https://discourse.julialang.org/t/android-studio-tflite-and-random-forest/114839)

<div class="topic-metadata">

**Author:** [@Rahmat](https://discourse.julialang.org/u/Rahmat)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 2:59pm UTC](https://discourse.julialang.org/t/android-studio-tflite-and-random-forest/114839 "2024-05-28T14:59:15Z")

</div>

how to connect tflite to android studio using machine learning random forest and using csv or excell data

---

## [Accessing the constructor of a type as a function](https://discourse.julialang.org/t/accessing-the-constructor-of-a-type-as-a-function/114823)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 3\
**Last updated:** [May 28, 2024, 2:51pm UTC](https://discourse.julialang.org/t/accessing-the-constructor-of-a-type-as-a-function/114823 "2024-05-28T14:51:55Z")

</div>

Is there any way that I can get the construction function of a struct? What I want to do is the following: I have a struct Foo and 2 Worker structs: struct Foo worker\_creator::Function end mutable struct HardWorker…

---

## [Package extension for data-specific (unregister) package to use - how to add the extension?](https://discourse.julialang.org/t/package-extension-for-data-specific-unregister-package-to-use-how-to-add-the-extension/114835)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [May 28, 2024, 12:41pm UTC](https://discourse.julialang.org/t/package-extension-for-data-specific-unregister-package-to-use-how-to-add-the-extension/114835 "2024-05-28T12:41:23Z")

</div>

Package extensions are typically used when the user of a package may or may not already have a certain functionality-provided package installed in his own environment. But how can I use them instead as a conditional dep…

---

## [\[WIP, RFC, ANN\] PlutoWorkspaceExplorer: Inspect the variables definined in a Pluto notebook](https://discourse.julialang.org/t/wip-rfc-ann-plutoworkspaceexplorer-inspect-the-variables-definined-in-a-pluto-notebook/112327)

<div class="topic-metadata">

**Author:** [@JackDevine](https://discourse.julialang.org/u/JackDevine)\
**Replies:** 6\
**Last updated:** [May 28, 2024, 11:58am UTC](https://discourse.julialang.org/t/wip-rfc-ann-plutoworkspaceexplorer-inspect-the-variables-definined-in-a-pluto-notebook/112327 "2024-05-28T11:58:35Z")

</div>

PlutoVariableExplorer.jl PlutoWorkspaceExplorer.jl creates a table of the variables in your current Pluto session. Given my background in MATLAB, this is a feature that I have wanted for a while. Unlike MATLAB (or any …

---

## [Adding a plot triggers axis reset in Makie](https://discourse.julialang.org/t/adding-a-plot-triggers-axis-reset-in-makie/114820)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 11:01am UTC](https://discourse.julialang.org/t/adding-a-plot-triggers-axis-reset-in-makie/114820 "2024-05-28T11:01:08Z")

</div>

If I have a makie plot using GLMakie fig = Figure() ax = Axis(fig\[1,1\]) scatter!(ax, 10, 10) fig zoom and pan and then add another plot scatter!(ax, 0, 0) the view port is reset. How can I prevent that?

---

## [Why \`map\` requires \`collect\` to use for general iterable things?](https://discourse.julialang.org/t/why-map-requires-collect-to-use-for-general-iterable-things/114748)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 18\
**Last updated:** [May 28, 2024, 10:05am UTC](https://discourse.julialang.org/t/why-map-requires-collect-to-use-for-general-iterable-things/114748 "2024-05-28T10:05:54Z")

</div>

Why map requires to collect for general iterable things? julia\> foreach(println, "あいうえお") あ い う え お julia\> map(println, "あいうえお"); あ ERROR: ArgumentError: map(f, s::AbstractString) requires f to return AbstractChar; try…

---

## [Use the homography matrix from Apriltag](https://discourse.julialang.org/t/use-the-homography-matrix-from-apriltag/114824)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 0\
**Last updated:** [May 28, 2024, 9:38am UTC](https://discourse.julialang.org/t/use-the-homography-matrix-from-apriltag/114824 "2024-05-28T09:38:43Z")

</div>

This is just to share a piece of a code that might prove useful for someone. If you want to use the homography matrix from a detected Apriltag (such as the ones from Apriltags.jl), in order to convert from pixel coordin…

---

## [Add row and column labels to grid plot](https://discourse.julialang.org/t/add-row-and-column-labels-to-grid-plot/114750)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 10\
**Last updated:** [May 28, 2024, 9:29am UTC](https://discourse.julialang.org/t/add-row-and-column-labels-to-grid-plot/114750 "2024-05-28T09:29:49Z")

</div>

Hi all, I have a grid of contour plots, each with the same x and y dimensions. The grid is formed by varying two other dimensions. I would like to add labels r1, r2, …, rn to the rows and c1, c2, …, cn to the columns. c…

---

## [Improving speed of runtime dispatch detector](https://discourse.julialang.org/t/improving-speed-of-runtime-dispatch-detector/114697)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 63\
**Last updated:** [May 28, 2024, 8:29am UTC](https://discourse.julialang.org/t/improving-speed-of-runtime-dispatch-detector/114697 "2024-05-28T08:29:52Z")

</div>

I’m working on this small package DispatchDoctor – GitHub - MilesCranmer/DispatchDoctor.jl which helps to address some of the issues discussed in this thread. This package provides the @stable macro as a more ergonomic …

---

## [Approximating the inverse of an expensive CDF function](https://discourse.julialang.org/t/approximating-the-inverse-of-an-expensive-cdf-function/114809)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 4:32am UTC](https://discourse.julialang.org/t/approximating-the-inverse-of-an-expensive-cdf-function/114809 "2024-05-28T04:32:32Z")

</div>

I have a CDF for a real-valued random variable that is relatively expensive to compute and I require an approximate inverse to implement sampling. There exist techniques adapted to this use case. One technique, implemen…

---

## [Is there no ldiv! for Choleski factorization of a sparse matrix?](https://discourse.julialang.org/t/is-there-no-ldiv-for-choleski-factorization-of-a-sparse-matrix/114806)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 5\
**Last updated:** [May 28, 2024, 2:27am UTC](https://discourse.julialang.org/t/is-there-no-ldiv-for-choleski-factorization-of-a-sparse-matrix/114806 "2024-05-28T02:27:00Z")

</div>

MWE: using SparseArrays using LinearAlgebra a = sparse(\[1, 2, 3, 4\], \[1, 2, 3, 4\], \[1.0, 2.0, 3.0, 4.0\], 4, 4) af = cholesky(a) b = rand(4) y = zeros(4) ldiv!(y, af, b) Results in error: ERROR: MethodError: no method …

---

## [Examples of when to use @async over @spawn?](https://discourse.julialang.org/t/examples-of-when-to-use-async-over-spawn/114631)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 8\
**Last updated:** [May 28, 2024, 2:26am UTC](https://discourse.julialang.org/t/examples-of-when-to-use-async-over-spawn/114631 "2024-05-28T02:26:17Z")

</div>

I’m trying to figure out if there’s ever a good reason to use @async over Threads.@spawn anymore. It seems like you want Threads.@spawn the vast majority of the time – it’s more composable, gives more freedom to the sch…

---

## [Activating environment triggers error in CUDA](https://discourse.julialang.org/t/activating-environment-triggers-error-in-cuda/114710)

<div class="topic-metadata">

**Author:** [@lance\_xwq](https://discourse.julialang.org/u/lance_xwq)\
**Replies:** 5\
**Last updated:** [May 28, 2024, 1:09am UTC](https://discourse.julialang.org/t/activating-environment-triggers-error-in-cuda/114710 "2024-05-28T01:09:02Z")

</div>

Hi all, I ran into a strange issue today; it seems that activating an environment of mine would trigger an ArgumentError: Pass LowerSIMDLoop error in CUDA. The full error message is at the end of this post. This env…

---

## [DifferentialEquations v7.13.0 FunctionWrappersWrappers Error](https://discourse.julialang.org/t/differentialequations-v7-13-0-functionwrapperswrappers-error/114612)

<div class="topic-metadata">

**Author:** [@rebetz](https://discourse.julialang.org/u/rebetz)\
**Replies:** 7\
**Last updated:** [May 28, 2024, 12:36am UTC](https://discourse.julialang.org/t/differentialequations-v7-13-0-functionwrapperswrappers-error/114612 "2024-05-28T00:36:10Z")

</div>

Hello, I have existing code that uses the DifferentialEquations package that was working fine yesterday, but when run today (23/5/2024) it is giving a message from the solver code: ERROR: FunctionWrappersWrappers.NoFun…

---

## [Question on Loading HDF Data Saved in Python](https://discourse.julialang.org/t/question-on-loading-hdf-data-saved-in-python/114562)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 19\
**Last updated:** [May 28, 2024, 12:35am UTC](https://discourse.julialang.org/t/question-on-loading-hdf-data-saved-in-python/114562 "2024-05-28T00:35:15Z")

</div>

Hello, Does anyone have experience with this? My colleague has some large data saved on our cluster in the .h5 file format. He saved it in python using the h5py package. I’d like to now open and analyze the same data …

---

## [SCS and Mosek give very different answers](https://discourse.julialang.org/t/scs-and-mosek-give-very-different-answers/114739)

<div class="topic-metadata">

**Author:** [@Sam\_Hopkins](https://discourse.julialang.org/u/Sam_Hopkins)\
**Replies:** 6\
**Last updated:** [May 27, 2024, 11:00am UTC](https://discourse.julialang.org/t/scs-and-mosek-give-very-different-answers/114739 "2024-05-27T11:00:35Z")

</div>

Hi, I’m looking for help with semidefinite programming libraries, in particular Mosek.jl and SCS.jl, which I am accessing via JuMP. I have a particular semidefinite program, unfortunately not so small, for which SCS an…

---

## [Unclear error message when trying to install package with incompatible julia version](https://discourse.julialang.org/t/unclear-error-message-when-trying-to-install-package-with-incompatible-julia-version/114632)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 3\
**Last updated:** [May 27, 2024, 10:00pm UTC](https://discourse.julialang.org/t/unclear-error-message-when-trying-to-install-package-with-incompatible-julia-version/114632 "2024-05-27T22:00:42Z")

</div>

Our package’s Project.toml states the following: \[compat\] julia = "1.10" As a consequence, issuing the following from a previous version of julia fails: $ ../julia-1.6.7/bin/julia --project=. \_ \_ …

---

## [Inverse of cdf](https://discourse.julialang.org/t/inverse-of-cdf/53397)

<div class="topic-metadata">

**Author:** [@nh3436](https://discourse.julialang.org/u/nh3436)\
**Replies:** 5\
**Last updated:** [August 5, 2021, 9:12am UTC](https://discourse.julialang.org/t/inverse-of-cdf/53397 "2021-08-05T09:12:59Z")

</div>

Hi all, I am a beginner to Julia and I am trying to code inverse function of normal cdf. In Distribution.ji, I see there is invlogcdf, inverse function of log cdf of a distribution but not inverse function of cdf. Any s…

---

## [Return Bool When Checking Type Stability](https://discourse.julialang.org/t/return-bool-when-checking-type-stability/114796)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 3\
**Last updated:** [May 27, 2024, 9:26pm UTC](https://discourse.julialang.org/t/return-bool-when-checking-type-stability/114796 "2024-05-27T21:26:25Z")

</div>

In Julia, we all use @code\_warntype to conclude whether a function is type stable or not. However, @code\_warntype returns a long text which tells us in detail the infered types of related variables. I wonder is there a w…

---

## [Integration packages to calculate the first N Fourier coefficients](https://discourse.julialang.org/t/integration-packages-to-calculate-the-first-n-fourier-coefficients/114787)

<div class="topic-metadata">

**Author:** [@ccmejia](https://discourse.julialang.org/u/ccmejia)\
**Replies:** 3\
**Last updated:** [May 27, 2024, 6:54pm UTC](https://discourse.julialang.org/t/integration-packages-to-calculate-the-first-n-fourier-coefficients/114787 "2024-05-27T18:54:58Z")

</div>

I am trying to calculate the first N Fourier coefficients for sampled data (harmonic + gaussian like). The Riemann sum was my first approach, however I think the results are not enough accurate. Therefore, I am trying t…

---

## [U.S-located Julia code developer](https://discourse.julialang.org/t/u-s-located-julia-code-developer/114794)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 0\
**Last updated:** [May 27, 2024, 5:14pm UTC](https://discourse.julialang.org/t/u-s-located-julia-code-developer/114794 "2024-05-27T17:14:03Z")

</div>

Our company (EnviTrace; https://envitrace.com ) is hiring code developers to develop AI/ML software and interactive web/mobile applications. The software will be deployed on the cloud. Interactive visualization, data an…

---

## [Integratror interface skips timesteps in DifferentialEquations.jl?](https://discourse.julialang.org/t/integratror-interface-skips-timesteps-in-differentialequations-jl/114789)

<div class="topic-metadata">

**Author:** [@flmuk](https://discourse.julialang.org/u/flmuk)\
**Replies:** 1\
**Last updated:** [May 27, 2024, 4:14pm UTC](https://discourse.julialang.org/t/integratror-interface-skips-timesteps-in-differentialequations-jl/114789 "2024-05-27T16:14:33Z")

</div>

Hello, I have a question about the integrator interface of the DifferentialEquations package. I want to step through the solution process of a set of coupled ODEs (to wich I want to add a nonlinearity that I can’t use a…

---

## [Is solving a PDE using ParallelStencil an explicit method?](https://discourse.julialang.org/t/is-solving-a-pde-using-parallelstencil-an-explicit-method/114785)

<div class="topic-metadata">

**Author:** [@jdm204](https://discourse.julialang.org/u/jdm204)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 2:39pm UTC](https://discourse.julialang.org/t/is-solving-a-pde-using-parallelstencil-an-explicit-method/114785 "2024-05-27T14:39:11Z")

</div>

Hi all, I’m trying to implement diffusion in my 3D Agents.jl agent-based model. The “agents” produce or consume substance at each time step, thus changing the local concentration at their grid position x,y,z. I then run …

---

## [Julia and braille](https://discourse.julialang.org/t/julia-and-braille/77002)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 43\
**Last updated:** [May 27, 2024, 2:26pm UTC](https://discourse.julialang.org/t/julia-and-braille/77002 "2024-05-27T14:26:11Z")

</div>

According to the CDC, there are one million blind people in the US. Are there any ways to make Julia more accessible to the blind community? … sort of like how LaTeX style variables made Julia more accessible to the scie…

---

## [CairoMakie: Restrict PDF version](https://discourse.julialang.org/t/cairomakie-restrict-pdf-version/113939)

<div class="topic-metadata">

**Author:** [@barucden](https://discourse.julialang.org/u/barucden)\
**Replies:** 5\
**Last updated:** [May 27, 2024, 2:07pm UTC](https://discourse.julialang.org/t/cairomakie-restrict-pdf-version/113939 "2024-05-27T14:07:50Z")

</div>

I need to restrict the version of output PDFs to 1.5. I didn’t figure out how to do it. I could only find a Discourse topic, where it was pointed out that cairo provides a function to restrict the version. I am not fami…

---

## [Reading jpg images for Kaggle challenge](https://discourse.julialang.org/t/reading-jpg-images-for-kaggle-challenge/114772)

<div class="topic-metadata">

**Author:** [@Smara\_Kazenango](https://discourse.julialang.org/u/Smara_Kazenango)\
**Replies:** 3\
**Last updated:** [May 27, 2024, 1:05pm UTC](https://discourse.julialang.org/t/reading-jpg-images-for-kaggle-challenge/114772 "2024-05-27T13:05:44Z")

</div>

How can I read jpg images in Julia. Has anyone performed any work on the following dataset: (Chest X-Ray (Pneumonia,Covid-19,Tuberculosis) | Kaggle)

---

## [TOML.print NamedTuple](https://discourse.julialang.org/t/toml-print-namedtuple/114780)

<div class="topic-metadata">

**Author:** [@Alessandra\_Bonfanti](https://discourse.julialang.org/u/Alessandra_Bonfanti)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 1:50pm UTC](https://discourse.julialang.org/t/toml-print-namedtuple/114780 "2024-05-27T13:50:12Z")

</div>

Hi all, I am trying to write a function that should create a .toml file. Here is a simplified version: using TOML data = Dict(“settings” =\> (a = 2, b = 3)) fname = “example.toml” open(fname, “w”) do io TOML.print(i…

---

## [Issues while installing ApproxBayes.jl or KissABC.jl](https://discourse.julialang.org/t/issues-while-installing-approxbayes-jl-or-kissabc-jl/114781)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [May 27, 2024, 12:50pm UTC](https://discourse.julialang.org/t/issues-while-installing-approxbayes-jl-or-kissabc-jl/114781 "2024-05-27T12:50:31Z")

</div>

Hello everyone, I’m facing some issue while installing ApproxBayes or KissABC package. Issue is related to conflict among versions of dependencies I think. Below you can see error that I got. It will be very helpful if …

---

## [Issues Importing Excel Files with XLSX.jl Package](https://discourse.julialang.org/t/issues-importing-excel-files-with-xlsx-jl-package/114717)

<div class="topic-metadata">

**Author:** [@phil25](https://discourse.julialang.org/u/phil25)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 12:09pm UTC](https://discourse.julialang.org/t/issues-importing-excel-files-with-xlsx-jl-package/114717 "2024-05-27T12:09:29Z")

</div>

Dear all, I’m currently using the XLSX.jl package in Julia to import several Excel files. Unfortunately, I don’t have access to the original sources of these files and have to work with the existing versions. I’ve enco…

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

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