# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=112

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

**Page:** 113

---

## [OdsIO clear cells](https://discourse.julialang.org/t/odsio-clear-cells/122609)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 3\
**Last updated:** [November 14, 2024, 12:08pm UTC](https://discourse.julialang.org/t/odsio-clear-cells/122609 "2024-11-14T12:08:11Z")

</div>

Is there an OdsIO.jl command to clear cells? It seems there is a VBA solution for Excel And ezodf does seem to have a clear command but I can’t say I understand it.

---

## [Need Help with Tyler.jl](https://discourse.julialang.org/t/need-help-with-tyler-jl/122295)

<div class="topic-metadata">

**Author:** [@Elvander](https://discourse.julialang.org/u/Elvander)\
**Replies:** 16\
**Last updated:** [November 14, 2024, 9:59am UTC](https://discourse.julialang.org/t/need-help-with-tyler-jl/122295 "2024-11-14T09:59:07Z")

</div>

I wish to plot a simple map of some EU country and superpose dots and lines ; This is supposedly simple, but alas - it doesnt work for me . # For plots using Tyler using GLMakie using GeoMakie using Tyler.TileProviders …

---

## [Storing separate Makie axes from a figure](https://discourse.julialang.org/t/storing-separate-makie-axes-from-a-figure/122620)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 1\
**Last updated:** [November 14, 2024, 9:19am UTC](https://discourse.julialang.org/t/storing-separate-makie-axes-from-a-figure/122620 "2024-11-14T09:19:23Z")

</div>

1. Storing axes separately When making figures for publications, I often find myself wanting to store individual axes from a figure with multiple axes. This is to reduce some redundant information, such as shared axis-la…

---

## [Why the compiler can't optimize this simple code?](https://discourse.julialang.org/t/why-the-compiler-cant-optimize-this-simple-code/122504)

<div class="topic-metadata">

**Author:** [@guoyongzhi](https://discourse.julialang.org/u/guoyongzhi)\
**Replies:** 20\
**Last updated:** [November 14, 2024, 9:07am UTC](https://discourse.julialang.org/t/why-the-compiler-cant-optimize-this-simple-code/122504 "2024-11-14T09:07:33Z")

</div>

In the following minimum example, the function f1 is optimized, but the function f2 is not. Is there any essential difficulty that hinders the compiler to do so? Can I make the setfield!(a, a.i, v) pattern faster? And h…

---

## [Stop \`CondaPkg\` for finding dependencies in other projects](https://discourse.julialang.org/t/stop-condapkg-for-finding-dependencies-in-other-projects/122562)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 6\
**Last updated:** [November 13, 2024, 11:12pm UTC](https://discourse.julialang.org/t/stop-condapkg-for-finding-dependencies-in-other-projects/122562 "2024-11-13T23:12:45Z")

</div>

Hi, I am using CondaPkg and PythonCall for more than one of my projects. When I install a second project using CondaPkg, this second one finds the dependencies of the first one and tries to solve all the dependencies to…

---

## [Latest release and LTS versions from server (for use in CI)?](https://discourse.julialang.org/t/latest-release-and-lts-versions-from-server-for-use-in-ci/122537)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 7\
**Last updated:** [November 13, 2024, 7:25pm UTC](https://discourse.julialang.org/t/latest-release-and-lts-versions-from-server-for-use-in-ci/122537 "2024-11-13T19:25:08Z")

</div>

It has probably been asked before, but how can I programmatically and reliably get the latest stable julia version and latest lts stable version from an official server e.g. julialang.org or julialang.net using simple li…

---

## [Keep getting \`'apple-m3' is not a recognized processor for this target (ignoring processor)\`](https://discourse.julialang.org/t/keep-getting-apple-m3-is-not-a-recognized-processor-for-this-target-ignoring-processor/122573)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 6:51pm UTC](https://discourse.julialang.org/t/keep-getting-apple-m3-is-not-a-recognized-processor-for-this-target-ignoring-processor/122573 "2024-11-13T18:51:01Z")

</div>

Hi all, Sorry for the noise, but I keep getting this error when compiling my Julia libraries: 'apple-m3' is not a recognized processor for this target (ignoring processor) I am using an M1 MacBook pro. I cannot fin…

---

## [Julia-Python interface fails in Julia library likely due to wrong SSL credentials](https://discourse.julialang.org/t/julia-python-interface-fails-in-julia-library-likely-due-to-wrong-ssl-credentials/121675)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 18\
**Last updated:** [November 13, 2024, 5:28pm UTC](https://discourse.julialang.org/t/julia-python-interface-fails-in-julia-library-likely-due-to-wrong-ssl-credentials/121675 "2024-11-13T17:28:51Z")

</div>

Hi all, I am experiencing a very complicated bug regarding SSL certification in a Julia package integrated with Python using PyCall and/or PythonCall (we have problems with the two actually, so probably the source of er…

---

## [Why are compiler devs in such high demand for Julia?](https://discourse.julialang.org/t/why-are-compiler-devs-in-such-high-demand-for-julia/99420)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 41\
**Last updated:** [November 13, 2024, 3:52pm UTC](https://discourse.julialang.org/t/why-are-compiler-devs-in-such-high-demand-for-julia/99420 "2024-11-13T15:52:20Z")

</div>

From different automatic differentiation in Julia such as Zygote, Diffractor, and Enzyme, each handling it at a different level, to loopmodel, to getting precompilation improved, and so on. Moreover, Julia wants to defin…

---

## [Define a macro based on @timeit from TimerOutputs.jl](https://discourse.julialang.org/t/define-a-macro-based-on-timeit-from-timeroutputs-jl/122577)

<div class="topic-metadata">

**Author:** [@IvanBioli](https://discourse.julialang.org/u/IvanBioli)\
**Replies:** 5\
**Last updated:** [November 13, 2024, 3:19pm UTC](https://discourse.julialang.org/t/define-a-macro-based-on-timeit-from-timeroutputs-jl/122577 "2024-11-13T15:19:12Z")

</div>

Hi everyone, I am using TimerOutputs.jl to time parts of my code with the @timeit macro. The typical syntax looks like this: using TimerOutputs timer = TimerOutput() @timeit timer "some\_identifier" begin # some co…

---

## ["Error Importing Custom Julia Package: UndefVarError: Zygote not defined Despite Dependency Declaration"](https://discourse.julialang.org/t/error-importing-custom-julia-package-undefvarerror-zygote-not-defined-despite-dependency-declaration/122587)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 5\
**Last updated:** [November 13, 2024, 3:01pm UTC](https://discourse.julialang.org/t/error-importing-custom-julia-package-undefvarerror-zygote-not-defined-despite-dependency-declaration/122587 "2024-11-13T15:01:55Z")

</div>

I’m trying to import a developed package, but I get the following error: julia\> using RandomProjections \[ Info: Precompiling RandomProjections \[acf8f2c6-418f-403f-a7f7-d35fd4a663f5\] ERROR: LoadError: UndefVarError: \`Zyg…

---

## [Mergewith() does not preserve alternate AbstractDict types. Bug?](https://discourse.julialang.org/t/mergewith-does-not-preserve-alternate-abstractdict-types-bug/122576)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 2:28pm UTC](https://discourse.julialang.org/t/mergewith-does-not-preserve-alternate-abstractdict-types-bug/122576 "2024-11-13T14:28:52Z")

</div>

If I have two dictionaries of some alternative type like OrderedDict julia\> using OrderedCollections julia\> a = OrderedDict("a"=\>1, "b"=\>"foo") OrderedDict{String, Any} with 2 entries: "a" =\> 1 "b" =\> "foo" julia\> …

---

## [How to develop web apps with Julia?](https://discourse.julialang.org/t/how-to-develop-web-apps-with-julia/110591)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 2:19pm UTC](https://discourse.julialang.org/t/how-to-develop-web-apps-with-julia/110591 "2024-11-13T14:19:14Z")

</div>

How to develop web apps with Julia? Are there any small examples for tutorials? For example, I want to record some data through a web page at any time and then draw its historical curve. In Julia’s world, what are the cu…

---

## [Is there a \`getsockname\` for \`UDPSocket\`?](https://discourse.julialang.org/t/is-there-a-getsockname-for-udpsocket/122553)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.julialang.org/u/Pedro)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 12:31pm UTC](https://discourse.julialang.org/t/is-there-a-getsockname-for-udpsocket/122553 "2024-11-13T12:31:12Z")

</div>

I’m trying to write some simple program that involves communication with UDP sockets. I would like not to manually bind the port to the socket, and let the OS choose it. It can be achieved by binding to port 0. However, …

---

## [Factorizing BigInt, partially if necessary](https://discourse.julialang.org/t/factorizing-bigint-partially-if-necessary/122524)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 8\
**Last updated:** [November 13, 2024, 5:01am UTC](https://discourse.julialang.org/t/factorizing-bigint-partially-if-necessary/122524 "2024-11-13T05:01:32Z")

</div>

I’d like to write a function to generate big primes and semiprimes suitable for cryptography. It’s important to try to factor p-1; the primes should at least be in A073024. But I could encounter a number which can’t be c…

---

## [SciMLSensitivity.jl Precompile error because of Enzyme](https://discourse.julialang.org/t/scimlsensitivity-jl-precompile-error-because-of-enzyme/122561)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 11\
**Last updated:** [November 12, 2024, 10:00pm UTC](https://discourse.julialang.org/t/scimlsensitivity-jl-precompile-error-because-of-enzyme/122561 "2024-11-12T22:00:20Z")

</div>

Edit: Issue opened with Trixi.jl Trixi forcing downgrades when using Enzyme.jl, Zygote.jl, SciMLsensitivity.jl · Issue #2157 · trixi-framework/Trixi.jl Trying to follow along this the SciMLSensitivity.jl tutorial: Pa…

---

## [Performance: read data from ascii file, replace \`split\`](https://discourse.julialang.org/t/performance-read-data-from-ascii-file-replace-split/122422)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 13\
**Last updated:** [November 12, 2024, 6:40pm UTC](https://discourse.julialang.org/t/performance-read-data-from-ascii-file-replace-split/122422 "2024-11-12T18:40:26Z")

</div>

Basically I have a very large file that has some data I need to read, with the form, lets say: AA 1 10.0 B 22 2.0 I have to use this data to feed an array of a structure struct Data name::String index::Int …

---

## [Linter highlights missing references in Project.toml file](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 6\
**Last updated:** [November 12, 2024, 6:21pm UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211 "2024-11-12T18:21:32Z")

</div>

Sometimes the Julia VS Code linter highlights missing references in the Project.toml file (screenshot below). I’ve seen this before but never got around to reporting or asking about it. Has anyone else seen this? Is ther…

---

## [Slow argmin?](https://discourse.julialang.org/t/slow-argmin/122556)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 3\
**Last updated:** [November 12, 2024, 5:46pm UTC](https://discourse.julialang.org/t/slow-argmin/122556 "2024-11-12T17:46:26Z")

</div>

Hi, I come across the following performance gap and I am not sure I understand why. function my\_min(a) val = a\[begin\] ind = 0 @inbounds for i in eachindex(a) if a\[i\]\>val val = a\[i\] …

---

## [Push! and insert! very slow? (julia 1.11) (EDIT: No; just one-time allocations.)](https://discourse.julialang.org/t/push-and-insert-very-slow-julia-1-11-edit-no-just-one-time-allocations/122502)

<div class="topic-metadata">

**Author:** [@mlanghinrichs](https://discourse.julialang.org/u/mlanghinrichs)\
**Replies:** 21\
**Last updated:** [November 12, 2024, 5:01pm UTC](https://discourse.julialang.org/t/push-and-insert-very-slow-julia-1-11-edit-no-just-one-time-allocations/122502 "2024-11-12T17:01:46Z")

</div>

Hi all, I felt that part of my code ran slowly, and then noticed runtimes of push! and insert! on the order of µs. In contrast, other in-place methods such as deleteat! or setindex! are on the order of ns. Are these run…

---

## [Sequentially adding lines with plot! ending up in overwriting](https://discourse.julialang.org/t/sequentially-adding-lines-with-plot-ending-up-in-overwriting/122520)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 2\
**Last updated:** [November 12, 2024, 2:20pm UTC](https://discourse.julialang.org/t/sequentially-adding-lines-with-plot-ending-up-in-overwriting/122520 "2024-11-12T14:20:29Z")

</div>

Hi there, quick question: is there a reason why this function does not produce a single plot with the various lines desired? I get a plot with the last line only and my understanding is that this should not happen. func…

---

## [How to (efficiently) filter a file/stream on-the-fly?](https://discourse.julialang.org/t/how-to-efficiently-filter-a-file-stream-on-the-fly/122457)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 6\
**Last updated:** [November 12, 2024, 12:12pm UTC](https://discourse.julialang.org/t/how-to-efficiently-filter-a-file-stream-on-the-fly/122457 "2024-11-12T12:12:53Z")

</div>

I have a fixed-width output file from a Fortran program, in a well-defined matrix format, except for the occasional lines which I can regard as comments. I would like to pass the file to something like DelimitedFiles.rea…

---

## [Why is it Convention to Repeat Function Signatures in Docstrings](https://discourse.julialang.org/t/why-is-it-convention-to-repeat-function-signatures-in-docstrings/122245)

<div class="topic-metadata">

**Author:** [@mlouis9](https://discourse.julialang.org/u/mlouis9)\
**Replies:** 11\
**Last updated:** [November 10, 2024, 6:30pm UTC](https://discourse.julialang.org/t/why-is-it-convention-to-repeat-function-signatures-in-docstrings/122245 "2024-11-10T18:30:27Z")

</div>

I’m very new to Julia, but the only official guidance on Julia docstring conventions I’ve been able to find suggests repeating the function signature in the docstring. This seems kind of redundant and hard to maintain (i…

---

## [Undefined behaviour of ccall](https://discourse.julialang.org/t/undefined-behaviour-of-ccall/122496)

<div class="topic-metadata">

**Author:** [@kmiernik](https://discourse.julialang.org/u/kmiernik)\
**Replies:** 6\
**Last updated:** [November 12, 2024, 6:17am UTC](https://discourse.julialang.org/t/undefined-behaviour-of-ccall/122496 "2024-11-12T06:17:21Z")

</div>

I have been using my julia wrapper for some c-library called fasterac (for use with digital electronics (https://faster.in2p3.fr/). It has been working fine, and I processed many TB of data with it. With Julia 1.11 (and …

---

## [Would this work for safer Julia code?](https://discourse.julialang.org/t/would-this-work-for-safer-julia-code/122523)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [November 12, 2024, 6:14am UTC](https://discourse.julialang.org/t/would-this-work-for-safer-julia-code/122523 "2024-11-12T06:14:18Z")

</div>

There have been many complaints regarding Julia safety. I’ve been thinking about this and my solution proposal is with more multiple dispatch. Basically, you will generate the proof of correctness of an algorithm given a…

---

## [A shortcut to Bresenham's algo?](https://discourse.julialang.org/t/a-shortcut-to-bresenhams-algo/122451)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 8\
**Last updated:** [November 11, 2024, 10:59pm UTC](https://discourse.julialang.org/t/a-shortcut-to-bresenhams-algo/122451 "2024-11-11T22:59:16Z")

</div>

Hi, I have a set mycurves of broken lines in 3d. I have a grid specified by 3 ranges rx,ry,rz. For each curve in mycurve, I want to tag the cells in the grid by which the curve passes. Hence, the cells hold the value 0 …

---

## [Huge RAM usage with JumpProcesses.jl](https://discourse.julialang.org/t/huge-ram-usage-with-jumpprocesses-jl/122428)

<div class="topic-metadata">

**Author:** [@hhindley](https://discourse.julialang.org/u/hhindley)\
**Replies:** 13\
**Last updated:** [November 11, 2024, 8:18pm UTC](https://discourse.julialang.org/t/huge-ram-usage-with-jumpprocesses-jl/122428 "2024-11-11T20:18:22Z")

</div>

I am running a stochastic model using JumpProcesses.jl. The lowest consistent memory usage I can achieve is between 8-16GB with simulations that take 10-20seconds. I would assume for such an time efficient simulation the…

---

## [IOError when using Distributed](https://discourse.julialang.org/t/ioerror-when-using-distributed/122495)

<div class="topic-metadata">

**Author:** [@Miroboru](https://discourse.julialang.org/u/Miroboru)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 2:14pm UTC](https://discourse.julialang.org/t/ioerror-when-using-distributed/122495 "2024-11-11T14:14:27Z")

</div>

I have an old script that I have been using for a while, and which relies heavily on Distributed. Recently (I guess after Julia 1.11.1) my script is crashing with the following output from every node: Worker 55 terminat…

---

## [Nested\_nlsolve in RadauIIa7 issue](https://discourse.julialang.org/t/nested-nlsolve-in-radauiia7-issue/122485)

<div class="topic-metadata">

**Author:** [@Maysam\_Gholampour](https://discourse.julialang.org/u/Maysam_Gholampour)\
**Replies:** 2\
**Last updated:** [November 11, 2024, 12:00pm UTC](https://discourse.julialang.org/t/nested-nlsolve-in-radauiia7-issue/122485 "2024-11-11T12:00:11Z")

</div>

Dear All, I have developed a package for a heat exchanger. Once BoundaryValueDiffeq V5.10.0 was released, I used it to solve my problem, which is a two-point boundary value problem (BVP). Today, I unexpectedly updated m…

---

## [Change the default global environment path (Julia on HPC)](https://discourse.julialang.org/t/change-the-default-global-environment-path-julia-on-hpc/122472)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 6\
**Last updated:** [November 11, 2024, 10:38am UTC](https://discourse.julialang.org/t/change-the-default-global-environment-path-julia-on-hpc/122472 "2024-11-11T10:38:40Z")

</div>

A little bit of background: I am currently working on a solution to set up Julia for grid computing where heterogeneous clusters are used (I am aware of GitHub - JuliaParallel/JUHPC: HPC setup for juliaup, julia and HPC…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=111)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=113)
