# Latest

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

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

**Page:** 303

---

## [PythonCall.jl with CondaPkg.jl in MPI scenario](https://discourse.julialang.org/t/pythoncall-jl-with-condapkg-jl-in-mpi-scenario/121191)

<div class="topic-metadata">

**Author:** [@J-C-Q](https://discourse.julialang.org/u/J-C-Q)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 12:37pm UTC](https://discourse.julialang.org/t/pythoncall-jl-with-condapkg-jl-in-mpi-scenario/121191 "2024-10-11T12:37:31Z")

</div>

Hi everyone, I’m working on a julia package that has PythonCall.jl and CondaPkg.jl in its dependencies. Now, I want to do some calculations using my package on a cluster with MPI.jl. The problem is (this is my understa…

---

## [How to display Float64 with more digits](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 16\
**Last updated:** [October 11, 2024, 11:36am UTC](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628 "2024-10-11T11:36:20Z")

</div>

I can’t find any reasonable solution to this seemingly simple issue. I want to make arrays of Float64 print with all their digits in the REPL. What method do I need to redefine for the array below to be printed with as m…

---

## [Slow indexing of constant-valued variables in MTK](https://discourse.julialang.org/t/slow-indexing-of-constant-valued-variables-in-mtk/120922)

<div class="topic-metadata">

**Author:** [@bspanoghe](https://discourse.julialang.org/u/bspanoghe)\
**Replies:** 8\
**Last updated:** [October 11, 2024, 8:42am UTC](https://discourse.julialang.org/t/slow-indexing-of-constant-valued-variables-in-mtk/120922 "2024-10-11T08:42:17Z")

</div>

Hi I’m currently working with large hierarchical models in ModelingToolkit.jl and found that indexing the solution with constant-valued variables becomes incredibly slow for larger systems. This results in plotting of t…

---

## [Suggestion: VS code and automatic end statement when enter is hit](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186)

<div class="topic-metadata">

**Author:** [@TheGrowingPlant443](https://discourse.julialang.org/u/TheGrowingPlant443)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 8:22am UTC](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186 "2024-10-11T08:22:45Z")

</div>

I know there is auto completion in the julia vs code extensions. My surggestion is this when on a code line that starts with for or if and so on then when enter button is pressed at the end of that line then a end statem…

---

## [Identifying potential candidates for GoLang + Julia role](https://discourse.julialang.org/t/identifying-potential-candidates-for-golang-julia-role/119825)

<div class="topic-metadata">

**Author:** [@bernie](https://discourse.julialang.org/u/bernie)\
**Replies:** 6\
**Last updated:** [October 11, 2024, 8:10am UTC](https://discourse.julialang.org/t/identifying-potential-candidates-for-golang-julia-role/119825 "2024-10-11T08:10:32Z")

</div>

A role may be opening up at my company that involves translating prototype code developed in Julia into operational code implemented in Go. I’d like to identify, in advance, candidates who are both proficient in Go, and …

---

## [An experimental Julia library: copyout csv from postgresql using rust and Clang.jl](https://discourse.julialang.org/t/an-experimental-julia-library-copyout-csv-from-postgresql-using-rust-and-clang-jl/121100)

<div class="topic-metadata">

**Author:** [@bluebug](https://discourse.julialang.org/u/bluebug)\
**Replies:** 3\
**Last updated:** [October 11, 2024, 7:17am UTC](https://discourse.julialang.org/t/an-experimental-julia-library-copyout-csv-from-postgresql-using-rust-and-clang-jl/121100 "2024-10-11T07:17:11Z")

</div>

copyout csv from postgresql, using rust postgres/cbindgen and Clang.jl to interop rust and julia together, without jirs. Any suggestions for sharing complex data structures from Rust to Julia? like: #\[repr(C)\] pub enum…

---

## [Staff/Senior Software Engineer, (Space) Mission Planning](https://discourse.julialang.org/t/staff-senior-software-engineer-space-mission-planning/121178)

<div class="topic-metadata">

**Author:** [@bernie](https://discourse.julialang.org/u/bernie)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 5:08am UTC](https://discourse.julialang.org/t/staff-senior-software-engineer-space-mission-planning/121178 "2024-10-11T05:08:12Z")

</div>

There are two job postings for Staff and Senior Software Engineer, (Space) Mission Planning. The company is BlackSky, which IPOed in 2021. The job listings call for (among other things): “working knowledge” of Go or Py…

---

## [How to use the second method of GLM.lm?](https://discourse.julialang.org/t/how-to-use-the-second-method-of-glm-lm/121139)

<div class="topic-metadata">

**Author:** [@MJulia](https://discourse.julialang.org/u/MJulia)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 12:59am UTC](https://discourse.julialang.org/t/how-to-use-the-second-method-of-glm-lm/121139 "2024-10-11T00:59:38Z")

</div>

In the documents of GLM.lm, it says: “In the second method, X must be a matrix holding values of the independent variable(s) in columns (including if appropriate the intercept), and y must be a vector holding values of …

---

## [Vectorise summation over index in nested for loop](https://discourse.julialang.org/t/vectorise-summation-over-index-in-nested-for-loop/121158)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 7\
**Last updated:** [October 10, 2024, 11:33pm UTC](https://discourse.julialang.org/t/vectorise-summation-over-index-in-nested-for-loop/121158 "2024-10-10T23:33:32Z")

</div>

Given a function using LinearAlgebra function test(arr1, arr2, arr3, g) return 1 ./ (arr1 .+ arr2 .+ arr3 .+ im\*g) end N1 = 100000; arr1 = range(0,10,N1); N2 = 5000; arr2 = range(0,10,N2); N3 = 5000; arr3 = range…

---

## [Magnus solver slow compared with Tsitouras for linear state independent ODE](https://discourse.julialang.org/t/magnus-solver-slow-compared-with-tsitouras-for-linear-state-independent-ode/121118)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 10:49pm UTC](https://discourse.julialang.org/t/magnus-solver-slow-compared-with-tsitouras-for-linear-state-independent-ode/121118 "2024-10-10T22:49:44Z")

</div>

Hi! I was playing a bit with the Magnus solvers included in the examples for linear ODEs in the docs: Non-autonomous Linear ODE / Lie Group ODE Solvers. I was particularly interesting in benchmarking the solver I am cur…

---

## [\[RFC\] Cloud+Container Infrastructure Management](https://discourse.julialang.org/t/rfc-cloud-container-infrastructure-management/112685)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 11\
**Last updated:** [October 10, 2024, 8:39pm UTC](https://discourse.julialang.org/t/rfc-cloud-container-infrastructure-management/112685 "2024-10-10T20:39:51Z")

</div>

I asked a question previously about managing incremental builds of Julia Docker containers but didn’t hear much back. Since then, I’ve been sketching out some ideas that I’d appreciate feedback on. The Problem Deploying…

---

## [Recommended recipe for deploying a Julia app in Docker with efficient precompilation?](https://discourse.julialang.org/t/recommended-recipe-for-deploying-a-julia-app-in-docker-with-efficient-precompilation/95591)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 3\
**Last updated:** [October 10, 2024, 8:38pm UTC](https://discourse.julialang.org/t/recommended-recipe-for-deploying-a-julia-app-in-docker-with-efficient-precompilation/95591 "2024-10-10T20:38:22Z")

</div>

Now that Julia 1.9/10 precompilation is doing more the first time a package is used, I’m seeing rather slow (7-8 minutes) restarts on a production docker image of my Julia app. When I run it locally with packages that h…

---

## [Lux.jl with GPU error](https://discourse.julialang.org/t/lux-jl-with-gpu-error/121060)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 3\
**Last updated:** [October 10, 2024, 7:25pm UTC](https://discourse.julialang.org/t/lux-jl-with-gpu-error/121060 "2024-10-10T19:25:53Z")

</div>

Hello, I have a toy problem to fit a NN for sin(x) using the GPU for Lux.jl - LuxCUDA.jl Here is the code I am running (very similar to the documentation): using Lux, Optimisers,Zygote, Random using LuxCUDA x = rand…

---

## [Makie - scene transformation not persisting](https://discourse.julialang.org/t/makie-scene-transformation-not-persisting/121157)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 7:12pm UTC](https://discourse.julialang.org/t/makie-scene-transformation-not-persisting/121157 "2024-10-10T19:12:22Z")

</div>

I’ve been trying to use transformation so I can change one property of an Axis3 without rotating all the content individually. I have this function: function rotate\_axis(ax::Axis3) ax.scene.transformation.rotation\[…

---

## [String macro with trailing argument](https://discourse.julialang.org/t/string-macro-with-trailing-argument/121162)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 5:39pm UTC](https://discourse.julialang.org/t/string-macro-with-trailing-argument/121162 "2024-10-10T17:39:25Z")

</div>

I am trying to get the string literal macro example with a trailing argument from the manual to work (end of section linked), with the MWE struct Foo str::String flag::Bool end macro foo\_str(str, flag) \_fla…

---

## [Pre-processing time and Mosek Solve inordinately long](https://discourse.julialang.org/t/pre-processing-time-and-mosek-solve-inordinately-long/119783)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 13\
**Last updated:** [October 10, 2024, 4:44pm UTC](https://discourse.julialang.org/t/pre-processing-time-and-mosek-solve-inordinately-long/119783 "2024-10-10T16:44:28Z")

</div>

I have converted a YALMIP sum-of-squares optimization code to a Julia sum-of-squares optimization code. The base level of the code, from which I want to expand, seems to produce similar-sized problems in Julia and YALMI…

---

## [Type-instability of mapreduce vs. map + reduce](https://discourse.julialang.org/t/type-instability-of-mapreduce-vs-map-reduce/121136)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 18\
**Last updated:** [October 10, 2024, 4:43pm UTC](https://discourse.julialang.org/t/type-instability-of-mapreduce-vs-map-reduce/121136 "2024-10-10T16:43:03Z")

</div>

I’m a bit surprised that in this simple example, f is type-stable but g is not. Is this a JET.jl issue (@aviatesk) or a Julia issue? using JET function f(m, n) blocks = map(1:n) do i ones(m) end ret…

---

## [How to make poly prettier in Makie and Geomakie?](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 4:31pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146 "2024-10-10T16:31:55Z")

</div>

Hello, I made this map of Germany using geometric data for polygons that draw its districts. Then on top I plotted a pipeline network with arrows and scatter points. In that order. However, the result is quite ugly be…

---

## [Simplex tableau from Gurobi](https://discourse.julialang.org/t/simplex-tableau-from-gurobi/121080)

<div class="topic-metadata">

**Author:** [@wahadhasan](https://discourse.julialang.org/u/wahadhasan)\
**Replies:** 1\
**Last updated:** [October 9, 2024, 4:33am UTC](https://discourse.julialang.org/t/simplex-tableau-from-gurobi/121080 "2024-10-09T04:33:23Z")

</div>

Hi there, is there anyway to get the optimal simplex tableau from Gurobi? I checked this link (CPLEX) but unfortunately could not reach to the tableau it supposed to be. Any suggestions will be of great help. Gather Opt…

---

## [Is it idiomatic to use \`Bool\` as \`Number\`?](https://discourse.julialang.org/t/is-it-idiomatic-to-use-bool-as-number/121154)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 4\
**Last updated:** [October 10, 2024, 3:47pm UTC](https://discourse.julialang.org/t/is-it-idiomatic-to-use-bool-as-number/121154 "2024-10-10T15:47:21Z")

</div>

Both f and g below do the same thing f(x) = x ? 0 : 1 g(x) = x \* 0 + (!x) \* 1 They lower to the same llvm code too: julia\> @code\_llvm debuginfo=:none f(true) define i64 @julia\_f\_7188(i8 zeroext %0) #0 { top: %1 = an…

---

## [Missing source file for ZMQ](https://discourse.julialang.org/t/missing-source-file-for-zmq/121090)

<div class="topic-metadata">

**Author:** [@Kristijan\_Slonka](https://discourse.julialang.org/u/Kristijan_Slonka)\
**Replies:** 2\
**Last updated:** [October 10, 2024, 3:23pm UTC](https://discourse.julialang.org/t/missing-source-file-for-zmq/121090 "2024-10-10T15:23:13Z")

</div>

---

## [Julia Tab Completion is Slow in directories with many items](https://discourse.julialang.org/t/julia-tab-completion-is-slow-in-directories-with-many-items/121156)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 3:09pm UTC](https://discourse.julialang.org/t/julia-tab-completion-is-slow-in-directories-with-many-items/121156 "2024-10-10T15:09:58Z")

</div>

In the REPL, when I try to use strings, REPL keeps hanging in directories with many items. I have a directory with around 400+ items, all of which are dates from 2020-01-01 to 2020-12-31, and Julia keeps hanging (and is…

---

## [Search link broken for docs.julialang.org?](https://discourse.julialang.org/t/search-link-broken-for-docs-julialang-org/121144)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 1:26pm UTC](https://discourse.julialang.org/t/search-link-broken-for-docs-julialang-org/121144 "2024-10-10T13:26:38Z")

</div>

On docs.julialang.org, in Google Chrome or Safari, if I click the “search docs” box then it was recently changed(?) to pop up an interactive search box: However, clicking the same box in FireFox (131.0.2) now does noth…

---

## [Detect functions that are never used](https://discourse.julialang.org/t/detect-functions-that-are-never-used/121147)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 1:36pm UTC](https://discourse.julialang.org/t/detect-functions-that-are-never-used/121147 "2024-10-10T13:36:16Z")

</div>

Hi, I’ve been writing quite some code for a project I’m working on and I’m noticing that there is quite some legacy code piling up. In particular, there are some functions that I’ve implemented at some point but that, du…

---

## [Iterate over a range in a non standard way](https://discourse.julialang.org/t/iterate-over-a-range-in-a-non-standard-way/121137)

<div class="topic-metadata">

**Author:** [@JM\_Beckers](https://discourse.julialang.org/u/JM_Beckers)\
**Replies:** 4\
**Last updated:** [October 10, 2024, 12:45pm UTC](https://discourse.julialang.org/t/iterate-over-a-range-in-a-non-standard-way/121137 "2024-10-10T12:45:01Z")

</div>

I’m doing some exhaustive search loops and would like to cover say a range 10:100 but suspect (with quite some confidence) that the solution I look for is around 90. So I would like to loop over the range by starting at …

---

## [Understanding how ForwardDiff.Duals are propagated](https://discourse.julialang.org/t/understanding-how-forwarddiff-duals-are-propagated/121114)

<div class="topic-metadata">

**Author:** [@AndreaRH](https://discourse.julialang.org/u/AndreaRH)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 12:18pm UTC](https://discourse.julialang.org/t/understanding-how-forwarddiff-duals-are-propagated/121114 "2024-10-10T12:18:55Z")

</div>

Hello, I’m trying to understand how ForwardDiff propagates Duals through an ode solver, so how the function defining an ODE system can be overloaded (specialized is another word that could be used?) to handle Duals. Ta…

---

## [How to use KNITRO on Ubuntu?](https://discourse.julialang.org/t/how-to-use-knitro-on-ubuntu/120968)

<div class="topic-metadata">

**Author:** [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 12:08pm UTC](https://discourse.julialang.org/t/how-to-use-knitro-on-ubuntu/120968 "2024-10-10T12:08:58Z")

</div>

I’m using JuMP and KNITRO on Ubuntu (Remote), the solver KNITRO has been installed successfully, and KNITRO.jl is installed as well, the env command KNITRODIR and LD\_LIBRARY\_PATH are set, building KNITRO is successful, b…

---

## [Specific Dom](https://discourse.julialang.org/t/specific-dom/121140)

<div class="topic-metadata">

**Author:** [@finmod](https://discourse.julialang.org/u/finmod)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 12:08pm UTC](https://discourse.julialang.org/t/specific-dom/121140 "2024-10-10T12:08:55Z")

</div>

Bringing sfctools for economic agents in python to Agents.jl Is Agents.jl able to create and simulate economic agents as in: Economic Agents — sfctools documentation

---

## [Juliaup really is magic](https://discourse.julialang.org/t/juliaup-really-is-magic/121073)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 21\
**Last updated:** [October 10, 2024, 11:57am UTC](https://discourse.julialang.org/t/juliaup-really-is-magic/121073 "2024-10-10T11:57:43Z")

</div>

I used to install Julia manually using DMG file on my M2 Mac and I used rosetta2 to emulate X86 on my macbook. Lately I switch to Apple Silicon Code Juliaup I did it by removing all traces of ~/.julia and the old x8…

---

## [MTK & units: how to specify unit for time?](https://discourse.julialang.org/t/mtk-units-how-to-specify-unit-for-time/121138)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [October 10, 2024, 11:41am UTC](https://discourse.julialang.org/t/mtk-units-how-to-specify-unit-for-time/121138 "2024-10-10T11:41:30Z")

</div>

I’ve started to experiments with units for models. My question is probably related to how I can specify units for time when I do: using ModelingToolkit: t\_nounits as t, D\_nounits as Dt How can I specify unit for t so …

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

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