# Latest

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

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

**Page:** 572

---

## [PyPlot vmin and vmax equivalent in Makie?](https://discourse.julialang.org/t/pyplot-vmin-and-vmax-equivalent-in-makie/105276)

<div class="topic-metadata">

**Author:** [@jddorellanao](https://discourse.julialang.org/u/jddorellanao)\
**Replies:** 1\
**Last updated:** [October 22, 2023, 11:54am UTC](https://discourse.julialang.org/t/pyplot-vmin-and-vmax-equivalent-in-makie/105276 "2023-10-22T11:54:02Z")

</div>

In PyPlot.jl when plotting a 2D matrix using imshow() you can set vmin and vmax wich acording to the official documentation: " vmin and vmax define the data range that the colormap covers." Using this package I create t…

---

## [Customizing Makie rectangle zoom mouse interaction and axis limits](https://discourse.julialang.org/t/customizing-makie-rectangle-zoom-mouse-interaction-and-axis-limits/104448)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 8\
**Last updated:** [October 21, 2023, 3:47pm UTC](https://discourse.julialang.org/t/customizing-makie-rectangle-zoom-mouse-interaction-and-axis-limits/104448 "2023-10-21T15:47:52Z")

</div>

I am trying to create a Makie dashboard where several axes (e.g. x-y, t-z) with the same data points will update simultaneously based on the mouse selection of data in any of the axes. I made an observable, selection\[\],…

---

## [Best way to count element pairs (x,y) satisfying a condition?](https://discourse.julialang.org/t/best-way-to-count-element-pairs-x-y-satisfying-a-condition/105264)

<div class="topic-metadata">

**Author:** [@Alergy](https://discourse.julialang.org/u/Alergy)\
**Replies:** 19\
**Last updated:** [October 22, 2023, 10:42am UTC](https://discourse.julialang.org/t/best-way-to-count-element-pairs-x-y-satisfying-a-condition/105264 "2023-10-22T10:42:00Z")

</div>

Hello everyone! I was trying to optimize the following MWE: using BenchmarkTools N = 2^20 a = rand(N); b = rand(N); @btime count(a+b .\< 1) 2.492 ms (9 allocations: 8.13 MiB) This seems to be allocating memory for a …

---

## [NLOPT While loop problem](https://discourse.julialang.org/t/nlopt-while-loop-problem/104882)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 14\
**Last updated:** [October 22, 2023, 1:41am UTC](https://discourse.julialang.org/t/nlopt-while-loop-problem/104882 "2023-10-22T01:41:23Z")

</div>

Hi All, I am using gridap for topology optimization. I have defined function of optimization using MMA as below using NLopt function gf\_p\_optimize(p\_init; r, β, η, TOL = 1e-4, fem\_params) ##################### Opti…

---

## [Import pretrained Keras model in Julia for inference](https://discourse.julialang.org/t/import-pretrained-keras-model-in-julia-for-inference/104924)

<div class="topic-metadata">

**Author:** [@dubosipsl](https://discourse.julialang.org/u/dubosipsl)\
**Replies:** 6\
**Last updated:** [October 21, 2023, 9:43pm UTC](https://discourse.julialang.org/t/import-pretrained-keras-model-in-julia-for-inference/104924 "2023-10-21T21:43:02Z")

</div>

Hello all, I have trained a model in Python/Keras. What is the recommended way with the present Julia ML ecosystem to save it to disk and load it in Julia to do inference (no training) ? A similar question was asked in…

---

## [Optim.jl + adding constraints](https://discourse.julialang.org/t/optim-jl-adding-constraints/51861)

<div class="topic-metadata">

**Author:** [@jovansam](https://discourse.julialang.org/u/jovansam)\
**Replies:** 7\
**Last updated:** [October 21, 2023, 6:54pm UTC](https://discourse.julialang.org/t/optim-jl-adding-constraints/51861 "2023-10-21T18:54:28Z")

</div>

I want to add equality constraints to Optim.jl (not just a box-constrained optimization). My understanding is that there were plans to add this feature. Does anybody know if this stalled? This package I see was intende…

---

## [Course about creating reports with julia](https://discourse.julialang.org/t/course-about-creating-reports-with-julia/87570)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 18\
**Last updated:** [October 21, 2023, 3:17pm UTC](https://discourse.julialang.org/t/course-about-creating-reports-with-julia/87570 "2023-10-21T15:17:34Z")

</div>

I create a little walked example through the julia package landscape for creating \\LaTeX - reports with julia. This course is targeted at physics students needing to write reports about physical experiments, but might a…

---

## [LUX LSTM network with multiple inputs](https://discourse.julialang.org/t/lux-lstm-network-with-multiple-inputs/105072)

<div class="topic-metadata">

**Author:** [@Mak](https://discourse.julialang.org/u/Mak)\
**Replies:** 4\
**Last updated:** [October 21, 2023, 9:58am UTC](https://discourse.julialang.org/t/lux-lstm-network-with-multiple-inputs/105072 "2023-10-21T09:58:56Z")

</div>

Can anyone help me in using LSTM to predict temperature? I have four input features and I want to predict the temperature in the future using Random, Statistics, CSV, DataFrames, MLDatasets, ComponentArrays, DataInterpo…

---

## [\[diffeqpy\] with sparse mass-matrix / jacobian](https://discourse.julialang.org/t/diffeqpy-with-sparse-mass-matrix-jacobian/91984)

<div class="topic-metadata">

**Author:** [@ChrisProv](https://discourse.julialang.org/u/ChrisProv)\
**Replies:** 2\
**Last updated:** [October 21, 2023, 1:44pm UTC](https://discourse.julialang.org/t/diffeqpy-with-sparse-mass-matrix-jacobian/91984 "2023-10-21T13:44:59Z")

</div>

Hello, I have a moderately-complex Python script which involves a DAE system solve at its core: M(u) dudt = F(u) The matrices M and J (the Jacobian of F(x)) are both sparse, and I need to exploit for this large system…

---

## [How can I add Latex directly into Weave.jl .jmd file?](https://discourse.julialang.org/t/how-can-i-add-latex-directly-into-weave-jl-jmd-file/105266)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [October 21, 2023, 12:03pm UTC](https://discourse.julialang.org/t/how-can-i-add-latex-directly-into-weave-jl-jmd-file/105266 "2023-10-21T12:03:57Z")

</div>

Hi! I am trying to reference a figure I made using \\cref{fig:myfig} but it keeps on formatting my string no matter what I do… Anyone knows how? Kind regards

---

## [Unifying unwrapping single-value wrappers](https://discourse.julialang.org/t/unifying-unwrapping-single-value-wrappers/105003)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 56\
**Last updated:** [October 21, 2023, 8:20am UTC](https://discourse.julialang.org/t/unifying-unwrapping-single-value-wrappers/105003 "2023-10-21T08:20:43Z")

</div>

I am stumbling upon that there does not exist a unified method to unwrap a singleton container. This is a feature often wanted, but Julia misses this so far. Some types don’t even have a single unwrapper. I want to sugg…

---

## [Drop rows of an array containing missing values](https://discourse.julialang.org/t/drop-rows-of-an-array-containing-missing-values/105258)

<div class="topic-metadata">

**Author:** [@ultratrader](https://discourse.julialang.org/u/ultratrader)\
**Replies:** 2\
**Last updated:** [October 21, 2023, 7:39am UTC](https://discourse.julialang.org/t/drop-rows-of-an-array-containing-missing-values/105258 "2023-10-21T07:39:36Z")

</div>

Hi guys, I want to drop rows containing missing values in an array. I can do this by converting the array to a df, and then using the skipmissing function from DataFrames.jl but I prefer to operate on an array rather th…

---

## [MLJ NuSVM predict function not found](https://discourse.julialang.org/t/mlj-nusvm-predict-function-not-found/105148)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 3\
**Last updated:** [October 21, 2023, 3:01am UTC](https://discourse.julialang.org/t/mlj-nusvm-predict-function-not-found/105148 "2023-10-21T03:01:02Z")

</div>

I’m having an issue using MLJ NuSVR model. From the docs this should be working. NuSVR = @load NuSVR pkg=LIBSVM model = NuSVR(kernel=LIBSVM.Kernel.RadialBasis) # SVMRegressor = @load SVMRegressor…

---

## [Derived keys for indexing into JuMP containers](https://discourse.julialang.org/t/derived-keys-for-indexing-into-jump-containers/105205)

<div class="topic-metadata">

**Author:** [@thevolatilebit](https://discourse.julialang.org/u/thevolatilebit)\
**Replies:** 5\
**Last updated:** [October 21, 2023, 1:38am UTC](https://discourse.julialang.org/t/derived-keys-for-indexing-into-jump-containers/105205 "2023-10-21T01:38:19Z")

</div>

I am seeking to better understand JuMP’s indexing functionality. As I understand it, when a set of decision variables or constraints in a container is created, JuMP automatically uses the elements of the set as the index…

---

## [How to control options for displaying table in Weave.jl?](https://discourse.julialang.org/t/how-to-control-options-for-displaying-table-in-weave-jl/105256)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [October 21, 2023, 1:17am UTC](https://discourse.julialang.org/t/how-to-control-options-for-displaying-table-in-weave-jl/105256 "2023-10-21T01:17:34Z")

</div>

Hello! I’ve been playing a bit with Weave.jl tonight and found it very fun to use! I tried to do a table though, and I must admit: I did struggle quite a bit. Basically it does work if one does; using DataFrames DataF…

---

## [Memory leak with a distributed code](https://discourse.julialang.org/t/memory-leak-with-a-distributed-code/103754)

<div class="topic-metadata">

**Author:** [@chedy](https://discourse.julialang.org/u/chedy)\
**Replies:** 2\
**Last updated:** [October 21, 2023, 1:16am UTC](https://discourse.julialang.org/t/memory-leak-with-a-distributed-code/103754 "2023-10-21T01:16:57Z")

</div>

Hello everyone, I’m working on an algorithm that computes 8 corpus linguistic measures that capture association between words (for short) and then merges the words that score highest in each iteration. I’m writing the a…

---

## [\[ANN\] Announcing LFUDACache.jl](https://discourse.julialang.org/t/ann-announcing-lfudacache-jl/105254)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 0\
**Last updated:** [October 21, 2023, 12:09am UTC](https://discourse.julialang.org/t/ann-announcing-lfudacache-jl/105254 "2023-10-21T00:09:33Z")

</div>

Implementation of the LFU-group of caching algorithms. Now, LFU-DA is now one of the most efficient caching algorithms for web-related tasks. The package provides a thread-safe in-memory implementation of the Least Freq…

---

## [2D Interpolation on an irregular grid](https://discourse.julialang.org/t/2d-interpolation-on-an-irregular-grid/105247)

<div class="topic-metadata">

**Author:** [@k\_j](https://discourse.julialang.org/u/k_j)\
**Replies:** 8\
**Last updated:** [October 20, 2023, 10:53pm UTC](https://discourse.julialang.org/t/2d-interpolation-on-an-irregular-grid/105247 "2023-10-20T22:53:52Z")

</div>

I want to do 2D interpolation on an irregular grid. In particular, I have a function f:\\mathbb R^2 \\rightarrow \\mathbb R, (x, y) \\mapsto z. I have an irregular grid D = (x\_i, y\_i)\_i as well as the corresponding values F…

---

## [Plot Dirichlet distributions](https://discourse.julialang.org/t/plot-dirichlet-distributions/105155)

<div class="topic-metadata">

**Author:** [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 11:30pm UTC](https://discourse.julialang.org/t/plot-dirichlet-distributions/105155 "2023-10-20T23:30:40Z")

</div>

using Distributions, GLMakie, Random, Pipe Random.seed!(232) # 1. define params array vecs = \[\[0.1,0.1,0.1\],\[0.2,0.2,0.2\],\[1, 1, 1\], \[2, 2, 2\], \[6, 6, 6\], \[10, 10, 10\],\[20,20,20\],\[50,50,50\],\[100,100,100\]\] #2. sampling…

---

## [\[ANN\] Announcing PlotlyLight.jl](https://discourse.julialang.org/t/ann-announcing-plotlylight-jl/76549)

<div class="topic-metadata">

**Author:** [@joshday](https://discourse.julialang.org/u/joshday)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 10:34am UTC](https://discourse.julialang.org/t/ann-announcing-plotlylight-jl/76549 "2022-02-16T10:34:06Z")

</div>

Hey all! I’d like to share a lightweight interface to create Plotly.js plots from Julia: Since Plotly plots are generated from 3 JSON objects (data, layout, and config), we simply JSON3.write some EasyConfig.Configs a…

---

## [Ordering labels across subplots](https://discourse.julialang.org/t/ordering-labels-across-subplots/105251)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 3\
**Last updated:** [October 20, 2023, 10:11pm UTC](https://discourse.julialang.org/t/ordering-labels-across-subplots/105251 "2023-10-20T22:11:15Z")

</div>

Hi, I would like to add the same label to two subplots. In the example below, the densities and colors are correct, but the label should be 1 2 3 4 for each subplot. Is there a way to correct this issue? Thanks! using…

---

## [Help with modifying SciML Missing Physics UDE example](https://discourse.julialang.org/t/help-with-modifying-sciml-missing-physics-ude-example/104773)

<div class="topic-metadata">

**Author:** [@BenWhip](https://discourse.julialang.org/u/BenWhip)\
**Replies:** 2\
**Last updated:** [October 20, 2023, 10:04pm UTC](https://discourse.julialang.org/t/help-with-modifying-sciml-missing-physics-ude-example/104773 "2023-10-20T22:04:02Z")

</div>

Hello all, I’ve made some minor modifications to the code from Automatically Discover Missing Physics by Embedding Machine Learning into Differential Equations · Overview of Julia's SciML My goal is to expose unknown p…

---

## [General Package Manager getting the Repo URL and license](https://discourse.julialang.org/t/general-package-manager-getting-the-repo-url-and-license/105192)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 6\
**Last updated:** [October 20, 2023, 9:31pm UTC](https://discourse.julialang.org/t/general-package-manager-getting-the-repo-url-and-license/105192 "2023-10-20T21:31:19Z")

</div>

In an earlier version of the package manager, I had written a tool, which could take all of the Packages I had installed, and generate an excel spreadsheet which included the package, the version, the repo url and the li…

---

## [Error with PythonCall.jl and SimpleITK on Julia 1.9 but works on beta (1.10)](https://discourse.julialang.org/t/error-with-pythoncall-jl-and-simpleitk-on-julia-1-9-but-works-on-beta-1-10/105250)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 8:45pm UTC](https://discourse.julialang.org/t/error-with-pythoncall-jl-and-simpleitk-on-julia-1-9-but-works-on-beta-1-10/105250 "2023-10-20T20:45:49Z")

</div>

When I try to load SimpleITK via PythonCall.jl on windows, I am running into a new error. This is not a problem on Mac or Linux. This does not error when working on the current beta (1.10). I also have a public link here …

---

## [Why can you write \`r\[1\]\` if \`r\` is a number?](https://discourse.julialang.org/t/why-can-you-write-r-1-if-r-is-a-number/105229)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 4\
**Last updated:** [October 20, 2023, 7:55pm UTC](https://discourse.julialang.org/t/why-can-you-write-r-1-if-r-is-a-number/105229 "2023-10-20T19:55:57Z")

</div>

I encountered an interesting bug here in OrbitalElements.jl. Essentially, writing r\[1\] returned r because r was a number (a Float64 specifically). This also works when writing numbers directly: you can write 42\[1\]. r\[:\] …

---

## [DataLoader Scope Troubles](https://discourse.julialang.org/t/dataloader-scope-troubles/105207)

<div class="topic-metadata">

**Author:** [@quietlight](https://discourse.julialang.org/u/quietlight)\
**Replies:** 5\
**Last updated:** [October 20, 2023, 7:48pm UTC](https://discourse.julialang.org/t/dataloader-scope-troubles/105207 "2023-10-20T19:48:02Z")

</div>

Hello My Flux training workflow has been a little ad hoc, but it works really well and I have trained on huge amounts of data, for me anyway (over 7 million spectrogram images). Now I need to share my pipeline with oth…

---

## [Publishing generated julia package documentation into confluence?](https://discourse.julialang.org/t/publishing-generated-julia-package-documentation-into-confluence/105248)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 7:20pm UTC](https://discourse.julialang.org/t/publishing-generated-julia-package-documentation-into-confluence/105248 "2023-10-20T19:20:05Z")

</div>

Hi, I’d like to publish documentation of some julia packages into confluence. The code lives in a local gitlab instance and the documentation should go into a local confluence instance. For Sphinx, there exists plugin.…

---

## [How to connect to SPARQL endpoint?](https://discourse.julialang.org/t/how-to-connect-to-sparql-endpoint/50415)

<div class="topic-metadata">

**Author:** [@TBu](https://discourse.julialang.org/u/TBu)\
**Replies:** 5\
**Last updated:** [October 20, 2023, 6:14pm UTC](https://discourse.julialang.org/t/how-to-connect-to-sparql-endpoint/50415 "2023-10-20T18:14:11Z")

</div>

Hello everyone, I want to do some graph analysis and my source data is accessible via a SPARQL endpoint exposed by a Jena Fuseki server. I’d like to know if there is any package like the SPARQLWrapper package for Pytho…

---

## [Test pulling down older versions of packages in Extras than it should](https://discourse.julialang.org/t/test-pulling-down-older-versions-of-packages-in-extras-than-it-should/105245)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 4:34pm UTC](https://discourse.julialang.org/t/test-pulling-down-older-versions-of-packages-in-extras-than-it-should/105245 "2023-10-20T16:34:55Z")

</div>

For some reason this stopped working after I did the last \]update. I have several plotting extensions for some home-grown packages I’m referencing. This all worked fine, but now when I run the package test from the Pro…

---

## [Implementing module, MethodError: objects of type Module are not callable](https://discourse.julialang.org/t/implementing-module-methoderror-objects-of-type-module-are-not-callable/105202)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 7\
**Last updated:** [October 20, 2023, 7:19am UTC](https://discourse.julialang.org/t/implementing-module-methoderror-objects-of-type-module-are-not-callable/105202 "2023-10-20T07:19:03Z")

</div>

I am trying to implement an R-like matrix where the columns/rows can be referred to by named indices. using Revise using Base include("nm.jl") using .NM nm = NM.NamedMatrix(zeros(3, 2), \["row1", "row2", "row3"\], \["col…

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

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