# Latest

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

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

**Page:** 338

---

## [Setting environment variable in VS Code debugger](https://discourse.julialang.org/t/setting-environment-variable-in-vs-code-debugger/97864)

<div class="topic-metadata">

**Author:** [@Yue-Zhengyuan](https://discourse.julialang.org/u/Yue-Zhengyuan)\
**Replies:** 12\
**Last updated:** [August 21, 2024, 6:14pm UTC](https://discourse.julialang.org/t/setting-environment-variable-in-vs-code-debugger/97864 "2024-08-21T18:14:01Z")

</div>

How to set environment variables in VS Code debugger in launch.json for Julia? For Python, the env var can be set by the “env” property: { "version": "0.2.0", "configurations": \[ { "name": "P…

---

## [Jld2 preview in vscode?](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 9\
**Last updated:** [August 21, 2024, 4:43pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050 "2024-08-21T16:43:18Z")

</div>

I use JLD2.jl to store simulation results which I find pretty convenient. I wonder if there is a plan to add a preview/explorer feature for this type of file in vscode. Json files are nicer for a having a quick look on…

---

## [For some this might be a DSL; for us it would likely be just Julia :-)](https://discourse.julialang.org/t/for-some-this-might-be-a-dsl-for-us-it-would-likely-be-just-julia/118433)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [August 21, 2024, 4:42pm UTC](https://discourse.julialang.org/t/for-some-this-might-be-a-dsl-for-us-it-would-likely-be-just-julia/118433 "2024-08-21T16:42:10Z")

</div>

---

## [Why does logging (@info) create a race condition?](https://discourse.julialang.org/t/why-does-logging-info-create-a-race-condition/118428)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 2:03pm UTC](https://discourse.julialang.org/t/why-does-logging-info-create-a-race-condition/118428 "2024-08-21T14:03:10Z")

</div>

I have a directory with compressed CSVs that I’m reading in parallel. Roughly like so, simplifying away domain specific details not relevant to the question: function munge\_csv(stream) ...read a CSV with CSV.read, m…

---

## [Julia in vscode keeps precompiling compiled packages](https://discourse.julialang.org/t/julia-in-vscode-keeps-precompiling-compiled-packages/117998)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 11\
**Last updated:** [August 21, 2024, 1:45pm UTC](https://discourse.julialang.org/t/julia-in-vscode-keeps-precompiling-compiled-packages/117998 "2024-08-21T13:45:06Z")

</div>

Hi! I have a serious issue that currently keeps me from redoing the figures for my publication. I’m working with vscode on our cluster head node with julia 1.10.4. When I open vscode and import / use modules at the star…

---

## [Fully archive working environment (When Manifest is not enough)](https://discourse.julialang.org/t/fully-archive-working-environment-when-manifest-is-not-enough/118446)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [August 21, 2024, 9:21am UTC](https://discourse.julialang.org/t/fully-archive-working-environment-when-manifest-is-not-enough/118446 "2024-08-21T09:21:50Z")

</div>

Is there a way to take a working environment and fully archive it to be 100% reproducible offline ? E.g., I have a messed-up project that consists of public registry packages unversioned github packages local packages …

---

## [Julia Meetup Gothenburg, Sweden, (Sep 16, 2024)](https://discourse.julialang.org/t/julia-meetup-gothenburg-sweden-sep-16-2024/118445)

<div class="topic-metadata">

**Author:** [@lijas](https://discourse.julialang.org/u/lijas)\
**Replies:** 0\
**Last updated:** [August 21, 2024, 9:18am UTC](https://discourse.julialang.org/t/julia-meetup-gothenburg-sweden-sep-16-2024/118445 "2024-08-21T09:18:32Z")

</div>

We are happy to announce the first Julia user meetup in Gothenburg, Sweden. The meetup will will take place at Chalmers University of Technology, in the afternoon on the 16th of September (2024). During the meetup Dr. Ch…

---

## [Julia gets stuck reading CSV when followed by threaded loop](https://discourse.julialang.org/t/julia-gets-stuck-reading-csv-when-followed-by-threaded-loop/118316)

<div class="topic-metadata">

**Author:** [@cdqb](https://discourse.julialang.org/u/cdqb)\
**Replies:** 11\
**Last updated:** [August 21, 2024, 9:14am UTC](https://discourse.julialang.org/t/julia-gets-stuck-reading-csv-when-followed-by-threaded-loop/118316 "2024-08-21T09:14:33Z")

</div>

I am seeing the following strange behavior where Julia seems to get stuck and becomes unresponsive. Generate some data and save as .csv: using CSV, DataFrames d = DataFrame(rand(10000,10), :auto) CSV.write("test.csv", …

---

## [Ferrite.jl User & Developer Conference 2024](https://discourse.julialang.org/t/ferrite-jl-user-developer-conference-2024/115000)

<div class="topic-metadata">

**Author:** [@lijas](https://discourse.julialang.org/u/lijas)\
**Replies:** 1\
**Last updated:** [August 21, 2024, 9:14am UTC](https://discourse.julialang.org/t/ferrite-jl-user-developer-conference-2024/115000 "2024-08-21T09:14:05Z")

</div>

We are excited to announce the third edition of Ferrite.jl User & Developer Conference ! This year we will meet at Chalmers University of Technology in Gothenburg Sweden on September 16th, 2024. Please have a look at th…

---

## [Tell the compiler the return type of function chosen at runtime](https://discourse.julialang.org/t/tell-the-compiler-the-return-type-of-function-chosen-at-runtime/118429)

<div class="topic-metadata">

**Author:** [@ljg](https://discourse.julialang.org/u/ljg)\
**Replies:** 3\
**Last updated:** [August 21, 2024, 7:10am UTC](https://discourse.julialang.org/t/tell-the-compiler-the-return-type-of-function-chosen-at-runtime/118429 "2024-08-21T07:10:52Z")

</div>

The following MRE function: function fun(idx, a::Int, b::Int) funs = \[+, -\] return funs\[idx\](a, b) end Is not type-stable because Julia does not infer the return type of funs\[idx\]. Here is the output of @code\_…

---

## [Nonlinear (trilinear) terms in Gurobi not supported through JuMP?](https://discourse.julialang.org/t/nonlinear-trilinear-terms-in-gurobi-not-supported-through-jump/118438)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 4:16am UTC](https://discourse.julialang.org/t/nonlinear-trilinear-terms-in-gurobi-not-supported-through-jump/118438 "2024-08-21T04:16:03Z")

</div>

Here, I have two sets of codes with some trilinear terms. The first one calls Gurobi directly, and the second one is through GAMS.jl. The first one fails, while the second one returns the optimal value: using JuMP, Guro…

---

## [The (background)color of Box always covers the 3D LScene.scene.backgroundcolor, and the latter cannot be changed](https://discourse.julialang.org/t/the-background-color-of-box-always-covers-the-3d-lscene-scene-backgroundcolor-and-the-latter-cannot-be-changed/118422)

<div class="topic-metadata">

**Author:** [@xczphysics](https://discourse.julialang.org/u/xczphysics)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 4:09pm UTC](https://discourse.julialang.org/t/the-background-color-of-box-always-covers-the-3d-lscene-scene-backgroundcolor-and-the-latter-cannot-be-changed/118422 "2024-08-20T16:09:28Z")

</div>

Cannot create a layout that a 3D-LScene with a colorful background placed over a Box placeholder filled with another colorful background. This post point out 2 problems: the display sequence of Box’s :color is always …

---

## [\[ANN\] JET/Cthulhu integration](https://discourse.julialang.org/t/ann-jet-cthulhu-integration/118430)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 8:17pm UTC](https://discourse.julialang.org/t/ann-jet-cthulhu-integration/118430 "2024-08-20T20:17:12Z")

</div>

JET, a package which can systematically analyze your code to detect runtime dispatch, now integrates conveniently with Cthulhu, a package for gaining insights about the source of runtime dispatch and other failures of in…

---

## [Which package is suitable for matrix-free partial SVD?](https://discourse.julialang.org/t/which-package-is-suitable-for-matrix-free-partial-svd/118419)

<div class="topic-metadata">

**Author:** [@MAChiyu](https://discourse.julialang.org/u/MAChiyu)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 8:15pm UTC](https://discourse.julialang.org/t/which-package-is-suitable-for-matrix-free-partial-svd/118419 "2024-08-20T20:15:57Z")

</div>

Hi! I am new to Julia. I used to use MATLAB. Within MATLAB, I use lansvd in PROPACK to do partial SVD of some linear operator (needs Afunpar to input other parameters of the matrix free operator). I notice there is PROPA…

---

## [Reduced row echelon form](https://discourse.julialang.org/t/reduced-row-echelon-form/8656)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 6\
**Last updated:** [August 20, 2024, 6:39pm UTC](https://discourse.julialang.org/t/reduced-row-echelon-form/8656 "2024-08-20T18:39:40Z")

</div>

There used to be a rref function to put a matrix in reduced row echelon form, but it is not available anymore. Is it in some package, or has it been renamed?

---

## [CustomMean with AbstractGPs](https://discourse.julialang.org/t/custommean-with-abstractgps/118406)

<div class="topic-metadata">

**Author:** [@stefanocovino](https://discourse.julialang.org/u/stefanocovino)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 9:02am UTC](https://discourse.julialang.org/t/custommean-with-abstractgps/118406 "2024-08-20T09:02:09Z")

</div>

Hello, I’m trying to write a CustomMean with AbstractGPs using a function with parameters, i.e. f(x,a,b,c), typically x has dimension 1. However, I can’t understand how I can manage the parameters. Has anyone a working…

---

## [Performance vs notation tradeoff: DataFrame vs AxisArray vs StaticArray vs?](https://discourse.julialang.org/t/performance-vs-notation-tradeoff-dataframe-vs-axisarray-vs-staticarray-vs/118323)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 4:47pm UTC](https://discourse.julialang.org/t/performance-vs-notation-tradeoff-dataframe-vs-axisarray-vs-staticarray-vs/118323 "2024-08-20T16:47:33Z")

</div>

I’ve got two datasets that would look like this in a dataframe (see later for MWE): julia\> df1 = mat2df(mat1, colnames1, id1) 8×5 DataFrame Row │ id col1 col2 col3 col4 │ String Int64 Int64 Int64 …

---

## [Create text document without LaTeX](https://discourse.julialang.org/t/create-text-document-without-latex/118417)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 3\
**Last updated:** [August 20, 2024, 4:01pm UTC](https://discourse.julialang.org/t/create-text-document-without-latex/118417 "2024-08-20T16:01:02Z")

</div>

Is there a package, preferably in pure Julia, that can create Odt/Pdf documents without LaTeX or Pandoc ?

---

## [What are good ways to structure reoccurring phrases in doc-strings](https://discourse.julialang.org/t/what-are-good-ways-to-structure-reoccurring-phrases-in-doc-strings/118302)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 1\
**Last updated:** [August 20, 2024, 3:59pm UTC](https://discourse.julialang.org/t/what-are-good-ways-to-structure-reoccurring-phrases-in-doc-strings/118302 "2024-08-20T15:59:22Z")

</div>

I recently refactored my doc strings after this discussion. In that thread already, @jules wrote, that in Makie they splice a lot of doc strings. I started doing something like that as well collecting phrases I often us…

---

## [Web apps with Mux + Plot + Interact do not interact any more](https://discourse.julialang.org/t/web-apps-with-mux-plot-interact-do-not-interact-any-more/118336)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 14\
**Last updated:** [August 20, 2024, 3:45pm UTC](https://discourse.julialang.org/t/web-apps-with-mux-plot-interact-do-not-interact-any-more/118336 "2024-08-20T15:45:23Z")

</div>

I was considering a simple example of a plot whose underlying model parameters are given by the output of a slider. While it was working “before”, now the slider doesn’t seems to have effect any more on the plot and I g…

---

## [Limiting step size in optimization variable between optimization steps of nonlinear constrained optimization problem](https://discourse.julialang.org/t/limiting-step-size-in-optimization-variable-between-optimization-steps-of-nonlinear-constrained-optimization-problem/117732)

<div class="topic-metadata">

**Author:** [@psuskin](https://discourse.julialang.org/u/psuskin)\
**Replies:** 4\
**Last updated:** [August 20, 2024, 2:19pm UTC](https://discourse.julialang.org/t/limiting-step-size-in-optimization-variable-between-optimization-steps-of-nonlinear-constrained-optimization-problem/117732 "2024-08-20T14:19:11Z")

</div>

Hi, I am trying to limit the step size of an optimization variable between optimization steps for a nonlinear constrained optimization problem using JuMP and Ipopt. In case this goal or the motivation behind it is uncl…

---

## [Putting obj files on the GPU with Metal.jl](https://discourse.julialang.org/t/putting-obj-files-on-the-gpu-with-metal-jl/118416)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 1:58pm UTC](https://discourse.julialang.org/t/putting-obj-files-on-the-gpu-with-metal-jl/118416 "2024-08-20T13:58:54Z")

</div>

How do I bring mesh from obj files onto the GPU? I am trying to do some GPU manipulation of meshes from .obj files. I was testing my code with the stanford bunny obj file, which I imported into a GeometryBasics Mesh usi…

---

## [How can I express the abstract type of a multi-parameter type that only matches the second parameter](https://discourse.julialang.org/t/how-can-i-express-the-abstract-type-of-a-multi-parameter-type-that-only-matches-the-second-parameter/118405)

<div class="topic-metadata">

**Author:** [@Blumenkranz](https://discourse.julialang.org/u/Blumenkranz)\
**Replies:** 5\
**Last updated:** [August 20, 2024, 1:49pm UTC](https://discourse.julialang.org/t/how-can-i-express-the-abstract-type-of-a-multi-parameter-type-that-only-matches-the-second-parameter/118405 "2024-08-20T13:49:19Z")

</div>

If I have a type VS\_Data{DIM,NDF} and a instance a::VS\_Data{3,2}. Then we have isa(a,VS\_Data{3})=true but isa(a,VS\_Data{2})=false, which implies that VS\_Data{DIM,NDF}\<:VS\_Data{DIM}. My question is how can I express the a…

---

## [Help setting SCIP parameters to increase use of heuristics](https://discourse.julialang.org/t/help-setting-scip-parameters-to-increase-use-of-heuristics/107801)

<div class="topic-metadata">

**Author:** [@convexhull](https://discourse.julialang.org/u/convexhull)\
**Replies:** 4\
**Last updated:** [August 20, 2024, 1:36pm UTC](https://discourse.julialang.org/t/help-setting-scip-parameters-to-increase-use-of-heuristics/107801 "2024-08-20T13:36:36Z")

</div>

I’m working on an optimization problem using SCIP and I’ve noticed that it takes a very long time to find a primal solution. I don’t need to find optimal solutions and I’d prefer to find feasible solutions early on. I wo…

---

## [Warmup, samples and discard\_adapt](https://discourse.julialang.org/t/warmup-samples-and-discard-adapt/118412)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 10:42am UTC](https://discourse.julialang.org/t/warmup-samples-and-discard-adapt/118412 "2024-08-20T10:42:55Z")

</div>

Hello everyone, I want to know simple explanation of difference between warm up and samples and what happens when we do discard\_adapt = false. Below you can see plots for two different conditions with and without disca…

---

## [Change in behavior when loading a module twice](https://discourse.julialang.org/t/change-in-behavior-when-loading-a-module-twice/118370)

<div class="topic-metadata">

**Author:** [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Replies:** 4\
**Last updated:** [August 20, 2024, 9:52am UTC](https://discourse.julialang.org/t/change-in-behavior-when-loading-a-module-twice/118370 "2024-08-20T09:52:51Z")

</div>

I have a module Mod1 stored in a file Mod1.jl and a module Mod2 stored in a file Mod2.jl. ‘Mod1’ exports a function userfun that uses a function foo which is defined in Mod2. Mod2 also defines some new types. module Mod…

---

## [The impact of different ways of passing parameters on the speed of function computation](https://discourse.julialang.org/t/the-impact-of-different-ways-of-passing-parameters-on-the-speed-of-function-computation/118340)

<div class="topic-metadata">

**Author:** [@JianchengSuo](https://discourse.julialang.org/u/JianchengSuo)\
**Replies:** 12\
**Last updated:** [August 20, 2024, 8:32am UTC](https://discourse.julialang.org/t/the-impact-of-different-ways-of-passing-parameters-on-the-speed-of-function-computation/118340 "2024-08-20T08:32:22Z")

</div>

I have a doubt and I will use a simple polynomial function as an example to describe it. Defining a regular polynomial function, the speed of direct value calculation is very fast (0.8ns): f1(x,y)=x^3\*y^3+2\*x^2\*y+3\*x\*y…

---

## [Lazy constraint doesn't seem to work?](https://discourse.julialang.org/t/lazy-constraint-doesnt-seem-to-work/118333)

<div class="topic-metadata">

**Author:** [@jack\_lee](https://discourse.julialang.org/u/jack_lee)\
**Replies:** 1\
**Last updated:** [August 18, 2024, 8:56pm UTC](https://discourse.julialang.org/t/lazy-constraint-doesnt-seem-to-work/118333 "2024-08-18T20:56:40Z")

</div>

Here is my call\_back function,it mainly used to elimilate sub-circle in route function call\_back(cb\_data) status = callback\_node\_status(cb\_data, model) x\_val = callback\_value.(cb\_data, model\[:x\]) for i ∈ 1:m d…

---

## [Find all functions/methods that take two numbers as arguments](https://discourse.julialang.org/t/find-all-functions-methods-that-take-two-numbers-as-arguments/118403)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 5:35am UTC](https://discourse.julialang.org/t/find-all-functions-methods-that-take-two-numbers-as-arguments/118403 "2024-08-20T05:35:14Z")

</div>

I’m implementing a new subtype of Integer (should be a PR to Julia’s Base), so I want a list of all functions that have a type signature like (::Int16, ::Int16), so I could implement the operation for the new type. I re…

---

## [NeuralOperators.jl Performance (compared with Python)](https://discourse.julialang.org/t/neuraloperators-jl-performance-compared-with-python/106076)

<div class="topic-metadata">

**Author:** [@Julian\_Villaquira](https://discourse.julialang.org/u/Julian_Villaquira)\
**Replies:** 8\
**Last updated:** [August 20, 2024, 3:35am UTC](https://discourse.julialang.org/t/neuraloperators-jl-performance-compared-with-python/106076 "2024-08-20T03:35:59Z")

</div>

Hi, I am training a Neural Operator to learn a map between a two dimensional domain. For Julia, this is a MWE of the problem I am considering: # Imports. using NeuralOperators using Flux using FluxTraining using MLUtils…

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

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