# Latest

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

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

**Page:** 763

---

## [LanguageServer.jl and Emacs 28/29](https://discourse.julialang.org/t/languageserver-jl-and-emacs-28-29/85401)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 11:43am UTC](https://discourse.julialang.org/t/languageserver-jl-and-emacs-28-29/85401 "2023-03-06T11:43:48Z")

</div>

Hi. I use emacs for coding in Julia (and almost all other stuff), really happy with it. However, when I try to upgrade my emacs 27.1 to version 28 or 29, the lsp-mode stops working! The problem seems to be about Language…

---

## [Is there a list of Pkg servers available?](https://discourse.julialang.org/t/is-there-a-list-of-pkg-servers-available/95598)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [March 6, 2023, 11:31am UTC](https://discourse.julialang.org/t/is-there-a-list-of-pkg-servers-available/95598 "2023-03-06T11:31:03Z")

</div>

Currently, the Indian package server doesn’t seem to be up: pkg\> add FFTW ┌ Warning: could not download https://pkg.julialang.org/registries │ exception = RequestError: HTTP/2 301 (Could not resolve host: in.pkg.julia…

---

## [Unit testing of MTK sub-models](https://discourse.julialang.org/t/unit-testing-of-mtk-sub-models/95558)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 11:29am UTC](https://discourse.julialang.org/t/unit-testing-of-mtk-sub-models/95558 "2023-03-06T11:29:12Z")

</div>

Hello. I am curious about the expected behavior of MTK when composing large models from sub-models. I’m hoping to better identify and understand which sub-models I’ve designed poorly. Questions : Sometimes when I ma…

---

## [Find/Implement Leapfrog method in DifferentialEquations/OrdinaryDiffEq](https://discourse.julialang.org/t/find-implement-leapfrog-method-in-differentialequations-ordinarydiffeq/95595)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 11:23am UTC](https://discourse.julialang.org/t/find-implement-leapfrog-method-in-differentialequations-ordinarydiffeq/95595 "2023-03-06T11:23:59Z")

</div>

I am taking a class on computational physics. Instead of implementing everything myself, I figured I should use (and learn to use) existing frameworks. One of the class problems involves using Leapfrog integration (Wiki…

---

## [Makie:When should we use @lift macro?](https://discourse.julialang.org/t/makie-when-should-we-use-lift-macro/95597)

<div class="topic-metadata">

**Author:** [@jack\_lee](https://discourse.julialang.org/u/jack_lee)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 10:54am UTC](https://discourse.julialang.org/t/makie-when-should-we-use-lift-macro/95597 "2023-03-06T10:54:48Z")

</div>

if we want to change the line’s shape based on time,we can use @lift to track the time, like this: time = Observable(0.0) xs = range(0, 7, length=40) ys\_1 = @lift(sin.(xs .- $time)) # if I change this to \`ys\_1 …

---

## [Deploying versioned documentation on GitLab with Documenter.jl](https://discourse.julialang.org/t/deploying-versioned-documentation-on-gitlab-with-documenter-jl/95533)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 4\
**Last updated:** [March 6, 2023, 10:50am UTC](https://discourse.julialang.org/t/deploying-versioned-documentation-on-gitlab-with-documenter-jl/95533 "2023-03-06T10:50:23Z")

</div>

One of the things I start to use more and more are private Julia registries, which are really easy to set up and make it much easier to deploy packages which are very experiment specific and not worth to pollute the gene…

---

## [Outage: Julia package server offline \[resolved\]](https://discourse.julialang.org/t/outage-julia-package-server-offline-resolved/95599)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 10:40am UTC](https://discourse.julialang.org/t/outage-julia-package-server-offline-resolved/95599 "2023-03-06T10:40:10Z")

</div>

Status: Resolved Description Around 2023-03-06T08:16:00Z (UTC) the DNS resolver for the package servers went offline. Mitigation As a temporary measure we are resolving the DNS names for the pkgservers directly. This mi…

---

## [About dot notation for pre-allocated values a .= f.(x)](https://discourse.julialang.org/t/about-dot-notation-for-pre-allocated-values-a-f-x/95563)

<div class="topic-metadata">

**Author:** [@Nayunis](https://discourse.julialang.org/u/Nayunis)\
**Replies:** 17\
**Last updated:** [March 6, 2023, 10:20am UTC](https://discourse.julialang.org/t/about-dot-notation-for-pre-allocated-values-a-f-x/95563 "2023-03-06T10:20:44Z")

</div>

Hi! This is maybe a bit of a random question, so I hope that this is the right place to ask it - my apologies if not. In the Manual in the section about Pre-allocating outputs under the Performance tips (Pre-allocating …

---

## [Makie: How to save images as CMYK?](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424)

<div class="topic-metadata">

**Author:** [@Katamari](https://discourse.julialang.org/u/Katamari)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 9:56am UTC](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424 "2023-03-06T09:56:46Z")

</div>

I make images using Makie and save them as follows: save(“myimage.pdf”, fig) I don’t know whether this line saves the image as RGB or CMYK. I want to save as CMYK. How to do it?

---

## [Help me process this data in parallel](https://discourse.julialang.org/t/help-me-process-this-data-in-parallel/95562)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 6\
**Last updated:** [March 6, 2023, 9:27am UTC](https://discourse.julialang.org/t/help-me-process-this-data-in-parallel/95562 "2023-03-06T09:27:01Z")

</div>

Hi everyone. I have a simple function that turns each row of a matrix into a seismic trace (Seis.jl format) and filter it. Can you guys help me turn this into a parallel function? Like several cores filtering one trace…

---

## [Speculations about the default environment (or a new draft environment)](https://discourse.julialang.org/t/speculations-about-the-default-environment-or-a-new-draft-environment/78967)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 97\
**Last updated:** [March 6, 2023, 8:33am UTC](https://discourse.julialang.org/t/speculations-about-the-default-environment-or-a-new-draft-environment/78967 "2023-03-06T08:33:35Z")

</div>

The way the default environment works is somewhat confusing and, I think, unsatisfactory. Most users, except package developers well versed in development workflows, will always use packages by installing them in the def…

---

## [Cannot use the persistent julia session in vscode](https://discourse.julialang.org/t/cannot-use-the-persistent-julia-session-in-vscode/95594)

<div class="topic-metadata">

**Author:** [@chisei\_minamoto](https://discourse.julialang.org/u/chisei_minamoto)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 7:40am UTC](https://discourse.julialang.org/t/cannot-use-the-persistent-julia-session-in-vscode/95594 "2023-03-06T07:40:41Z")

</div>

Hi everyone, I cannot seem to use the persistent julia session in vscode extension through ssh server. Per this Remote Development · Julia in VS Code (julia-vscode.org), I’d like to open a persistent julia session in v…

---

## [Using Julia on Cluster](https://discourse.julialang.org/t/using-julia-on-cluster/95592)

<div class="topic-metadata">

**Author:** [@legendaryh](https://discourse.julialang.org/u/legendaryh)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 7:37am UTC](https://discourse.julialang.org/t/using-julia-on-cluster/95592 "2023-03-06T07:37:11Z")

</div>

I am new to HPC. I am trying to run Julia on a cluster that uses slurm, but there’s no julia module pre-installed in it. Although I have installed Julia in my directory, I don’t know how to write the sbatch file that cal…

---

## [\[ANN\] BondGraphs.jl - Bond graph modelling framework in Julia](https://discourse.julialang.org/t/ann-bondgraphs-jl-bond-graph-modelling-framework-in-julia/95589)

<div class="topic-metadata">

**Author:** [@jedforrest](https://discourse.julialang.org/u/jedforrest)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 5:31am UTC](https://discourse.julialang.org/t/ann-bondgraphs-jl-bond-graph-modelling-framework-in-julia/95589 "2023-03-06T05:31:18Z")

</div>

I have been working on and just officially released BondGraphs.jl, a Julia implementation of the bond graph framework. Bond graphs are an energy-based modelling framework that describe energy flow through a physical syst…

---

## [Registering user-defined functions in JuMP for mixed-integer non-linear programming](https://discourse.julialang.org/t/registering-user-defined-functions-in-jump-for-mixed-integer-non-linear-programming/95522)

<div class="topic-metadata">

**Author:** [@gmantegazza](https://discourse.julialang.org/u/gmantegazza)\
**Replies:** 4\
**Last updated:** [March 6, 2023, 5:13am UTC](https://discourse.julialang.org/t/registering-user-defined-functions-in-jump-for-mixed-integer-non-linear-programming/95522 "2023-03-06T05:13:56Z")

</div>

Hello everyone, I have been a Julia user for some years now and I really love JuMP, however I am finding particularly difficult setting up a NLobjective in a mixed-integer program with linear constraints which correspon…

---

## [How to Return the Roots from IntervalRootFinding.jl in pi terms?](https://discourse.julialang.org/t/how-to-return-the-roots-from-intervalrootfinding-jl-in-pi-terms/95566)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [March 6, 2023, 5:00am UTC](https://discourse.julialang.org/t/how-to-return-the-roots-from-intervalrootfinding-jl-in-pi-terms/95566 "2023-03-06T05:00:40Z")

</div>

Hi all, I want to know how to make the roots computed by IntervalRootFinding returned in \\pi terms instead of decimals / float value / numeric term ? using SymPy, IntervalArithmetic, IntervalRootFinding @syms x v1(x) …

---

## [Appel F1 implementation in Julia?](https://discourse.julialang.org/t/appel-f1-implementation-in-julia/95587)

<div class="topic-metadata">

**Author:** [@LolianSh](https://discourse.julialang.org/u/LolianSh)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 3:35am UTC](https://discourse.julialang.org/t/appel-f1-implementation-in-julia/95587 "2023-03-06T03:35:45Z")

</div>

Hi, do you guys know if there is any impelemntation of the Appel hypergeometric function in Julia? AppellF1\[a, b1, b2, c, x, y\] I had a look into HypergeometricFunctions.jl, but only found the implementation of Gauss’s…

---

## [Enzyme modifies my objective function after computing a gradient?](https://discourse.julialang.org/t/enzyme-modifies-my-objective-function-after-computing-a-gradient/95219)

<div class="topic-metadata">

**Author:** [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 3:14am UTC](https://discourse.julialang.org/t/enzyme-modifies-my-objective-function-after-computing-a-gradient/95219 "2023-03-06T03:14:06Z")

</div>

Hi, I’m trying to use Enzyme.jl to compute gradients for a nonlinear least squares objective function I’d like to optimize for data assimilation (to my understanding this is equivalent to what is known as weak 4DVar). T…

---

## [Bayesian Optimization - package issues](https://discourse.julialang.org/t/bayesian-optimization-package-issues/95586)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [March 5, 2023, 11:00pm UTC](https://discourse.julialang.org/t/bayesian-optimization-package-issues/95586 "2023-03-05T23:00:52Z")

</div>

I am trying to use bayesian optimization for the parameter tuning of a PID controller. One simulation that gives me a performance measurement of the settings takes about 8s. The following code works: using BayesOpt con…

---

## [Artifact issue while containerising application on Google cloud build](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503)

<div class="topic-metadata">

**Author:** [@mdsa3d](https://discourse.julialang.org/u/mdsa3d)\
**Replies:** 4\
**Last updated:** [March 5, 2023, 8:10pm UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503 "2023-03-05T20:10:55Z")

</div>

Hi, I have been facing Julia artifacts error while trying to deploy a Julia application on google cloud build. The application works fine normally and even after dockerizing locally. But for some reason on GCP, it fails …

---

## [Polyeig in Nepack slower than Matlab equivalent - type inference issues?](https://discourse.julialang.org/t/polyeig-in-nepack-slower-than-matlab-equivalent-type-inference-issues/95579)

<div class="topic-metadata">

**Author:** [@Niall\_hanevy](https://discourse.julialang.org/u/Niall_hanevy)\
**Replies:** 5\
**Last updated:** [March 5, 2023, 7:35pm UTC](https://discourse.julialang.org/t/polyeig-in-nepack-slower-than-matlab-equivalent-type-inference-issues/95579 "2023-03-05T19:35:53Z")

</div>

From profiling my code in Malab and Julia roughly 97% of the time is spent in polyeig for Julia compared to ~ 85% for Matlab. I think it is due to a type inference error MWE using NonlinearEigenproblems using Traceur …

---

## [StaticArrayInterface does not have LinearAlgebra in its dependencies](https://discourse.julialang.org/t/staticarrayinterface-does-not-have-linearalgebra-in-its-dependencies/95548)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [March 5, 2023, 7:22pm UTC](https://discourse.julialang.org/t/staticarrayinterface-does-not-have-linearalgebra-in-its-dependencies/95548 "2023-03-05T19:22:52Z")

</div>

When running the script bin/create\_sys\_image from the package GitHub - aenarete/KiteControllers.jl: Controllers for airborne wind energy systems I get the following error: ✔ \[07m:06s\] PackageCompiler: compiling incremen…

---

## [When to Use An Interface ("Base-like") Package](https://discourse.julialang.org/t/when-to-use-an-interface-base-like-package/95580)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 1\
**Last updated:** [March 5, 2023, 6:49pm UTC](https://discourse.julialang.org/t/when-to-use-an-interface-base-like-package/95580 "2023-03-05T18:49:35Z")

</div>

I’m uncertain as to at what point when developing a package it’s worth splitting things up into a “base” package containing the interface(s)/api + abstract types, and a “primary” package containing concrete types and imp…

---

## [Construct already completed task](https://discourse.julialang.org/t/construct-already-completed-task/95577)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 0\
**Last updated:** [March 5, 2023, 3:03pm UTC](https://discourse.julialang.org/t/construct-already-completed-task/95577 "2023-03-05T15:03:35Z")

</div>

What’s the best way to construct a Task which has already completed? My current best shot is t = @async nothing wait(t) but this feels both clumsy and inefficient. The use case is that I would like to have a backgroun…

---

## [VSCode -- insert local image in Jupyter Markdown?](https://discourse.julialang.org/t/vscode-insert-local-image-in-jupyter-markdown/95373)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [March 5, 2023, 1:39pm UTC](https://discourse.julialang.org/t/vscode-insert-local-image-in-jupyter-markdown/95373 "2023-03-05T13:39:08Z")

</div>

I’m trying to insert images in markdown sections of a Jupyter notebook in the VSCode editor. This used to work when I opened the file in a browser. Here is my statement: \<img src="../figs/WaveNet-1.png" width=400px heig…

---

## [Build a Hybrid Neural Network using Flux](https://discourse.julialang.org/t/build-a-hybrid-neural-network-using-flux/94349)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 15\
**Last updated:** [March 5, 2023, 12:41pm UTC](https://discourse.julialang.org/t/build-a-hybrid-neural-network-using-flux/94349 "2023-03-05T12:41:01Z")

</div>

When using Flux.jl to build neural network, I want to build a hybrid NN. I found \[Flux.PairwiseFusion\] (Built-in Layers · Flux) can meet my need. But when I train the NN: using Flux using Statistics using Flux: train!…

---

## [DynamicalSystems.jl v3](https://discourse.julialang.org/t/dynamicalsystems-jl-v3/95266)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 24\
**Last updated:** [March 5, 2023, 11:52am UTC](https://discourse.julialang.org/t/dynamicalsystems-jl-v3/95266 "2023-03-05T11:52:51Z")

</div>

DynamicalSystems.jl v3.0 Super duper major update that has just been tagged! :slight\_smile: It has been a long time and a lot of hard work, but I can already see it was worth it :') In the remaining of March I’ll spend…

---

## [Find the index of minimum in a vector of vectors of vectors](https://discourse.julialang.org/t/find-the-index-of-minimum-in-a-vector-of-vectors-of-vectors/95571)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 7\
**Last updated:** [March 5, 2023, 10:00am UTC](https://discourse.julialang.org/t/find-the-index-of-minimum-in-a-vector-of-vectors-of-vectors/95571 "2023-03-05T10:00:04Z")

</div>

I think my problem is fairly simple. a = \[\[1,2\], \[3,4,5\], 10\] b = \[\[2,3\], \[4,5,6\], 1\] c = \[a,b\] I want to find the index where the last element is the smallest. In the example, the value is 1, and it should return 2. …

---

## [TextFormats parser generator](https://discourse.julialang.org/t/textformats-parser-generator/95505)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 5\
**Last updated:** [March 5, 2023, 9:31am UTC](https://discourse.julialang.org/t/textformats-parser-generator/95505 "2023-03-05T09:31:47Z")

</div>

Came across this library: GitHub - ggonnella/textformats and paper: TextFormats: Simplifying the definition and parsing of text formats in bioinformatics They define a way to describe a text-based file format (like FAST…

---

## [Convert Date Values to Dates.DateTime](https://discourse.julialang.org/t/convert-date-values-to-dates-datetime/95541)

<div class="topic-metadata">

**Author:** [@lukas\_r](https://discourse.julialang.org/u/lukas_r)\
**Replies:** 2\
**Last updated:** [March 5, 2023, 7:12am UTC](https://discourse.julialang.org/t/convert-date-values-to-dates-datetime/95541 "2023-03-05T07:12:04Z")

</div>

I have date information coming from a sensor thats formatted as i = 8304.621828703705. Is there a way to easily convert this to a DateTime? I can get a Date (yy-mm-dd) out of it using Date(Dates.UTD(round(i))), however I…

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

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