# Latest

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

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

**Page:** 641

---

## [CssMakieLayout.jl - reactive frontends with Makie](https://discourse.julialang.org/t/cssmakielayout-jl-reactive-frontends-with-makie/101842)

<div class="topic-metadata">

**Author:** [@adrianariton](https://discourse.julialang.org/u/adrianariton)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 5:19pm UTC](https://discourse.julialang.org/t/cssmakielayout-jl-reactive-frontends-with-makie/101842 "2023-07-20T17:19:09Z")

</div>

CssMakieLayout.jl Makie is great for plotting, and WGLMakie goes one step further by making the plots interactive. However, both of them lack a styling freedom that can make the science simulations and plots more user-f…

---

## [\`@fastmath\` is not applied to macros](https://discourse.julialang.org/t/fastmath-is-not-applied-to-macros/101835)

<div class="topic-metadata">

**Author:** [@Keluaa](https://discourse.julialang.org/u/Keluaa)\
**Replies:** 5\
**Last updated:** [July 20, 2023, 4:21pm UTC](https://discourse.julialang.org/t/fastmath-is-not-applied-to-macros/101835 "2023-07-20T16:21:30Z")

</div>

Today I discovered that @fastmath is not applied to inlined function calls (maybe this should be in the docs?), I understand that there is a good reason behind it. However I would have expected this to work on expressio…

---

## [Research Software Engineer in Brussels](https://discourse.julialang.org/t/research-software-engineer-in-brussels/100778)

<div class="topic-metadata">

**Author:** [@barche](https://discourse.julialang.org/u/barche)\
**Replies:** 0\
**Last updated:** [June 24, 2023, 1:01pm UTC](https://discourse.julialang.org/t/research-software-engineer-in-brussels/100778 "2023-06-24T13:01:14Z")

</div>

Hi all, The Royal Military Academy is looking for a research software engineer. We are looking for someone with a PhD diploma, and Julia experience is a plus. Tasks include assisting researchers in making optimal use of…

---

## [What are most used packages in Julia ecosystem, e.g. DataStructures and StaticArrays? And most used parts of them?](https://discourse.julialang.org/t/what-are-most-used-packages-in-julia-ecosystem-e-g-datastructures-and-staticarrays-and-most-used-parts-of-them/101787)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 3:52pm UTC](https://discourse.julialang.org/t/what-are-most-used-packages-in-julia-ecosystem-e-g-datastructures-and-staticarrays-and-most-used-parts-of-them/101787 "2023-07-20T15:52:29Z")

</div>

Can I easily with some script find out the most used packages in the Julia package ecosystem? Or anyone have a good guess? Anyway I want to comment on those two very important and much used ones. I was optimizing a star…

---

## [Good template for defining a custom type with an addition method](https://discourse.julialang.org/t/good-template-for-defining-a-custom-type-with-an-addition-method/101725)

<div class="topic-metadata">

**Author:** [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Replies:** 5\
**Last updated:** [July 20, 2023, 3:22pm UTC](https://discourse.julialang.org/t/good-template-for-defining-a-custom-type-with-an-addition-method/101725 "2023-07-20T15:22:53Z")

</div>

Hello, I’m implementing for the first time a custom type with a custom addition method (i.e. the + operator). Unless I missed something in the manual, I didn’t find a paragraph focused on the topic. After several itera…

---

## [Number of times loss function is called](https://discourse.julialang.org/t/number-of-times-loss-function-is-called/101834)

<div class="topic-metadata">

**Author:** [@T\_J](https://discourse.julialang.org/u/T_J)\
**Replies:** 4\
**Last updated:** [July 20, 2023, 3:08pm UTC](https://discourse.julialang.org/t/number-of-times-loss-function-is-called/101834 "2023-07-20T15:08:32Z")

</div>

Hi, In the Lotka-Volterra system, I have placed: function loss(θ) println("loss is called") X̂ = predict(θ) mean(abs2, Xₙ .- X̂) end losses = Float64\[\] callback = function (p, l) push!(losses, l) …

---

## [How to keep u\>0 when solving ODEs](https://discourse.julialang.org/t/how-to-keep-u-0-when-solving-odes/101824)

<div class="topic-metadata">

**Author:** [@liao2877104858](https://discourse.julialang.org/u/liao2877104858)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 3:02pm UTC](https://discourse.julialang.org/t/how-to-keep-u-0-when-solving-odes/101824 "2023-07-20T15:02:10Z")

</div>

I’m using Rodas3() to solve a stiff ODEs in Julia. du/dt = F(u). The Analytical expression of u should be positive. However, when I use julia to solve the ODE, u may be less equal 0. I suspect that the time step was too …

---

## [Reinterpret array into SMatrices of different sizes for Interpolations. Julia v0.6 vs now](https://discourse.julialang.org/t/reinterpret-array-into-smatrices-of-different-sizes-for-interpolations-julia-v0-6-vs-now/101827)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 6\
**Last updated:** [July 20, 2023, 2:32pm UTC](https://discourse.julialang.org/t/reinterpret-array-into-smatrices-of-different-sizes-for-interpolations-julia-v0-6-vs-now/101827 "2023-07-20T14:32:02Z")

</div>

Hi all, I’m trying to check whether my approach to translation something that used to work in previous julia versions is the best way to go. I have the following use case. I have values stored in a 4-dimensional array y…

---

## [JuMP raw expr input](https://discourse.julialang.org/t/jump-raw-expr-input/101795)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 2:15pm UTC](https://discourse.julialang.org/t/jump-raw-expr-input/101795 "2023-07-20T14:15:18Z")

</div>

Hi all, as far as I can see, raw Expr input is only supported for nonlinear expressions (Nonlinear Modeling · JuMP), is there some reason why it is not allowed for affine expressions?

---

## [Rolling Horizon Implementation](https://discourse.julialang.org/t/rolling-horizon-implementation/23048)

<div class="topic-metadata">

**Author:** [@Seanny123](https://discourse.julialang.org/u/Seanny123)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 2:01pm UTC](https://discourse.julialang.org/t/rolling-horizon-implementation/23048 "2023-07-20T14:01:10Z")

</div>

I have an optimization problem with a long time period (96 steps). Reading some papers \[1\]\[2\], it seems a common way to reduce the optimization time of a Mixed Integer Linear Programming problem is to use something calle…

---

## [How to resample (downscale) a one-hot encoded (boolean) raster?](https://discourse.julialang.org/t/how-to-resample-downscale-a-one-hot-encoded-boolean-raster/101828)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [July 20, 2023, 1:51pm UTC](https://discourse.julialang.org/t/how-to-resample-downscale-a-one-hot-encoded-boolean-raster/101828 "2023-07-20T13:51:10Z")

</div>

Hello, I have “one-hot” encoded a 1x1km soil category raster, so I have a raster representing a specific soil class, 0 when is not in the class, and 1 otherwise. I would now downscale it to match my actual other data a…

---

## [Problem fitting density function data](https://discourse.julialang.org/t/problem-fitting-density-function-data/97085)

<div class="topic-metadata">

**Author:** [@daro.slai](https://discourse.julialang.org/u/daro.slai)\
**Replies:** 4\
**Last updated:** [July 20, 2023, 1:43pm UTC](https://discourse.julialang.org/t/problem-fitting-density-function-data/97085 "2023-07-20T13:43:33Z")

</div>

I have a dataset from Elaad. Which looks like this: the idea is to fit a given Distribution::D to the data. I wanted to try a couple of ideas but the fit needs to handle both the bins and the probability data. I´ve…

---

## [TensorOperations.jl v4](https://discourse.julialang.org/t/tensoroperations-jl-v4/101839)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 1:26pm UTC](https://discourse.julialang.org/t/tensoroperations-jl-v4/101839 "2023-07-20T13:26:19Z")

</div>

Together with @lkdvos and @maarten\_van\_damme , I am pleased to announce version 4 of TensorOperations.jl. As a user, the main functionality provided @tensor remains mostly unchanged, but there are quite a few exciting b…

---

## [Getter function naming: Consider avoiding nouns](https://discourse.julialang.org/t/getter-function-naming-consider-avoiding-nouns/101832)

<div class="topic-metadata">

**Author:** [@stemann](https://discourse.julialang.org/u/stemann)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 12:53pm UTC](https://discourse.julialang.org/t/getter-function-naming-consider-avoiding-nouns/101832 "2023-07-20T12:53:37Z")

</div>

I am (heavily) considering judging using nouns for (exported) getter accessor functions bad practice. I’ve found myself writing structs with getter accessors named equal to the names of the fields they are getting, i.e.…

---

## [Permutedims not working on DataFrame](https://discourse.julialang.org/t/permutedims-not-working-on-dataframe/100053)

<div class="topic-metadata">

**Author:** [@mfariacastro](https://discourse.julialang.org/u/mfariacastro)\
**Replies:** 7\
**Last updated:** [July 20, 2023, 10:22am UTC](https://discourse.julialang.org/t/permutedims-not-working-on-dataframe/100053 "2023-07-20T10:22:50Z")

</div>

Hi all, I am trying to transpose a DataFrame, following what is explained here: Functions · DataFrames.jl When applying the ‘permutedims’ function, I get an error that says that this function cannot take a DataFrame as…

---

## [Julia Snail world-age issue?](https://discourse.julialang.org/t/julia-snail-world-age-issue/101829)

<div class="topic-metadata">

**Author:** [@DOT](https://discourse.julialang.org/u/DOT)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 10:07am UTC](https://discourse.julialang.org/t/julia-snail-world-age-issue/101829 "2023-07-20T10:07:12Z")

</div>

Julia Snail is amazing, I love it! Typing this into a buffer in Julia 🐌 mode, and julia-snail-send-region–ing it into a brand-new(!!) \*julia\* buffer gives a world age error for me: using Plots my\_plots = let …

---

## [Using ODE solution in NEURAL ODE](https://discourse.julialang.org/t/using-ode-solution-in-neural-ode/101788)

<div class="topic-metadata">

**Author:** [@Marco\_Nesta](https://discourse.julialang.org/u/Marco_Nesta)\
**Replies:** 6\
**Last updated:** [July 20, 2023, 9:47am UTC](https://discourse.julialang.org/t/using-ode-solution-in-neural-ode/101788 "2023-07-20T09:47:39Z")

</div>

using ComponentArrays, Lux, DiffEqFlux, DifferentialEquations, Optimization, OptimizationOptimJL, Random, Plots,OptimizationOptimisers rng = Random.default\_rng() ## Setup ODE to optimize u0 = Float32\[1.0 ; 1.0\] tspan = (…

---

## [Can't call functions from Makie](https://discourse.julialang.org/t/cant-call-functions-from-makie/101797)

<div class="topic-metadata">

**Author:** [@bitVil](https://discourse.julialang.org/u/bitVil)\
**Replies:** 4\
**Last updated:** [July 20, 2023, 9:27am UTC](https://discourse.julialang.org/t/cant-call-functions-from-makie/101797 "2023-07-20T09:27:02Z")

</div>

I am trying to follow along with the Basic Tutorial on the Makie webpage. I have Makie, GLMakie and CairoMakie installed. I tried running the following code: using CairoMakie F = Figure(backgroundcolor = :tomato) Which…

---

## [GLMakie fails to Precompile even if I Have GLFW: GLFW couldn't create an OpenGL Window](https://discourse.julialang.org/t/glmakie-fails-to-precompile-even-if-i-have-glfw-glfw-couldnt-create-an-opengl-window/101826)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 9:22am UTC](https://discourse.julialang.org/t/glmakie-fails-to-precompile-even-if-i-have-glfw-glfw-couldnt-create-an-opengl-window/101826 "2023-07-20T09:22:43Z")

</div>

I try to use GLMakie but failed: GLFW couldn’t create an OpenGL Window. I already have GLFW and OpenGL by checking through glxinfo -B I hope I can get this solved. Thanks.

---

## [Any tutorial or courses for implementing AI in Julia](https://discourse.julialang.org/t/any-tutorial-or-courses-for-implementing-ai-in-julia/101613)

<div class="topic-metadata">

**Author:** [@saampandit](https://discourse.julialang.org/u/saampandit)\
**Replies:** 8\
**Last updated:** [July 20, 2023, 7:40am UTC](https://discourse.julialang.org/t/any-tutorial-or-courses-for-implementing-ai-in-julia/101613 "2023-07-20T07:40:05Z")

</div>

Are any courses to implement AI in julia. Considering a new beginner and intermediate in Python Programming, I am not able to find resources which can give step by step on where to start.

---

## [Can we use GLPK library in GPU programming?](https://discourse.julialang.org/t/can-we-use-glpk-library-in-gpu-programming/101697)

<div class="topic-metadata">

**Author:** [@Jayesh\_Patil](https://discourse.julialang.org/u/Jayesh_Patil)\
**Replies:** 16\
**Last updated:** [July 18, 2023, 1:51pm UTC](https://discourse.julialang.org/t/can-we-use-glpk-library-in-gpu-programming/101697 "2023-07-18T13:51:38Z")

</div>

i am trying to apply constraints on array such that the element present in array which are greater than 1 and 4, are completely divisible by that element. and such elements are stored in another array. How can I do that …

---

## [Multithreading using more CPUs than expected](https://discourse.julialang.org/t/multithreading-using-more-cpus-than-expected/101599)

<div class="topic-metadata">

**Author:** [@lzxnl](https://discourse.julialang.org/u/lzxnl)\
**Replies:** 11\
**Last updated:** [July 20, 2023, 5:10am UTC](https://discourse.julialang.org/t/multithreading-using-more-cpus-than-expected/101599 "2023-07-20T05:10:57Z")

</div>

I opened a Jupyter Notebook kernel with 25 threads (threadid() prints out 25 in the beginning). I then proceed to run some code that manages to use 8900% CPU, as recorded by top on the terminal, i.e. 89 threads worth of …

---

## [Request minimum rank in LowRankApprox.jl?](https://discourse.julialang.org/t/request-minimum-rank-in-lowrankapprox-jl/99191)

<div class="topic-metadata">

**Author:** [@miles](https://discourse.julialang.org/u/miles)\
**Replies:** 3\
**Last updated:** [July 20, 2023, 2:50am UTC](https://discourse.julialang.org/t/request-minimum-rank-in-lowrankapprox-jl/99191 "2023-07-20T02:50:35Z")

</div>

I’m using the id method (interpolative decomposition or ID) from the LowRankApprox.jl package. In the algorithm I’m trying to program (a variant of the “tensor cross interpolation”, reviewed in depth in this article whic…

---

## [Makie TextBox focus](https://discourse.julialang.org/t/makie-textbox-focus/101813)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 2:06am UTC](https://discourse.julialang.org/t/makie-textbox-focus/101813 "2023-07-20T02:06:34Z")

</div>

When I create a vector of Textboxes and then click into each of them it is possible to have more than one TextBox with the .focused property set to true. This causes problems when setting .restriction. When I click on …

---

## [Excessive output truncated](https://discourse.julialang.org/t/excessive-output-truncated/101812)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 12:46am UTC](https://discourse.julialang.org/t/excessive-output-truncated/101812 "2023-07-20T00:46:38Z")

</div>

Hi I am using gridap for topology optimization but after 4 iterations it says’ Excessive output truncated after 551767 bytes.’ how can i solve this? ( i am not using any optimization algorithm package) thank you

---

## [Code\_errortype: Error if code\_warntype shows red](https://discourse.julialang.org/t/code-errortype-error-if-code-warntype-shows-red/101809)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 11:27pm UTC](https://discourse.julialang.org/t/code-errortype-error-if-code-warntype-shows-red/101809 "2023-07-19T23:27:38Z")

</div>

I was thinking about the Appendix with JET.jl of the Rust vs Julia in scientific computing blog, and I started wondering if we could create a code\_errortype or @code\_errortype that errors if @code\_warntype would display …

---

## [Annotate outside of plot](https://discourse.julialang.org/t/annotate-outside-of-plot/101696)

<div class="topic-metadata">

**Author:** [@James\_Fernandez](https://discourse.julialang.org/u/James_Fernandez)\
**Replies:** 4\
**Last updated:** [July 19, 2023, 10:53pm UTC](https://discourse.julialang.org/t/annotate-outside-of-plot/101696 "2023-07-19T22:53:01Z")

</div>

Hello to all, I would like to make some latex annotations in julia’s Plots with gr backend outside of the plot area. I have this example: using Plots, LaTeXStrings gr() a = 3 x = collect(0:0.01:10) y = sin.(a\*x) pl…

---

## [Distributed Array Optimization](https://discourse.julialang.org/t/distributed-array-optimization/101807)

<div class="topic-metadata">

**Author:** [@Brian\_Makin](https://discourse.julialang.org/u/Brian_Makin)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 9:27pm UTC](https://discourse.julialang.org/t/distributed-array-optimization/101807 "2023-07-19T21:27:39Z")

</div>

I’ve got a distributed array split across a bunch of workers. Each worker grabs portions of the distributed array (which creates subarrays) they processes their local part while accessing those subarrays. Two question…

---

## [Non-hyperlink in method docstring (Documentor.jl issue?)](https://discourse.julialang.org/t/non-hyperlink-in-method-docstring-documentor-jl-issue/101803)

<div class="topic-metadata">

**Author:** [@bensetterholm](https://discourse.julialang.org/u/bensetterholm)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 8:52pm UTC](https://discourse.julialang.org/t/non-hyperlink-in-method-docstring-documentor-jl-issue/101803 "2023-07-19T20:52:16Z")

</div>

I have a particular case where I would like to include some text in square brackets followed by a parenthetical statement within a custom type’s docstring. Something along the lines of: """ foo # Fields: - \`bar\`: e…

---

## [Calculating the 3d volume between arbitrary planes](https://discourse.julialang.org/t/calculating-the-3d-volume-between-arbitrary-planes/101793)

<div class="topic-metadata">

**Author:** [@Gavin\_Held](https://discourse.julialang.org/u/Gavin_Held)\
**Replies:** 8\
**Last updated:** [July 19, 2023, 8:39pm UTC](https://discourse.julialang.org/t/calculating-the-3d-volume-between-arbitrary-planes/101793 "2023-07-19T20:39:10Z")

</div>

Hello, So I am trying to find an efficient way to calculate the volume between planes (e.g. the ones in the image). The planes are not parallel with one another, and I have not found any resources online that have be…

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

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