# Latest

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

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

**Page:** 274

---

## [Package for rendering/customizing html tables in Quarto](https://discourse.julialang.org/t/package-for-rendering-customizing-html-tables-in-quarto/122802)

<div class="topic-metadata">

**Author:** [@aww-r](https://discourse.julialang.org/u/aww-r)\
**Replies:** 4\
**Last updated:** [November 19, 2024, 8:48am UTC](https://discourse.julialang.org/t/package-for-rendering-customizing-html-tables-in-quarto/122802 "2024-11-19T08:48:45Z")

</div>

I’m working on some Quarto documents (text/charts/tables) and I’m struggling to find a package similar to GT (in R) where I can fully customize the layout. Apart from PrettyTables (which doesn’t look good on a modern htm…

---

## [How to handle dependencies with Pluto notebook as package source code?](https://discourse.julialang.org/t/how-to-handle-dependencies-with-pluto-notebook-as-package-source-code/122780)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 6\
**Last updated:** [November 19, 2024, 8:34am UTC](https://discourse.julialang.org/t/how-to-handle-dependencies-with-pluto-notebook-as-package-source-code/122780 "2024-11-19T08:34:40Z")

</div>

Continuing the discussion from Transforming a Pluto notebook into a Julia package: I’m having trouble figuring out what I need to do to use Pluto notebooks as source code, especially regarding the package environment an…

---

## [How to create a \`Union\` value/literal?](https://discourse.julialang.org/t/how-to-create-a-union-value-literal/87880)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 10\
**Last updated:** [November 19, 2024, 8:06am UTC](https://discourse.julialang.org/t/how-to-create-a-union-value-literal/87880 "2024-11-19T08:06:01Z")

</div>

I’d like to initialize an array of type Array{Union{Missing,Float64},2} with a Float64 value. What’s the most succinct way? If you were initializing an Array{Float32,2} with 3.14, you would be doing a = fill(Float32(3.…

---

## [Detecting the type of user input](https://discourse.julialang.org/t/detecting-the-type-of-user-input/122803)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 7:16am UTC](https://discourse.julialang.org/t/detecting-the-type-of-user-input/122803 "2024-11-19T07:16:07Z")

</div>

Hello, How to identify the input type? For example, I want to get an input from the user with the readline() command. How can I tell if this input is a number or a string? Thank you.

---

## [How to customize figure size (and other things) with using GraphMakie?](https://discourse.julialang.org/t/how-to-customize-figure-size-and-other-things-with-using-graphmakie/122572)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 5\
**Last updated:** [November 19, 2024, 6:59am UTC](https://discourse.julialang.org/t/how-to-customize-figure-size-and-other-things-with-using-graphmakie/122572 "2024-11-19T06:59:22Z")

</div>

I have the following code to draw a directed graph with edge weights. ## Load the packages using Random using CairoMakie using GraphMakie using Graphs using LaTeXStrings using Colors ## Create a random directed graph v…

---

## [Resize! error in 1.11](https://discourse.julialang.org/t/resize-error-in-1-11/122777)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 4\
**Last updated:** [November 19, 2024, 3:08am UTC](https://discourse.julialang.org/t/resize-error-in-1-11/122777 "2024-11-19T03:08:42Z")

</div>

I tried out the old example code from 2018 at this link for some real time plotting. It errored in 1.11.1 with a resize! error. When I tried it in 1.10.6 it worked fine. I am assuming there should be a new method writ…

---

## [Most efficient way of retrieving dual solutions iteratively](https://discourse.julialang.org/t/most-efficient-way-of-retrieving-dual-solutions-iteratively/122790)

<div class="topic-metadata">

**Author:** [@BMI\_OR](https://discourse.julialang.org/u/BMI_OR)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 9:38pm UTC](https://discourse.julialang.org/t/most-efficient-way-of-retrieving-dual-solutions-iteratively/122790 "2024-11-18T21:38:03Z")

</div>

I have implemented an algorithm where at each iteration I need to solve an optimization model and retrieve its dual solution. Currently, I am using dual.() to get the solution, and I am seeing that this function is also …

---

## [Most efficient way of adding elements within matrices in loops](https://discourse.julialang.org/t/most-efficient-way-of-adding-elements-within-matrices-in-loops/122789)

<div class="topic-metadata">

**Author:** [@BMI\_OR](https://discourse.julialang.org/u/BMI_OR)\
**Replies:** 4\
**Last updated:** [November 18, 2024, 11:31pm UTC](https://discourse.julialang.org/t/most-efficient-way-of-adding-elements-within-matrices-in-loops/122789 "2024-11-18T23:31:41Z")

</div>

I have a vector A and I need to update its values with the ones of matrix B. Each element of B needs to be added to some values in A. The mapping of indeces from matrix to vector is given by a matrix of vectors C. I have…

---

## [Understanding DataFrame allocations](https://discourse.julialang.org/t/understanding-dataframe-allocations/122792)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 10:16pm UTC](https://discourse.julialang.org/t/understanding-dataframe-allocations/122792 "2024-11-18T22:16:22Z")

</div>

Hi there, The split-apply-combine strategy is something that I use a lot so Im trying to understand a bit more what goes under the hood so that I can write better code. I was just looking at the following example: df =…

---

## [Best way to use/implement Debye function in Julia?](https://discourse.julialang.org/t/best-way-to-use-implement-debye-function-in-julia/111090)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 29\
**Last updated:** [November 18, 2024, 8:56pm UTC](https://discourse.julialang.org/t/best-way-to-use-implement-debye-function-in-julia/111090 "2024-11-18T20:56:46Z")

</div>

I need the 3rd-order Debye function in a Julia routine and wonder which is the best way to use/implement it. Searching for it in different repositories, I found various implementations, some of which based on simply sol…

---

## [How to accelerate GPU operation？](https://discourse.julialang.org/t/how-to-accelerate-gpu-operation/122506)

<div class="topic-metadata">

**Author:** [@zhenweilin](https://discourse.julialang.org/u/zhenweilin)\
**Replies:** 12\
**Last updated:** [November 18, 2024, 8:29pm UTC](https://discourse.julialang.org/t/how-to-accelerate-gpu-operation/122506 "2024-11-18T20:29:15Z")

</div>

Hello, everyone in the Julia community. I’m currently writing a project about GPU. I hope to perform certain operations on some parts of a vector. These operations can be parallelized, but when I did it on the CPU, I fou…

---

## [Julia access to Apple GPU with MLX, and or Metal Performance Shaders (MPS)?](https://discourse.julialang.org/t/julia-access-to-apple-gpu-with-mlx-and-or-metal-performance-shaders-mps/117647)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 5\
**Last updated:** [November 18, 2024, 8:13pm UTC](https://discourse.julialang.org/t/julia-access-to-apple-gpu-with-mlx-and-or-metal-performance-shaders-mps/117647 "2024-11-18T20:13:22Z")

</div>

Is there any on-going effort to provide a Julia interface to the following? Metal Performance Shaders (MPS) is a PyTorch framework backend for GPU training acceleration, providing scripts and capabilities to set up an…

---

## [\[ANN\] Vahana.jl - Framework for large-scale agent-based models](https://discourse.julialang.org/t/ann-vahana-jl-framework-for-large-scale-agent-based-models/102024)

<div class="topic-metadata">

**Author:** [@sfuerst](https://discourse.julialang.org/u/sfuerst)\
**Replies:** 19\
**Last updated:** [November 18, 2024, 7:46pm UTC](https://discourse.julialang.org/t/ann-vahana-jl-framework-for-large-scale-agent-based-models/102024 "2024-11-18T19:46:36Z")

</div>

I’m happy to announce the release of Vahana.jl, a framework for (not only) large-scale agent-based models with a focus on complex social networks. There will also be a prerecorded talk at JuliaCon tomorrow. The reposit…

---

## [Updating julia on macos](https://discourse.julialang.org/t/updating-julia-on-macos/103484)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 7\
**Last updated:** [November 18, 2024, 7:42pm UTC](https://discourse.julialang.org/t/updating-julia-on-macos/103484 "2024-11-18T19:42:27Z")

</div>

when I update julia, I use the tar.gz file. after opening the archive, I get security warnings/errors from macos about running unrecognized software I have to “allow anyway” in the security settings “julia”, and when up…

---

## [How to differentiate using Enzyme.jl?](https://discourse.julialang.org/t/how-to-differentiate-using-enzyme-jl/122765)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 7\
**Last updated:** [November 18, 2024, 7:02pm UTC](https://discourse.julialang.org/t/how-to-differentiate-using-enzyme-jl/122765 "2024-11-18T19:02:34Z")

</div>

Hello, I don’t really understand how Enzyme.jl actually works. I more or less understand that the Const arguments are not considered in the differentiation, and that Active and Duplicated are used otherwise. Duplicated …

---

## [\`@assert\` handling for symbolically registered functions in MTK](https://discourse.julialang.org/t/assert-handling-for-symbolically-registered-functions-in-mtk/122783)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 6:45pm UTC](https://discourse.julialang.org/t/assert-handling-for-symbolically-registered-functions-in-mtk/122783 "2024-11-18T18:45:57Z")

</div>

Hello, I would like to know if it is possible to have assert statements on parameters of an MTK component. For general @assert a \>1 cases it hit the error where symbolic expression appears in Boolean context. Toy Exam…

---

## [Struggling with GitHub bots and Documentation](https://discourse.julialang.org/t/struggling-with-github-bots-and-documentation/122548)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 3\
**Last updated:** [November 18, 2024, 6:20pm UTC](https://discourse.julialang.org/t/struggling-with-github-bots-and-documentation/122548 "2024-11-18T18:20:49Z")

</div>

I’m having the following problem with a package I have that’s part of the general registry, StringMethod.jl Here is the fundamental issue. If I make edits to the code/documentation, when I push the changes, the bots ru…

---

## [Unable to install Mamba](https://discourse.julialang.org/t/unable-to-install-mamba/118612)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [November 18, 2024, 5:29pm UTC](https://discourse.julialang.org/t/unable-to-install-mamba/118612 "2024-11-18T17:29:39Z")

</div>

I get following unsatisfiable requirement error when installing mamba ERROR: Unsatisfiable requirements detected for package Mamba \[5424a776\]: Mamba \[5424a776\] log: ├─possible versions are: 0.12.0-0.12.5 or uninstalle…

---

## [Zoom in/out only works for first drawing on a figure](https://discourse.julialang.org/t/zoom-in-out-only-works-for-first-drawing-on-a-figure/122752)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 2:57pm UTC](https://discourse.julialang.org/t/zoom-in-out-only-works-for-first-drawing-on-a-figure/122752 "2024-11-18T14:57:49Z")

</div>

Hi All. I’m wondering if somebody can explain the following behavior. I draw something, empty! the axis scene, and then draw something similar. All the drawing works as expected but I’ve noticed that while I can zoom in…

---

## [Why is my one loop faster than the other?](https://discourse.julialang.org/t/why-is-my-one-loop-faster-than-the-other/122771)

<div class="topic-metadata">

**Author:** [@J-J](https://discourse.julialang.org/u/J-J)\
**Replies:** 6\
**Last updated:** [November 18, 2024, 2:35pm UTC](https://discourse.julialang.org/t/why-is-my-one-loop-faster-than-the-other/122771 "2024-11-18T14:35:57Z")

</div>

As a MWE, I wrote the following two functions in Julia, both of which depend on a global constant integer N and a global constant vector global\_vector: using BenchmarkTools const N = 1024 const global\_vector = rand(N) …

---

## [Check if is folder empty](https://discourse.julialang.org/t/check-if-is-folder-empty/122761)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 3\
**Last updated:** [November 18, 2024, 2:35pm UTC](https://discourse.julialang.org/t/check-if-is-folder-empty/122761 "2024-11-18T14:35:02Z")

</div>

What’s the best way to check if a folder is empty if folders possibly contains 10\_000 files? isempty(readdir(mydir)) The point is that I want to list all empty subfolders of a directory, but mapping readdir on all non-…

---

## [Artifact not found for test in Github CI](https://discourse.julialang.org/t/artifact-not-found-for-test-in-github-ci/122697)

<div class="topic-metadata">

**Author:** [@aTrotier](https://discourse.julialang.org/u/aTrotier)\
**Replies:** 3\
**Last updated:** [November 18, 2024, 2:31pm UTC](https://discourse.julialang.org/t/artifact-not-found-for-test-in-github-ci/122697 "2024-11-18T14:31:50Z")

</div>

Hi, I am trying to use an artifact download from zenodo during the test (and also in the doc). I was able to figure out a way to use it for the doc but it keeps failing in the github CI : Testing Running tests...…

---

## [Installing OrdinaryDiffEqBDF fails](https://discourse.julialang.org/t/installing-ordinarydiffeqbdf-fails/122767)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [November 18, 2024, 2:10pm UTC](https://discourse.julialang.org/t/installing-ordinarydiffeqbdf-fails/122767 "2024-11-18T14:10:42Z")

</div>

If I try to install OrdinaryDiffEqBDF in a new, empty project I get the following error: ufechner@framework:~/repos/Ord$ julia --project="." \_ \_ \_ \_(\_)\_ | Documentation: https://docs.juliala…

---

## [Allocations even when using StaticArrays.jl](https://discourse.julialang.org/t/allocations-even-when-using-staticarrays-jl/122775)

<div class="topic-metadata">

**Author:** [@johnmyslinski](https://discourse.julialang.org/u/johnmyslinski)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 2:09pm UTC](https://discourse.julialang.org/t/allocations-even-when-using-staticarrays-jl/122775 "2024-11-18T14:09:43Z")

</div>

Hi All, In this below MRE I am still seeing some allocations when using @btime. Based on my understanding, I would expect to see 0 allocations. Am I misunderstanding something? Are the 8 allocations I see a byproduct …

---

## [Presence of println is affecting function behavior](https://discourse.julialang.org/t/presence-of-println-is-affecting-function-behavior/122694)

<div class="topic-metadata">

**Author:** [@dcgentile](https://discourse.julialang.org/u/dcgentile)\
**Replies:** 10\
**Last updated:** [November 18, 2024, 2:04pm UTC](https://discourse.julialang.org/t/presence-of-println-is-affecting-function-behavior/122694 "2024-11-18T14:04:08Z")

</div>

Hi all — Firstly, hope I’m posting this in the right place, I’m not much of a Discourse user, so if I’m not adhering to the community guidlines, please let me know and I’ll take this elsewhere. Now for the meat of the ma…

---

## [Linearization & ModelingToolkit -- what is wrong?](https://discourse.julialang.org/t/linearization-modelingtoolkit-what-is-wrong/122766)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 1:15pm UTC](https://discourse.julialang.org/t/linearization-modelingtoolkit-what-is-wrong/122766 "2024-11-18T13:15:18Z")

</div>

I’m simulating two nonlinear RC circuits in series (nonlinear resistances, ipp(u) instead of ipp=u/R). ModelingToolkit code + simulation# Importing packages using ModelingToolkit using ModelingToolkit: t\_nounits as t, D…

---

## [Can Symbolics handle complex numbers?](https://discourse.julialang.org/t/can-symbolics-handle-complex-numbers/122753)

<div class="topic-metadata">

**Author:** [@ccmejia](https://discourse.julialang.org/u/ccmejia)\
**Replies:** 4\
**Last updated:** [November 18, 2024, 12:41pm UTC](https://discourse.julialang.org/t/can-symbolics-handle-complex-numbers/122753 "2024-11-18T12:41:40Z")

</div>

Hi there! My code: using Symbolics @variables C\_0, C\_1, R, T, V, k, R0, g M = \[-2\*V\*cos(k) - im\*g V V\*exp(im\*k) 0; V -2\*V\*cos(k) + im\*g 0 V\*exp(2\*im\*k); 0 V 0 -2\*V\*cos(k)\*exp(2\*im\*k) + V\*exp(3\*im\*k); V…

---

## [PhD in climate modelling at Oxford](https://discourse.julialang.org/t/phd-in-climate-modelling-at-oxford/122768)

<div class="topic-metadata">

**Author:** [@milankl](https://discourse.julialang.org/u/milankl)\
**Replies:** 0\
**Last updated:** [November 18, 2024, 12:28pm UTC](https://discourse.julialang.org/t/phd-in-climate-modelling-at-oxford/122768 "2024-11-18T12:28:46Z")

</div>

Advertising for a PhD position at Oxford working with me and Tad Komacek and in Julia! Project is on atmospheric/climate modelling using automatic differentiation with Enzyme in SpeedyWeather.jl applied to Earth and exop…

---

## [ConcurrencyViolationError when loading packages via Requires.jl in julia 1.11](https://discourse.julialang.org/t/concurrencyviolationerror-when-loading-packages-via-requires-jl-in-julia-1-11/122685)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 11:51am UTC](https://discourse.julialang.org/t/concurrencyviolationerror-when-loading-packages-via-requires-jl-in-julia-1-11/122685 "2024-11-18T11:51:43Z")

</div>

I have a package (not public, not registered) that loads ForwardDiff.jl and NonhomotheticCES.jl, which defines an extension for the former via Requires.jl. In Julia 1.11, I started getting the following error: 1 depen…

---

## [Retrieve current timezone](https://discourse.julialang.org/t/retrieve-current-timezone/122763)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 6\
**Last updated:** [November 18, 2024, 11:41am UTC](https://discourse.julialang.org/t/retrieve-current-timezone/122763 "2024-11-18T11:41:36Z")

</div>

I am missing two things in Dates/TimeZones convert a unix timestamp into the computer’s local time determine the system’s timezone Maybe I missed something? For 1) I have found a solution, which could go into Dates a…

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

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