# Latest

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

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

**Page:** 577

---

## [Plotting "hierachically" organized variables](https://discourse.julialang.org/t/plotting-hierachically-organized-variables/104978)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 11:44pm UTC](https://discourse.julialang.org/t/plotting-hierachically-organized-variables/104978 "2023-10-15T23:44:38Z")

</div>

Dear community, is there an elegant/easy/concise way of plotting some y variables against an x variable, where y variables should either be divided into facets or colors, i.e. for a dataframe and defined facets: a=…

---

## [Accessing cost data in UnitCommitment.jl](https://discourse.julialang.org/t/accessing-cost-data-in-unitcommitment-jl/103510)

<div class="topic-metadata">

**Author:** [@skelly5](https://discourse.julialang.org/u/skelly5)\
**Replies:** 3\
**Last updated:** [October 15, 2023, 11:35pm UTC](https://discourse.julialang.org/t/accessing-cost-data-in-unitcommitment-jl/103510 "2023-10-15T23:35:11Z")

</div>

I’m trying to access data for generator cost in the UnitCommitment.jl. I was wondering, in matpower/case2383wp/2017-02-01, why do some of the generators (such as generators 12 and 39) have an empty cost\_segments, while o…

---

## [How does instance of a type works/interact with type parameters?](https://discourse.julialang.org/t/how-does-instance-of-a-type-works-interact-with-type-parameters/104475)

<div class="topic-metadata">

**Author:** [@EricH](https://discourse.julialang.org/u/EricH)\
**Replies:** 11\
**Last updated:** [October 15, 2023, 11:14pm UTC](https://discourse.julialang.org/t/how-does-instance-of-a-type-works-interact-with-type-parameters/104475 "2023-10-15T23:14:48Z")

</div>

Hi everyone, I am studying the code from repo ReinforcementLearningAnIntroduction.jl. In notebook Chapter01\_Tic\_Tac\_Toe.jl, there is this line that confuses me E = DefaultStateStyleEnv{Observation{Int}()}(env) Why ca…

---

## [Why does \`./=\` allocate?](https://discourse.julialang.org/t/why-does-allocate/104987)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [October 15, 2023, 10:30pm UTC](https://discourse.julialang.org/t/why-does-allocate/104987 "2023-10-15T22:30:58Z")

</div>

I have this bit of code. I managed to avoid all allocations. function compute!(csmatout, XYZ, tangents, feid, qpid) center = (0.0, 0.0, 0.0) xyz = (XYZ\[1\], XYZ\[2\], XYZ\[3\]) csmatout\[:, 1\] .= xyz .…

---

## [Solving a neoclassical growth model via PATHSolver (but solution is wrong)](https://discourse.julialang.org/t/solving-a-neoclassical-growth-model-via-pathsolver-but-solution-is-wrong/104979)

<div class="topic-metadata">

**Author:** [@jovansam](https://discourse.julialang.org/u/jovansam)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 9:51pm UTC](https://discourse.julialang.org/t/solving-a-neoclassical-growth-model-via-pathsolver-but-solution-is-wrong/104979 "2023-10-15T21:51:23Z")

</div>

Hi. I am solving the following neoclassical growth model via the PATHSolver (i.e. MCP formulation). I know the solution is wrong as consumption is unusually high and not inline with what I get from GAMS. I suspect this s…

---

## [Tasks booted to efficiency cores when not in foreground or rendered on the screen](https://discourse.julialang.org/t/tasks-booted-to-efficiency-cores-when-not-in-foreground-or-rendered-on-the-screen/104980)

<div class="topic-metadata">

**Author:** [@Di11on](https://discourse.julialang.org/u/Di11on)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 7:14pm UTC](https://discourse.julialang.org/t/tasks-booted-to-efficiency-cores-when-not-in-foreground-or-rendered-on-the-screen/104980 "2023-10-15T19:14:04Z")

</div>

Hi folks, I have discovered an issue with my 13900k based machine (I now very much regret the poor choice of a 13900k). Processes run on performance cores when the app/task is in the foreground on the screen - but whene…

---

## [Slider with Unitful.jl values](https://discourse.julialang.org/t/slider-with-unitful-jl-values/104986)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 3\
**Last updated:** [October 15, 2023, 7:12pm UTC](https://discourse.julialang.org/t/slider-with-unitful-jl-values/104986 "2023-10-15T19:12:18Z")

</div>

I know I am being dumb here… If I use a Slider from PlutoUI I cannot get it to work with Unitful.jl types. @bind mass Slider(1u"kg":100u"kg", show\_value=true) DimensionError: kg and 1 are not dimensionally compatible. …

---

## [Package trouble again](https://discourse.julialang.org/t/package-trouble-again/104977)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 1:14pm UTC](https://discourse.julialang.org/t/package-trouble-again/104977 "2023-10-15T13:14:03Z")

</div>

Hi, I posted a few days ago because I was having trouble with the package system, I resolved the problem then, but now I have an eerily similar problem and I can’t fix it. I have a package that I’ve been developing, an…

---

## [Julia & Mojo Mandelbrot Benchmark](https://discourse.julialang.org/t/julia-mojo-mandelbrot-benchmark/103638)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 56\
**Last updated:** [October 13, 2023, 3:24am UTC](https://discourse.julialang.org/t/julia-mojo-mandelbrot-benchmark/103638 "2023-10-13T03:24:39Z")

</div>

For those of you who aren’t aware, the Mojo SDK was recently released, so I thought I would take the opportunity to start benchmarking some Julia code against Mojo. As a first test, I am calculating the Mandelbrot set us…

---

## [Can I mimick finalizing for immutables / is an immutable file handler unfeasible?](https://discourse.julialang.org/t/can-i-mimick-finalizing-for-immutables-is-an-immutable-file-handler-unfeasible/104687)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 16\
**Last updated:** [October 15, 2023, 9:30am UTC](https://discourse.julialang.org/t/can-i-mimick-finalizing-for-immutables-is-an-immutable-file-handler-unfeasible/104687 "2023-10-15T09:30:20Z")

</div>

I can’t think of other uses for destructors/finalizers in a language without manual deallocations, so I’m using file-closing as an example. It seems to me that I could implement open to open a file and construct an immut…

---

## [Github workflow - ignore errors on nightly](https://discourse.julialang.org/t/github-workflow-ignore-errors-on-nightly/104968)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [October 15, 2023, 7:48am UTC](https://discourse.julialang.org/t/github-workflow-ignore-errors-on-nightly/104968 "2023-10-15T07:48:05Z")

</div>

Sometimes the tests of a package fail, not because there is a bug in the package, but because Julia nightly is broken, e.g Fixed link in developer.md · JuliaGraphics/QML.jl@5614e6a · GitHub Can I declare these failures …

---

## [Computing the preimage of count\_ones](https://discourse.julialang.org/t/computing-the-preimage-of-count-ones/104838)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 17\
**Last updated:** [October 15, 2023, 2:23am UTC](https://discourse.julialang.org/t/computing-the-preimage-of-count-ones/104838 "2023-10-15T02:23:28Z")

</div>

count\_ones(x) counts how many 1s are in the binary representation of the integer x I am looking for a function that computes the preimage of that. Or informally the inverse (but it’s not actually invertable). That is …

---

## [Julians... criticize my concept language all you want](https://discourse.julialang.org/t/julians-criticize-my-concept-language-all-you-want/104954)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [October 15, 2023, 2:14am UTC](https://discourse.julialang.org/t/julians-criticize-my-concept-language-all-you-want/104954 "2023-10-15T02:14:15Z")

</div>

Julians, heard you like new languages. Want this? This was a language I conceptualized. The idea is to make an easy language. The language is supposed to be easy to implement, easy to use, and fast. The language concep…

---

## [Incorporate a javascript library into a Genie.jl app](https://discourse.julialang.org/t/incorporate-a-javascript-library-into-a-genie-jl-app/104957)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [October 14, 2023, 10:05pm UTC](https://discourse.julialang.org/t/incorporate-a-javascript-library-into-a-genie-jl-app/104957 "2023-10-14T22:05:10Z")

</div>

How would I add the JavaScript library X6 into a Stipple app? There are no vue components for this library, just pure JavaScript. Do I have to put that into the js-methods macros e.g. @methods? Is there a way to includ…

---

## [New stdlib compat requirements - CompatHelper.jl to the rescue?!](https://discourse.julialang.org/t/new-stdlib-compat-requirements-compathelper-jl-to-the-rescue/104966)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 2\
**Last updated:** [October 14, 2023, 9:31pm UTC](https://discourse.julialang.org/t/new-stdlib-compat-requirements-compathelper-jl-to-the-rescue/104966 "2023-10-14T21:31:09Z")

</div>

In response to Will GitHub - JuliaRegistries/CompatHelper.jl: Automatically update the \[compat\] entries for your Julia package's dependencies do The Right Thing and add new compat bounds for stdlibs automatically? If n…

---

## [Visualization problem of the back side of a surface mesh](https://discourse.julialang.org/t/visualization-problem-of-the-back-side-of-a-surface-mesh/104923)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 4\
**Last updated:** [October 14, 2023, 8:54pm UTC](https://discourse.julialang.org/t/visualization-problem-of-the-back-side-of-a-surface-mesh/104923 "2023-10-14T20:54:36Z")

</div>

Hello, I have a problem with a 3D animation. This is a torus which reverses itself. The problem is that when it is reversed, it is ugly because the normals are not oriented as they should. How to solve this problem? u…

---

## [Need for explicitly defining subtypes in function arguments?](https://discourse.julialang.org/t/need-for-explicitly-defining-subtypes-in-function-arguments/104883)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 30\
**Last updated:** [October 14, 2023, 8:46pm UTC](https://discourse.julialang.org/t/need-for-explicitly-defining-subtypes-in-function-arguments/104883 "2023-10-14T20:46:46Z")

</div>

Sorry I’m very new to type systems here. I’m wondering why you need to state that your function should accept all subtypes in the class hierarchy for nodes which are defined. julia\> x = collect(1:2) 2-element Vector{In…

---

## [Overloading arithmetic operators for custom types](https://discourse.julialang.org/t/overloading-arithmetic-operators-for-custom-types/104944)

<div class="topic-metadata">

**Author:** [@evensong](https://discourse.julialang.org/u/evensong)\
**Replies:** 18\
**Last updated:** [October 14, 2023, 8:18pm UTC](https://discourse.julialang.org/t/overloading-arithmetic-operators-for-custom-types/104944 "2023-10-14T20:18:05Z")

</div>

I’m doing doing exercises on exercism.org to get familiar with Julia (most of my experience is in Python, C++, or Java). For one exercise I’ve made a custom Clock type, and I want to overload Base.show to print a timestr…

---

## [PSA: Compat requirements in the General registry are changing](https://discourse.julialang.org/t/psa-compat-requirements-in-the-general-registry-are-changing/104958)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 0\
**Last updated:** [October 14, 2023, 7:12pm UTC](https://discourse.julialang.org/t/psa-compat-requirements-in-the-general-registry-are-changing/104958 "2023-10-14T19:12:30Z")

</div>

TL;DR: Currently standard libraries have an implied version number based of the Julia version. This is changing and will require users to update their Project.toml. Update – November 9th 2023: While rolling this change …

---

## [Makie: how to remove a legend from an axis](https://discourse.julialang.org/t/makie-how-to-remove-a-legend-from-an-axis/65876)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [October 14, 2023, 6:28pm UTC](https://discourse.julialang.org/t/makie-how-to-remove-a-legend-from-an-axis/65876 "2023-10-14T18:28:22Z")

</div>

Hi, I’m making a dashboard and I’m using a lot of mutating functions to make an interactive plot that changes its content based on a menu selection. When I change the plot, I remove the former one from the axis using emp…

---

## [Calling Cantera using PyCall from within DifferentialEquations function](https://discourse.julialang.org/t/calling-cantera-using-pycall-from-within-differentialequations-function/104942)

<div class="topic-metadata">

**Author:** [@NikoBiele](https://discourse.julialang.org/u/NikoBiele)\
**Replies:** 2\
**Last updated:** [October 14, 2023, 6:14am UTC](https://discourse.julialang.org/t/calling-cantera-using-pycall-from-within-differentialequations-function/104942 "2023-10-14T06:14:27Z")

</div>

Hi, I’m trying to simulate the combustion of hydrogen using Cantera from Julia via PyCall. But I’m having trouble using PyCall from within my DifferentialEquations function. I have translated this (custom.py | Cantera) …

---

## [Matrix \* Vector randomvar in RxInfer model](https://discourse.julialang.org/t/matrix-vector-randomvar-in-rxinfer-model/104945)

<div class="topic-metadata">

**Author:** [@gvdr](https://discourse.julialang.org/u/gvdr)\
**Replies:** 0\
**Last updated:** [October 14, 2023, 3:24am UTC](https://discourse.julialang.org/t/matrix-vector-randomvar-in-rxinfer-model/104945 "2023-10-14T03:24:58Z")

</div>

Hello. I’m trying to extend one of the examples in RxInfer but hitting a wall. I’m working starting from the Gaussian Linear Dynamical System example. In particular I’m trying to generalise it so that we don’t assume t…

---

## [Why does this Python code performs three times faster than Julia?](https://discourse.julialang.org/t/why-does-this-python-code-performs-three-times-faster-than-julia/104919)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 22\
**Last updated:** [October 13, 2023, 11:59pm UTC](https://discourse.julialang.org/t/why-does-this-python-code-performs-three-times-faster-than-julia/104919 "2023-10-13T23:59:17Z")

</div>

I tried to follow basic Performance Tips, but surprisingly, my Python code does it faster than Julia. # Julia code ʋ₀::Float64 = 1.0 r₀::Float64 = 1.0 n::Int64 = 5000000 const σ::Float64 = 1.0 const ϵ::Float64 = 1.0 c…

---

## [Interpolations, between Lux Dense layers, supported?](https://discourse.julialang.org/t/interpolations-between-lux-dense-layers-supported/104938)

<div class="topic-metadata">

**Author:** [@Rohan\_Rajagopal](https://discourse.julialang.org/u/Rohan_Rajagopal)\
**Replies:** 2\
**Last updated:** [October 14, 2023, 12:37am UTC](https://discourse.julialang.org/t/interpolations-between-lux-dense-layers-supported/104938 "2023-10-14T00:37:31Z")

</div>

Greetings, one of the custom Lux models I am trying to develop requires interpolation in between, something like the following(?) which errs using DataInterpolations, Lux, Random, Zygote, Enzyme function convert\_interp…

---

## [Makie on() do block does not see a variable](https://discourse.julialang.org/t/makie-on-do-block-does-not-see-a-variable/104918)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 2\
**Last updated:** [October 13, 2023, 7:58pm UTC](https://discourse.julialang.org/t/makie-on-do-block-does-not-see-a-variable/104918 "2023-10-13T19:58:44Z")

</div>

I am in this situation: on(topbutton\[4\].clicks) do click lma,lmaheader,lmafile,tim,xy,tz = load\_lma\_data(lmafolder,lmafile,1) selection\[\] = lma.qua .&& (0 .\< tim .\<= 600) end Result: Error in callback: Undef…

---

## [Macro to Extend Function with Additional Arguements (MacroTools.jl)?](https://discourse.julialang.org/t/macro-to-extend-function-with-additional-arguements-macrotools-jl/104916)

<div class="topic-metadata">

**Author:** [@matthew3245](https://discourse.julialang.org/u/matthew3245)\
**Replies:** 3\
**Last updated:** [October 13, 2023, 7:19pm UTC](https://discourse.julialang.org/t/macro-to-extend-function-with-additional-arguements-macrotools-jl/104916 "2023-10-13T19:19:28Z")

</div>

My goal is to create a macro that takes an arbitrary function and adds additional arguments and changes the docstring. For example, say I define the following function: "This is my function" function f(a, b; x=1.0, y=1…

---

## [Julia CPU Target](https://discourse.julialang.org/t/julia-cpu-target/101291)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [October 13, 2023, 6:27pm UTC](https://discourse.julialang.org/t/julia-cpu-target/101291 "2023-10-13T18:27:36Z")

</div>

Damn stupid question - is there a methodology for choosing the -C CPU Target fields for a given CPU type? I can see that you can use CPUID.jl but for more in depth choices such as th many avx related flags is there a sc…

---

## [Tune Metropolis-Hastings (normal distribution) scale parameters (and algorithms parameters in general)](https://discourse.julialang.org/t/tune-metropolis-hastings-normal-distribution-scale-parameters-and-algorithms-parameters-in-general/104925)

<div class="topic-metadata">

**Author:** [@caesoma](https://discourse.julialang.org/u/caesoma)\
**Replies:** 10\
**Last updated:** [October 13, 2023, 5:32pm UTC](https://discourse.julialang.org/t/tune-metropolis-hastings-normal-distribution-scale-parameters-and-algorithms-parameters-in-general/104925 "2023-10-13T17:32:38Z")

</div>

I am doing Bayesian inference of a few parameters (~3), albeit of a highly nonlinear model, and I am interested in the performance of random-walk Metropolis-Hastings versus Hamiltonian Monte Carlo methods. I don’t expect…

---

## [Training a LSTM model for time series, lack of performance](https://discourse.julialang.org/t/training-a-lstm-model-for-time-series-lack-of-performance/104868)

<div class="topic-metadata">

**Author:** [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Replies:** 9\
**Last updated:** [October 13, 2023, 4:16pm UTC](https://discourse.julialang.org/t/training-a-lstm-model-for-time-series-lack-of-performance/104868 "2023-10-13T16:16:58Z")

</div>

Hi everyone, I’m trying to train a LSTM model for forecasting a time series. At this stage training happens, but with a really bad performance: loss function values exhibit really minimal changes. I added a picture tha…

---

## [Can't install plot?](https://discourse.julialang.org/t/cant-install-plot/104928)

<div class="topic-metadata">

**Author:** [@Alex\_Beck](https://discourse.julialang.org/u/Alex_Beck)\
**Replies:** 3\
**Last updated:** [October 13, 2023, 2:01pm UTC](https://discourse.julialang.org/t/cant-install-plot/104928 "2023-10-13T14:01:56Z")

</div>

Hello, I wanted to do a little code in julia and using plot, so I watched the doc to install it and did what it was said. But when I put : Pkg.add(“Plots”) my command line say : syntax error near unexpected token \`“P…

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

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