# Latest

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

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

**Page:** 654

---

## [GLMakie color gradient lines plots](https://discourse.julialang.org/t/glmakie-color-gradient-lines-plots/101228)

<div class="topic-metadata">

**Author:** [@Kadii](https://discourse.julialang.org/u/Kadii)\
**Replies:** 2\
**Last updated:** [July 5, 2023, 9:28pm UTC](https://discourse.julialang.org/t/glmakie-color-gradient-lines-plots/101228 "2023-07-05T21:28:35Z")

</div>

Hi, I’m trying to find a way to make a figure with color gradient lines looked like this using GLMakie. The figure is from here The line plot has color gradient depending on the order of the lines. Does anyone know…

---

## [Julia v1.9.2 has been released](https://discourse.julialang.org/t/julia-v1-9-2-has-been-released/101229)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 9:14pm UTC](https://discourse.julialang.org/t/julia-v1-9-2-has-been-released/101229 "2023-07-05T21:14:44Z")

</div>

Julia version 1.9.2, the second patch release in the 1.9 series of releases, is now available. Binaries are available at https://julialang.org/downloads/ for the following platforms, listed here by support tier: Tier 1…

---

## [How to take two exisitng plots and inset one inside the other](https://discourse.julialang.org/t/how-to-take-two-exisitng-plots-and-inset-one-inside-the-other/101226)

<div class="topic-metadata">

**Author:** [@NegativeOne](https://discourse.julialang.org/u/NegativeOne)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 8:25pm UTC](https://discourse.julialang.org/t/how-to-take-two-exisitng-plots-and-inset-one-inside-the-other/101226 "2023-07-05T20:25:14Z")

</div>

In want to take the outputs of two separate plot commands and inset one inside the other. I’m using the GR backend. I have two plots, one created as p = plot(t, cohs, lw=\[3 1 1 1 1\], ls=\[:solid :dash :dash :dash :dash…

---

## [Errorbar plot with AoG](https://discourse.julialang.org/t/errorbar-plot-with-aog/101221)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 5\
**Last updated:** [July 5, 2023, 7:53pm UTC](https://discourse.julialang.org/t/errorbar-plot-with-aog/101221 "2023-07-05T19:53:17Z")

</div>

Hello all, I would like to know which a way to build errobar plot in AoG. For example if I have a dataframe with columns r, v, dr, dv where dr and dv are the corresponding errors. And also with columns r, v, dr, dv\_…

---

## [How to get current x and y limits of a plot? (Plots.jl)](https://discourse.julialang.org/t/how-to-get-current-x-and-y-limits-of-a-plot-plots-jl/101029)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 3\
**Last updated:** [July 5, 2023, 6:41pm UTC](https://discourse.julialang.org/t/how-to-get-current-x-and-y-limits-of-a-plot-plots-jl/101029 "2023-07-05T18:41:52Z")

</div>

Given that I have already made a plot using, say pl = plot(\[1,2,3\]), is there a way to query what the current x and y limits of the plot are? E.g. something like pl.xlims which would return (1.0,3.0). I often find myse…

---

## [Calling a julia script from within another script](https://discourse.julialang.org/t/calling-a-julia-script-from-within-another-script/100989)

<div class="topic-metadata">

**Author:** [@clairem](https://discourse.julialang.org/u/clairem)\
**Replies:** 9\
**Last updated:** [July 5, 2023, 6:31pm UTC](https://discourse.julialang.org/t/calling-a-julia-script-from-within-another-script/100989 "2023-07-05T18:31:17Z")

</div>

I have a julia file that contains functions and code that uses those functions. I would like to create a separate julia script that is able to execute this script (and obtain one of the values that is created at the end …

---

## [Where is the DifferentialEquations finite element tutorial?](https://discourse.julialang.org/t/where-is-the-differentialequations-finite-element-tutorial/101216)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 4\
**Last updated:** [July 5, 2023, 5:14pm UTC](https://discourse.julialang.org/t/where-is-the-differentialequations-finite-element-tutorial/101216 "2023-07-05T17:14:41Z")

</div>

Can someone please point me to the tutorial mentioned here that creates this demo? (Can’t find it in that page) Thanks

---

## [Check that compilation time = 0](https://discourse.julialang.org/t/check-that-compilation-time-0/101215)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 8\
**Last updated:** [July 5, 2023, 4:41pm UTC](https://discourse.julialang.org/t/check-that-compilation-time-0/101215 "2023-07-05T16:41:34Z")

</div>

Hi, When I use @time, Julia displays the number of allocation, gc time, compilation time, (recompilation time I think?)… Is there a way to test that the compilation time is equal to 0, i.e. that no compilation happens? …

---

## [Github contingency planning — should Julia be backing up issues/PRs?](https://discourse.julialang.org/t/github-contingency-planning-should-julia-be-backing-up-issues-prs/101086)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 20\
**Last updated:** [July 5, 2023, 3:49pm UTC](https://discourse.julialang.org/t/github-contingency-planning-should-julia-be-backing-up-issues-prs/101086 "2023-07-05T15:49:53Z")

</div>

Reading Cory Doctorow’s article on the inevitable en-:poop:-ification of for-profit websites made me think about how closely the development of Julia (and many other free/open-source projects) is currently tied to github…

---

## [Combining elements from multiple rows by conditionals into columns with DataFramesMeta](https://discourse.julialang.org/t/combining-elements-from-multiple-rows-by-conditionals-into-columns-with-dataframesmeta/101097)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 10\
**Last updated:** [July 5, 2023, 3:41pm UTC](https://discourse.julialang.org/t/combining-elements-from-multiple-rows-by-conditionals-into-columns-with-dataframesmeta/101097 "2023-07-05T15:41:49Z")

</div>

Hello, I want to create a new dataframe with a column computed from one or more columns of the initial dataframe. using DataFramesMeta df1 = DataFrame(category = \[1,0,1,0\], group=\[1,1,0,0\], measure = \[401, 402, 200, 3…

---

## [How to insert Integral in a NonLinearProblem](https://discourse.julialang.org/t/how-to-insert-integral-in-a-nonlinearproblem/101183)

<div class="topic-metadata">

**Author:** [@Xx-Seth-xX](https://discourse.julialang.org/u/Xx-Seth-xX)\
**Replies:** 4\
**Last updated:** [July 5, 2023, 2:52pm UTC](https://discourse.julialang.org/t/how-to-insert-integral-in-a-nonlinearproblem/101183 "2023-07-05T14:52:40Z")

</div>

If I want to have an integral inside a Non Linear System of equations how would I do it with ModelingToolkit.jl and NonLinearSolver.jl? e.x. I have an integral from 0 to 1 of sin(a\*x) which equals to 1, how would I sol…

---

## [Faster isapprox()](https://discourse.julialang.org/t/faster-isapprox/101202)

<div class="topic-metadata">

**Author:** [@user\_231578](https://discourse.julialang.org/u/user_231578)\
**Replies:** 14\
**Last updated:** [July 5, 2023, 2:51pm UTC](https://discourse.julialang.org/t/faster-isapprox/101202 "2023-07-05T14:51:14Z")

</div>

I have to run (possibly) millions of times the function isapprox(A, A\_, rtol=1e-4), where A and A\_ are two matrices. To improve efficiency, I defined a custom isapprox() function using a more efficient norm: using LoopV…

---

## [How to enforce function signature type on a struct](https://discourse.julialang.org/t/how-to-enforce-function-signature-type-on-a-struct/101211)

<div class="topic-metadata">

**Author:** [@nickk2002](https://discourse.julialang.org/u/nickk2002)\
**Replies:** 6\
**Last updated:** [July 5, 2023, 2:51pm UTC](https://discourse.julialang.org/t/how-to-enforce-function-signature-type-on-a-struct/101211 "2023-07-05T14:51:10Z")

</div>

Hi julia community! I am working on a program synthesis library for julia. We represent the algorithms as iterators that enumerate the search space of possible programs in a certain order. Algorithms might need certain …

---

## [How to Find the constraints which are causing infeasibility in the model using compute\_iis in Gurobi](https://discourse.julialang.org/t/how-to-find-the-constraints-which-are-causing-infeasibility-in-the-model-using-compute-iis-in-gurobi/101203)

<div class="topic-metadata">

**Author:** [@Gagan\_Meena](https://discourse.julialang.org/u/Gagan_Meena)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 2:40pm UTC](https://discourse.julialang.org/t/how-to-find-the-constraints-which-are-causing-infeasibility-in-the-model-using-compute-iis-in-gurobi/101203 "2023-07-05T14:40:22Z")

</div>

How to compute the IIS form for the model shown below using JuMP, Gurobi include("Data.jl") UnitCommitment\_dt = UC\_dt function DUC\_Clearing(UnitCommitment\_dt) # Indices ngen = length(UC\_dt.Gen\_Constraints\[:,1\]…

---

## [Help me improve this simple function](https://discourse.julialang.org/t/help-me-improve-this-simple-function/101198)

<div class="topic-metadata">

**Author:** [@laborg](https://discourse.julialang.org/u/laborg)\
**Replies:** 12\
**Last updated:** [July 5, 2023, 2:08pm UTC](https://discourse.julialang.org/t/help-me-improve-this-simple-function/101198 "2023-07-05T14:08:10Z")

</div>

Hi, The following function is used to apply a calibration captured in correction to a matrix of 3D sample points. using BenchmarkTools function correct(points, correction) epoints = hcat(points, ones(size(points, 1…

---

## [Hash of enum from module gives inconsistent values run to run](https://discourse.julialang.org/t/hash-of-enum-from-module-gives-inconsistent-values-run-to-run/101192)

<div class="topic-metadata">

**Author:** [@sandsq](https://discourse.julialang.org/u/sandsq)\
**Replies:** 3\
**Last updated:** [July 5, 2023, 1:39pm UTC](https://discourse.julialang.org/t/hash-of-enum-from-module-gives-inconsistent-values-run-to-run/101192 "2023-07-05T13:39:43Z")

</div>

Hi everyone! I’m running into some weird behaviour regarding Enums. Here is a small code example: module FakeletterModule export Fakeletter, \_A, \_B, \_C @enum Fakeletter \_A \_B \_C end # module import .FakeletterModul…

---

## [JuliaUserGroupMunich: Chad Scherrer, Applied Measure Theory for Probabilistic Modeling](https://discourse.julialang.org/t/juliausergroupmunich-chad-scherrer-applied-measure-theory-for-probabilistic-modeling/100698)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [July 5, 2023, 1:31pm UTC](https://discourse.julialang.org/t/juliausergroupmunich-chad-scherrer-applied-measure-theory-for-probabilistic-modeling/100698 "2023-07-05T13:31:25Z")

</div>

Join us online :spiral\_calendar: Monday 3. July 2023 :clock630: 18:30 CEST organized via meetup Applied Measure Theory for Probabilistic Modeling ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ I am glad to welcome Chad Scherrer as o…

---

## [Develop "Julian" API for a C++ library?](https://discourse.julialang.org/t/develop-julian-api-for-a-c-library/101127)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 3\
**Last updated:** [July 5, 2023, 12:37pm UTC](https://discourse.julialang.org/t/develop-julian-api-for-a-c-library/101127 "2023-07-05T12:37:32Z")

</div>

I have an vendor-produced C++ library that I would like to write a Julia wrapper for (I only have headers and shared objects for it). The typical use case is that the library is called from a user-created file that just …

---

## [Select ssh true in PkgTemplates.jl](https://discourse.julialang.org/t/select-ssh-true-in-pkgtemplates-jl/101205)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 11:12am UTC](https://discourse.julialang.org/t/select-ssh-true-in-pkgtemplates-jl/101205 "2023-07-05T11:12:23Z")

</div>

Hello, I am trying to create a new package with PkgTemplates for a repo that uses ssh. After going through the documentation, It is not clear how to set ssh to true for the Git plugin. How can this be accomplished? Tha…

---

## [Julia workflow for research](https://discourse.julialang.org/t/julia-workflow-for-research/101166)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [July 5, 2023, 9:56am UTC](https://discourse.julialang.org/t/julia-workflow-for-research/101166 "2023-07-05T09:56:38Z")

</div>

I currently have a position as researcher, where I mainly write software that is being used just by myself. So what is a good workflow for doing this? I mainly: create models run simulations plot the simulation resul…

---

## [Timeout for in.pkg.julialang.org](https://discourse.julialang.org/t/timeout-for-in-pkg-julialang-org/101199)

<div class="topic-metadata">

**Author:** [@msravi](https://discourse.julialang.org/u/msravi)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 7:58am UTC](https://discourse.julialang.org/t/timeout-for-in-pkg-julialang-org/101199 "2023-07-05T07:58:08Z")

</div>

Hi, I just did a fresh compile of the v1.9.1 tag of julia, and attempted to add the PyCall package. I get the following warnings: (@v1.9) pkg\> add PyCall Installing known registries into \`~/.julia\` ┌ Warning: could n…

---

## [Solving and ODE depending on external disturbances](https://discourse.julialang.org/t/solving-and-ode-depending-on-external-disturbances/101162)

<div class="topic-metadata">

**Author:** [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Replies:** 2\
**Last updated:** [July 5, 2023, 7:38am UTC](https://discourse.julialang.org/t/solving-and-ode-depending-on-external-disturbances/101162 "2023-07-05T07:38:04Z")

</div>

Hi everyone, I am new to Julia and I was trying to solve and ODE which depends on an exeternal disturbance vector. For every timestep, it needs to evaluate a different values from that vector. Initially, I tried with a …

---

## [How can this code be faster than MATLAB?](https://discourse.julialang.org/t/how-can-this-code-be-faster-than-matlab/101196)

<div class="topic-metadata">

**Author:** [@XuJingye2022](https://discourse.julialang.org/u/XuJingye2022)\
**Replies:** 12\
**Last updated:** [July 5, 2023, 6:22am UTC](https://discourse.julialang.org/t/how-can-this-code-be-faster-than-matlab/101196 "2023-07-05T06:22:04Z")

</div>

using BenchmarkTools zvec, δvec = randn(10000) \* 1e-2, randn(10000) \* 1e-3 # Physical constant const restenergy = 0.511e6 const clight = 3e8 # Computation settings nturns = 10001 # Machine parameter struct Par v1…

---

## [Why does Pkg.activate(".") require compilation? Time to first project activation](https://discourse.julialang.org/t/why-does-pkg-activate-require-compilation-time-to-first-project-activation/101193)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 2\
**Last updated:** [July 5, 2023, 3:00am UTC](https://discourse.julialang.org/t/why-does-pkg-activate-require-compilation-time-to-first-project-activation/101193 "2023-07-05T03:00:18Z")

</div>

Pkg.activate(".") seems to to take about 200 milliseconds, mostly due to compilation. It still takes 40 milliseconds even after activating the same environment again. $ julia -e 'using Pkg; for i in 1:5; @time Pkg.activ…

---

## [Runtime arguments for \_\_init\_\_?](https://discourse.julialang.org/t/runtime-arguments-for-init/101170)

<div class="topic-metadata">

**Author:** [@alan](https://discourse.julialang.org/u/alan)\
**Replies:** 6\
**Last updated:** [July 4, 2023, 9:52pm UTC](https://discourse.julialang.org/t/runtime-arguments-for-init/101170 "2023-07-04T21:52:07Z")

</div>

I thought at first that this was a general way to write an application that would be precompiled and would therefore load fast. However, I think I see a problem. There seems to be no way to pass arguments to a module’s \_…

---

## [NSF POSE grant](https://discourse.julialang.org/t/nsf-pose-grant/101186)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 1\
**Last updated:** [July 4, 2023, 9:51pm UTC](https://discourse.julialang.org/t/nsf-pose-grant/101186 "2023-07-04T21:51:56Z")

</div>

Hi, I was wondering if Julia and its ecosystem can get funding and benefit from the below? (Pathways to Enable Open-Source Ecosystems) https://www.nsf.gov/pubs/2023/nsf23556/nsf23556.htm Regards.

---

## [Installation on managed cluster](https://discourse.julialang.org/t/installation-on-managed-cluster/100145)

<div class="topic-metadata">

**Author:** [@VictorEijkhout](https://discourse.julialang.org/u/VictorEijkhout)\
**Replies:** 25\
**Last updated:** [July 4, 2023, 8:46pm UTC](https://discourse.julialang.org/t/installation-on-managed-cluster/100145 "2023-07-04T20:46:45Z")

</div>

I install scientific software on a big supercomputer cluster, and we have occasional requests for Julia. So I thought I’d make an installation that contains a bunch of popular packages such as HDF5 and MPI. Installing …

---

## [This linear regression fails in Julia (GLM) vs Python (sklearn)](https://discourse.julialang.org/t/this-linear-regression-fails-in-julia-glm-vs-python-sklearn/101154)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 7\
**Last updated:** [July 4, 2023, 7:05pm UTC](https://discourse.julialang.org/t/this-linear-regression-fails-in-julia-glm-vs-python-sklearn/101154 "2023-07-04T19:05:29Z")

</div>

I have not figured out why the Julia and Python implementations yield different results when performing this “simple” linear regression with the following data. While sklearn is consistent with Excel, GLM fails to perfor…

---

## [Need help understanding allocations while calling external C library (Proj)](https://discourse.julialang.org/t/need-help-understanding-allocations-while-calling-external-c-library-proj/101133)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 3\
**Last updated:** [July 4, 2023, 5:15pm UTC](https://discourse.julialang.org/t/need-help-understanding-allocations-while-calling-external-c-library-proj/101133 "2023-07-04T17:15:33Z")

</div>

Hello everyone, I have been scratching my head around allocations I have in a package I am developing that I can’t seem to eliminate. Moreover it seems that the allocation results I get from @allocations and @btime fro…

---

## [\[ANN\] Announcing ForwardMethods.jl](https://discourse.julialang.org/t/ann-announcing-forwardmethods-jl/100902)

<div class="topic-metadata">

**Author:** [@curtd](https://discourse.julialang.org/u/curtd)\
**Replies:** 1\
**Last updated:** [July 4, 2023, 4:19pm UTC](https://discourse.julialang.org/t/ann-announcing-forwardmethods-jl/100902 "2023-07-04T16:19:05Z")

</div>

I’m happy to announce ForwardMethods.jl v1.1, a package made to help remove some boilerplate when defining forwarded/delegated methods. Method Definition Forwarding Concretely, suppose you have a composite type struct …

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

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