# Latest

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

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

**Page:** 701

---

## [\[Ann\] GmshImport package: GMSH 4.1 file parser](https://discourse.julialang.org/t/ann-gmshimport-package-gmsh-4-1-file-parser/98819)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 8:48am UTC](https://discourse.julialang.org/t/ann-gmshimport-package-gmsh-4-1-file-parser/98819 "2023-05-14T08:48:22Z")

</div>

Import .msh files in the Gmsh 4.1 format. Capability: import node and element blocks. Limitation: The element types are limited at the moment to the most common ones. The imported data are not specific to any particula…

---

## [Making graph with shapefile](https://discourse.julialang.org/t/making-graph-with-shapefile/98768)

<div class="topic-metadata">

**Author:** [@Michelle\_Ko](https://discourse.julialang.org/u/Michelle_Ko)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 8:17am UTC](https://discourse.julialang.org/t/making-graph-with-shapefile/98768 "2023-05-14T08:17:45Z")

</div>

Hi, I am new to Julia and need some help regarding construction of graph with shapefile. I have shapefile that contains polylines and want to get the shortest path using Dijkstra’s algorithm. The thing is, in order to …

---

## [Convert code from DataFrames version to DataFramesMeta](https://discourse.julialang.org/t/convert-code-from-dataframes-version-to-dataframesmeta/98824)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 8:15am UTC](https://discourse.julialang.org/t/convert-code-from-dataframes-version-to-dataframesmeta/98824 "2023-05-14T08:15:44Z")

</div>

DataFrames (successful): lst = describe(df)\[(describe(df)."nmissing" .\> 0 .&& describe(df)."variable" .!= :x26), :variable\] DataFramesMeta: lst = @chain describe(df) begin @rsubset :nmissing \> 0 @select :variable …

---

## [Upper bound for minor version of a dependency](https://discourse.julialang.org/t/upper-bound-for-minor-version-of-a-dependency/98816)

<div class="topic-metadata">

**Author:** [@ferrolho](https://discourse.julialang.org/u/ferrolho)\
**Replies:** 6\
**Last updated:** [May 14, 2023, 8:12am UTC](https://discourse.julialang.org/t/upper-bound-for-minor-version-of-a-dependency/98816 "2023-05-14T08:12:49Z")

</div>

Is there a way of setting an upper bound for the minor version of a dependency in the \[compat\] section of Project.toml? I want to set the compatible versions of a dependency to the range \[1, 1.5\] or \[1, 1.6). This is be…

---

## [Can't load a shared library](https://discourse.julialang.org/t/cant-load-a-shared-library/98621)

<div class="topic-metadata">

**Author:** [@nebula](https://discourse.julialang.org/u/nebula)\
**Replies:** 4\
**Last updated:** [May 14, 2023, 2:58am UTC](https://discourse.julialang.org/t/cant-load-a-shared-library/98621 "2023-05-14T02:58:25Z")

</div>

I have a shared library liba.so which requires /lib/x86\_64-linux-gnu/libcurl.so to run. bash\> ldd liba.so ... libcurl.so.4 =\> /lib/x86\_64-linux-gnu/libcurl.so.4 (0x00007f319ee74000) ... I use ccall to call a function i…

---

## [Local package precompilation fails for Julia 1.9.0](https://discourse.julialang.org/t/local-package-precompilation-fails-for-julia-1-9-0/98802)

<div class="topic-metadata">

**Author:** [@myersm0](https://discourse.julialang.org/u/myersm0)\
**Replies:** 4\
**Last updated:** [May 14, 2023, 1:39am UTC](https://discourse.julialang.org/t/local-package-precompilation-fails-for-julia-1-9-0/98802 "2023-05-14T01:39:02Z")

</div>

Upon upgrading to Julia 1.9.0, I can’t seem to create and load any locally developed package that includes a “using” or “import” statement. If I exclude using/import, it works fine. For example, I tried running through t…

---

## [Method of Base.:+ defined for times but not ints?](https://discourse.julialang.org/t/method-of-base-defined-for-times-but-not-ints/98818)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 12:04am UTC](https://discourse.julialang.org/t/method-of-base-defined-for-times-but-not-ints/98818 "2023-05-14T00:04:57Z")

</div>

Just an observation. This isn’t defined \[1\] + 1 # ERROR: MethodError: no method matching +(::Vector{Int64}, ::Int64) But this is \[DateTime(2023,1,1)\] + Second(1) # 1-element Vector{DateTime}: # 2023-01-01T00:00:01 I…

---

## [JuMP model unregister action](https://discourse.julialang.org/t/jump-model-unregister-action/98784)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 1\
**Last updated:** [May 13, 2023, 10:50pm UTC](https://discourse.julialang.org/t/jump-model-unregister-action/98784 "2023-05-13T22:50:39Z")

</div>

I got a question about how JuMP expressions are constructed. Like I got an expression named :a defined on some variables :x and :y and some constants :c in the way like a = x+y+c. But later I want to do some modification…

---

## [MethodError: no matching method for Int64 despite specifying Real](https://discourse.julialang.org/t/methoderror-no-matching-method-for-int64-despite-specifying-real/98809)

<div class="topic-metadata">

**Author:** [@JoO0oss](https://discourse.julialang.org/u/JoO0oss)\
**Replies:** 4\
**Last updated:** [May 13, 2023, 8:56pm UTC](https://discourse.julialang.org/t/methoderror-no-matching-method-for-int64-despite-specifying-real/98809 "2023-05-13T20:56:03Z")

</div>

I’ve looked at this question on the Julia discourse and checked parametric types in the docs (which are fantastic docs, I’d like to add) and I’m not sure what to do next. I have a function which wants tuples of numbers,…

---

## [FFTW doesn't work in a module](https://discourse.julialang.org/t/fftw-doesnt-work-in-a-module/98812)

<div class="topic-metadata">

**Author:** [@adamslc](https://discourse.julialang.org/u/adamslc)\
**Replies:** 1\
**Last updated:** [May 13, 2023, 8:10pm UTC](https://discourse.julialang.org/t/fftw-doesnt-work-in-a-module/98812 "2023-05-13T20:10:27Z")

</div>

FFTW has me thoroughly confused. Consider the following code: using FFTW fft(rand(10)) module Testing using FFTW f() = fft(rand(10)) export f end using .Testing f() The fft in the global scope works just fine. Howev…

---

## [Deleting Part of Artifact](https://discourse.julialang.org/t/deleting-part-of-artifact/98801)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [May 13, 2023, 7:49pm UTC](https://discourse.julialang.org/t/deleting-part-of-artifact/98801 "2023-05-13T19:49:13Z")

</div>

I have a package that depends on a subdirectory of a release of a GitHub project. The GitHub release format is convenient — it’s provided as a tar.gz file, which Artifacts supports! That’s all fine. The expanded artifac…

---

## [Failed to precompile Flux \[587475ba-b771-5e3f-ad9e-33799f191a9c\] to ~.julia\\compiled\\v1.8\\Flux\\jl\_753A.tmp](https://discourse.julialang.org/t/failed-to-precompile-flux-587475ba-b771-5e3f-ad9e-33799f191a9c-to-julia-compiled-v1-8-flux-jl-753a-tmp/98811)

<div class="topic-metadata">

**Author:** [@ATR](https://discourse.julialang.org/u/ATR)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 7:34pm UTC](https://discourse.julialang.org/t/failed-to-precompile-flux-587475ba-b771-5e3f-ad9e-33799f191a9c-to-julia-compiled-v1-8-flux-jl-753a-tmp/98811 "2023-05-13T19:34:29Z")

</div>

Dear all, I got the following error when trying to compile Flux in jupyter notebook: \[ Info: Precompiling Flux \[587475ba-b771-5e3f-ad9e-33799f191a9c\] ERROR: LoadError: InitError: could not load library “~.julia\\artifac…

---

## [Is there a way to quickly get elevation/altitude given longitude and latitude?](https://discourse.julialang.org/t/is-there-a-way-to-quickly-get-elevation-altitude-given-longitude-and-latitude/98781)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 3\
**Last updated:** [May 13, 2023, 7:22pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-quickly-get-elevation-altitude-given-longitude-and-latitude/98781 "2023-05-13T19:22:45Z")

</div>

I have a data frame with longitude and latitude, and I would like to obtain the elevation/altitude for each point. At the moment, I use the R package geonames, which is a functional API for geonames.org. For example: u…

---

## [Load time of TimeZones](https://discourse.julialang.org/t/load-time-of-timezones/98805)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 6:54pm UTC](https://discourse.julialang.org/t/load-time-of-timezones/98805 "2023-05-13T18:54:52Z")

</div>

I am trying to reduce the load time of my packages, and found that TimeZones.jl does not behave well: julia\> @time import TimeZones 0.592166 seconds (362.80 k allocations: 25.915 MiB, 71.02% compilation time) using J…

---

## [Can CUDA beat LoopVectorization/make this CUDA code faster?](https://discourse.julialang.org/t/can-cuda-beat-loopvectorization-make-this-cuda-code-faster/98804)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 6:38pm UTC](https://discourse.julialang.org/t/can-cuda-beat-loopvectorization-make-this-cuda-code-faster/98804 "2023-05-13T18:38:36Z")

</div>

I have the following code, which has very nice performance on the CPU: using LoopVectorization: @turbo function dilation\_loop\_vec!(out\_cpu, inp\_cpu, ker\_cpu) @turbo thread=true for i in eachindex(out\_cpu) v…

---

## [Array ordering and naive summation](https://discourse.julialang.org/t/array-ordering-and-naive-summation/1929)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 5\
**Last updated:** [May 13, 2023, 6:00pm UTC](https://discourse.julialang.org/t/array-ordering-and-naive-summation/1929 "2023-05-13T18:00:32Z")

</div>

One of the first things you learn in numerical analysis is that floating-point operations are not associative. A classic example is this: julia\> (0.1 + 0.2) + 0.3 0.6000000000000001 julia\> 0.1 + (0.2 + 0.3) 0.6 I was …

---

## [Installing Julia Nightly with juliaup](https://discourse.julialang.org/t/installing-julia-nightly-with-juliaup/89749)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 3\
**Last updated:** [May 13, 2023, 5:58pm UTC](https://discourse.julialang.org/t/installing-julia-nightly-with-juliaup/89749 "2023-05-13T17:58:32Z")

</div>

I used to use jill.py to manage Julia installation. It supported installing the latest nightly version (i.e. 1.9), but I don’t see how to get juliaup to install it. Is there a way to do so?

---

## [\[ANN\] jlrs 0.18: export code written in Rust à la CxxWrap](https://discourse.julialang.org/t/ann-jlrs-0-18-export-code-written-in-rust-a-la-cxxwrap/98803)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 5:33pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-18-export-code-written-in-rust-a-la-cxxwrap/98803 "2023-05-13T17:33:36Z")

</div>

jlrs is a crate for the Rust programming language that provides access to most of the Julia C API, it can be used to embed Julia in Rust applications and to use functionality it provides when writing ccallable functions …

---

## [Matrix chain multiplication with arbitrary number of matrices](https://discourse.julialang.org/t/matrix-chain-multiplication-with-arbitrary-number-of-matrices/98794)

<div class="topic-metadata">

**Author:** [@Frisus95](https://discourse.julialang.org/u/Frisus95)\
**Replies:** 7\
**Last updated:** [May 13, 2023, 5:16pm UTC](https://discourse.julialang.org/t/matrix-chain-multiplication-with-arbitrary-number-of-matrices/98794 "2023-05-13T17:16:17Z")

</div>

Hi everyone, I want to multiply (or contract) an arbitrary number of matrices. As an example, the naive version with 4 matrices could be written as: m1 = rand(10,10) m2 = rand(10,10) m3 = rand(10,10) m4 = rand(10,10) …

---

## [How to apply replace to whole DataFrame like in Python?](https://discourse.julialang.org/t/how-to-apply-replace-to-whole-dataframe-like-in-python/98797)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 7\
**Last updated:** [May 13, 2023, 5:05pm UTC](https://discourse.julialang.org/t/how-to-apply-replace-to-whole-dataframe-like-in-python/98797 "2023-05-13T17:05:07Z")

</div>

To replace a character in df in Python we can: df.replace("?", np.nan, inplace = True) but it seems Julia not support replace to the whole DataFrame replace(df, "?" =\> missing) returns: MethodError: no method match…

---

## [Suggestions for converting raw RTF (rich text format) to plain text](https://discourse.julialang.org/t/suggestions-for-converting-raw-rtf-rich-text-format-to-plain-text/98568)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 11\
**Last updated:** [May 13, 2023, 4:01pm UTC](https://discourse.julialang.org/t/suggestions-for-converting-raw-rtf-rich-text-format-to-plain-text/98568 "2023-05-13T16:01:52Z")

</div>

I am going to be pulling some data from an IBM DB2 database that is stored as CLOB data. It’s Rich Text Format (RTF) text data and what I want to do is convert it to plain text. Here’s an example of what it looks like: …

---

## [Doesn't capturing groups within non capturing groups work in regex?](https://discourse.julialang.org/t/doesnt-capturing-groups-within-non-capturing-groups-work-in-regex/98029)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 5\
**Last updated:** [May 13, 2023, 2:53pm UTC](https://discourse.julialang.org/t/doesnt-capturing-groups-within-non-capturing-groups-work-in-regex/98029 "2023-05-13T14:53:26Z")

</div>

I’m looking to capture a pattern like "=2.4.7.9\_" and be able to extract the numbers. I try to match it with r"=(\\d+)(:\\.(\\d+))\*\_" but that doesn’t seem to work. I expect each number to end up in a capture group but ins…

---

## [Multi-Scale Methods and SciML in Neuroscience: Looking for Scientists!](https://discourse.julialang.org/t/multi-scale-methods-and-sciml-in-neuroscience-looking-for-scientists/98795)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 2:47pm UTC](https://discourse.julialang.org/t/multi-scale-methods-and-sciml-in-neuroscience-looking-for-scientists/98795 "2023-05-13T14:47:01Z")

</div>

The Neuroblox team is looking for new recruits with SciML experience interested in helping develop multi-scale models and tooling for treating brain-based disorders. An article detailing the Neuroblox project can be foun…

---

## [How to achieve interactive analysis based on mouse-selected data in Genie with plotlyjs](https://discourse.julialang.org/t/how-to-achieve-interactive-analysis-based-on-mouse-selected-data-in-genie-with-plotlyjs/98789)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 10:31am UTC](https://discourse.julialang.org/t/how-to-achieve-interactive-analysis-based-on-mouse-selected-data-in-genie-with-plotlyjs/98789 "2023-05-13T10:31:07Z")

</div>

Hi, I have a Genie demo app that contains two figures: a scatter plot and a box plot. My goal is to enable the box plot to update according to the data points I select in the scatter plot when I circle them with the mou…

---

## [How to create a 2x1 Array?](https://discourse.julialang.org/t/how-to-create-a-2x1-array/8337)

<div class="topic-metadata">

**Author:** [@jandehaan](https://discourse.julialang.org/u/jandehaan)\
**Replies:** 51\
**Last updated:** [May 13, 2023, 9:57am UTC](https://discourse.julialang.org/t/how-to-create-a-2x1-array/8337 "2023-05-13T09:57:07Z")

</div>

TL;DR, answer: to get a 2x1 Array/Matrix transpose a 1x2 matrix, for example: \[2 4\]' A more general solution that also works for complex numbers in Julia V0.7- would be transpose(\[2 4\]) I wanted to test julia\> maxim…

---

## [GC going nuts](https://discourse.julialang.org/t/gc-going-nuts/93447)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 18\
**Last updated:** [May 13, 2023, 9:07am UTC](https://discourse.julialang.org/t/gc-going-nuts/93447 "2023-05-13T09:07:53Z")

</div>

I have workload where I process larger datasets (a few GB) iteratively. After adjusting some parameters the processing is repeated within the same REPL session. After two or three rounds all slows down and switching on G…

---

## [Neovim/slime/tmux and bracketed-paste](https://discourse.julialang.org/t/neovim-slime-tmux-and-bracketed-paste/98778)

<div class="topic-metadata">

**Author:** [@ZuseZ4](https://discourse.julialang.org/u/ZuseZ4)\
**Replies:** 1\
**Last updated:** [May 13, 2023, 3:57am UTC](https://discourse.julialang.org/t/neovim-slime-tmux-and-bracketed-paste/98778 "2023-05-13T03:57:09Z")

</div>

Hi, I am just getting started in julia. I usually avoid repl based settings, but I see that this doesn’t really work for julia. My local laptop is really weak, so I usually jump trough three ssh connections and work on…

---

## [Why is NPZ so much faster than JLD in this case?](https://discourse.julialang.org/t/why-is-npz-so-much-faster-than-jld-in-this-case/98776)

<div class="topic-metadata">

**Author:** [@Michael\_Hess](https://discourse.julialang.org/u/Michael_Hess)\
**Replies:** 3\
**Last updated:** [May 13, 2023, 3:06am UTC](https://discourse.julialang.org/t/why-is-npz-so-much-faster-than-jld-in-this-case/98776 "2023-05-13T03:06:33Z")

</div>

Hello! First post here so sorry in advance :') I am doing numerical simulations on a large dataset for a wide range of parameters, and I was trying to save the results of this analysis using the JLD save function. The a…

---

## [Quadratic Expression in JuMP](https://discourse.julialang.org/t/quadratic-expression-in-jump/98601)

<div class="topic-metadata">

**Author:** [@Gagan\_Meena](https://discourse.julialang.org/u/Gagan_Meena)\
**Replies:** 15\
**Last updated:** [May 13, 2023, 2:28am UTC](https://discourse.julialang.org/t/quadratic-expression-in-jump/98601 "2023-05-13T02:28:24Z")

</div>

ESS\_cost = CRF\*(CapES\*max\_Eb\*100 + CapPS\*max\_Pb\*100) + FOM\*max\_Pb\*100 + VOM\*sum(PD\[s\]\*dur\[s\] for s in scenar)\*100\*365 cost\_genvar = sum(PgenT\[j,i\]\*cov\[i,k\]\*Pgen\[k,j\] for i in bus\_key for j in scenar for k in bus\_ke…

---

## [Changing progress bars in FluxML / SciML ecosystem](https://discourse.julialang.org/t/changing-progress-bars-in-fluxml-sciml-ecosystem/98777)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 2:27am UTC](https://discourse.julialang.org/t/changing-progress-bars-in-fluxml-sciml-ecosystem/98777 "2023-05-13T02:27:10Z")

</div>

I’m using Surrogates.jl and SurrogatesFlux.jl to train a neural network, and the output prints a progress bar for each training pass. I’d like to keep just the top (overall) progress bar, or none at all. Is there any way…

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

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