# Latest

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

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

**Page:** 773

---

## [JuMP.jl to solve NLP with higher exponents?](https://discourse.julialang.org/t/jump-jl-to-solve-nlp-with-higher-exponents/95086)

<div class="topic-metadata">

**Author:** [@Chad](https://discourse.julialang.org/u/Chad)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 5:52pm UTC](https://discourse.julialang.org/t/jump-jl-to-solve-nlp-with-higher-exponents/95086 "2023-02-23T17:52:28Z")

</div>

Wondering what is the best solver for Non Linear programming for the objective function with exponent 4 and 5? I am trying to solve for a big graph of the order 20k vertices and 1M edges. Please advise any documentation…

---

## [Drop values near zero in contour fill plot for Makie](https://discourse.julialang.org/t/drop-values-near-zero-in-contour-fill-plot-for-makie/95050)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 5:16pm UTC](https://discourse.julialang.org/t/drop-values-near-zero-in-contour-fill-plot-for-makie/95050 "2023-02-23T17:16:55Z")

</div>

I’m trying to plot some data using a contour plot in Makie. My data has both negative and positive peaks. Near zero, there is a lot of noise. I want to highlight just the main peaks and valleys and I’d like anything near…

---

## [Julia, how to plot behind previous plot (how to push a plot to the backgrown of another plot)](https://discourse.julialang.org/t/julia-how-to-plot-behind-previous-plot-how-to-push-a-plot-to-the-backgrown-of-another-plot/95093)

<div class="topic-metadata">

**Author:** [@franfram](https://discourse.julialang.org/u/franfram)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 5:16pm UTC](https://discourse.julialang.org/t/julia-how-to-plot-behind-previous-plot-how-to-push-a-plot-to-the-backgrown-of-another-plot/95093 "2023-02-23T17:16:32Z")

</div>

Hello, I’m plottiong a sin and a cos function with the following code: using Makie x = range(0, 10, length=100) figure, axis, lineplot = lines(x, sin) lineplot2 = scatter!(x, cos, color = :red) figure lineplot2 appea…

---

## [Best method for (scalar) second derivative with ForwardDiff](https://discourse.julialang.org/t/best-method-for-scalar-second-derivative-with-forwarddiff/95039)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 5:04pm UTC](https://discourse.julialang.org/t/best-method-for-scalar-second-derivative-with-forwarddiff/95039 "2023-02-23T17:04:23Z")

</div>

What is the best/most efficient method to find the first two derivatives of a scalar function with ForwardDiff? This old post suggests ForwardDiff.derivative(x -\> ForwardDiff.derivative(f, x), 1.0) to compute the seco…

---

## [\[Call for Participation\] 1st Enzyme Workshop February 22-24, Boulder CO (USA)](https://discourse.julialang.org/t/call-for-participation-1st-enzyme-workshop-february-22-24-boulder-co-usa/92063)

<div class="topic-metadata">

**Author:** [@ludgerpaehler](https://discourse.julialang.org/u/ludgerpaehler)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 4:59pm UTC](https://discourse.julialang.org/t/call-for-participation-1st-enzyme-workshop-february-22-24-boulder-co-usa/92063 "2023-02-23T16:59:36Z")

</div>

The details of the 1st Enzyme workshop are finally taking up shape with the workshop taking place from the 22nd-24th of February at CU Boulder, CO (USA). Are you already using Enzyme.jl in your application? Are you think…

---

## [Error using pmap on autodiff ODE solver inside Turing @model function](https://discourse.julialang.org/t/error-using-pmap-on-autodiff-ode-solver-inside-turing-model-function/94449)

<div class="topic-metadata">

**Author:** [@mjmcnelis](https://discourse.julialang.org/u/mjmcnelis)\
**Replies:** 9\
**Last updated:** [February 23, 2023, 4:53pm UTC](https://discourse.julialang.org/t/error-using-pmap-on-autodiff-ode-solver-inside-turing-model-function/94449 "2023-02-23T16:53:53Z")

</div>

Our group is interested in fitting unknown parameters in our multi-physics model using the variational inference package AdvancedVI. To fit the parameters, we use experimental data from multiple tests and run a dynamical…

---

## [Makie Legend overdrawn by Axis3 Tick Labels](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 3:36pm UTC](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083 "2023-02-23T15:36:44Z")

</div>

Axis3 tick labels overdraw the legend as shown here. using CairoMakie fig = Figure() ax = fig\[1, 1\] = Axis3(fig) for nn=1:5 scatter!(randn(10),randn(10),randn(10), label="$nn") end axislegend(ax, position=:rb) fig …

---

## [TravisCI issue for a Julia package using PyPlot.jl](https://discourse.julialang.org/t/travisci-issue-for-a-julia-package-using-pyplot-jl/95079)

<div class="topic-metadata">

**Author:** [@kazuakiyama](https://discourse.julialang.org/u/kazuakiyama)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 4:03pm UTC](https://discourse.julialang.org/t/travisci-issue-for-a-julia-package-using-pyplot-jl/95079 "2023-02-23T16:03:29Z")

</div>

Hi, I’m developing a Julia astronomy package on GitHub, and have a question regarding an issue in TravisCI’s github action for a package using PyPlot.jl. My package uses PyPlot.jl for visualizations of data. I’ve been f…

---

## [Plotting within a call function (MWE)](https://discourse.julialang.org/t/plotting-within-a-call-function-mwe/95087)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 3:53pm UTC](https://discourse.julialang.org/t/plotting-within-a-call-function-mwe/95087 "2023-02-23T15:53:00Z")

</div>

I am experimenting with callbacks, in particular, interactive plotting from within a callback. Here is my code, which runs, except that I do not see a plot displayed. I must be doing something wrong! I am working with Vi…

---

## [Bitwise operator "&" won't work in kernel functions](https://discourse.julialang.org/t/bitwise-operator-wont-work-in-kernel-functions/93159)

<div class="topic-metadata">

**Author:** [@zero](https://discourse.julialang.org/u/zero)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 2:26pm UTC](https://discourse.julialang.org/t/bitwise-operator-wont-work-in-kernel-functions/93159 "2023-02-23T14:26:56Z")

</div>

Hi everyone, CUDA does not have an intrinsic function to operate “&”. However, in c/c++ you can still use the intrinsic bitwise \_\_and() to get the same result in your kernel method, or in python for example by cupy you …

---

## [Getting the corresponding eigenvectors in arpack](https://discourse.julialang.org/t/getting-the-corresponding-eigenvectors-in-arpack/94492)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 23\
**Last updated:** [February 23, 2023, 2:25pm UTC](https://discourse.julialang.org/t/getting-the-corresponding-eigenvectors-in-arpack/94492 "2023-02-23T14:25:52Z")

</div>

I’m using the arpack eigs function to retrieve the 3 largest eigenvalues in an 8x8 matrix ,using the following call eigs(a, nev=3) works great and i get a vector of 3 eigenvalues. However i get an 8x3 matrix of eigenv…

---

## [Module fails at first run, but works at second run](https://discourse.julialang.org/t/module-fails-at-first-run-but-works-at-second-run/95007)

<div class="topic-metadata">

**Author:** [@Miroslav-Stimac](https://discourse.julialang.org/u/Miroslav-Stimac)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 10:04am UTC](https://discourse.julialang.org/t/module-fails-at-first-run-but-works-at-second-run/95007 "2023-02-23T10:04:34Z")

</div>

Hello, I have a very strange behaviour with my program. When I start it for the first time, then it fails with an error message that is not very helpful. When I start it for the second time, then it completes without an…

---

## [Invariant manifolds for hyperbolic equilibria/fixed points](https://discourse.julialang.org/t/invariant-manifolds-for-hyperbolic-equilibria-fixed-points/95068)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 0\
**Last updated:** [February 23, 2023, 9:42am UTC](https://discourse.julialang.org/t/invariant-manifolds-for-hyperbolic-equilibria-fixed-points/95068 "2023-02-23T09:42:17Z")

</div>

I looked in DynamicalSystems.jl to find a function for calculating the invariant manifolds of a hyperbolic equilibrium point or a fixed point for a discrete system, but there doesn’t seem to be one. Is there a package de…

---

## [Keyword Arguments and Type Stability](https://discourse.julialang.org/t/keyword-arguments-and-type-stability/94993)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 11\
**Last updated:** [February 23, 2023, 9:23am UTC](https://discourse.julialang.org/t/keyword-arguments-and-type-stability/94993 "2023-02-23T09:23:44Z")

</div>

I need to remain flexible (I’m testing the code) and I ran into the following problem. MWE param = 2 x = rand(100) foo(x; β = param) = sum(x .\* β) @code\_warntype foo(x) # type unstable @code\_warntype fo…

---

## [Plot the camera field of view in Makie?](https://discourse.julialang.org/t/plot-the-camera-field-of-view-in-makie/95036)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 9:21am UTC](https://discourse.julialang.org/t/plot-the-camera-field-of-view-in-makie/95036 "2023-02-23T09:21:12Z")

</div>

There is probably a way to achieve this using camera properties, but how could the field of view of the current camera be displayed onto another scene in Makie ? In terms of rendering, one could expect something like …

---

## [Besides Revise.JL, what other packages are common parts of "expert" Julia workflow?](https://discourse.julialang.org/t/besides-revise-jl-what-other-packages-are-common-parts-of-expert-julia-workflow/95052)

<div class="topic-metadata">

**Author:** [@zeroexcuses](https://discourse.julialang.org/u/zeroexcuses)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 9:16am UTC](https://discourse.julialang.org/t/besides-revise-jl-what-other-packages-are-common-parts-of-expert-julia-workflow/95052 "2023-02-23T09:16:15Z")

</div>

Besides Revise.JL, what other packages are common parts of “expert” Julia workflow ? I.e. if I’m to be proficient in Julia, what other packages do I need to learn to use ?

---

## [Query.jl fails handle CSV.Rows](https://discourse.julialang.org/t/query-jl-fails-handle-csv-rows/95063)

<div class="topic-metadata">

**Author:** [@purplesabbath](https://discourse.julialang.org/u/purplesabbath)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 8:17am UTC](https://discourse.julialang.org/t/query-jl-fails-handle-csv-rows/95063 "2023-02-23T08:17:06Z")

</div>

I got an dataset too large for memory, I want to combine CSV.Rows and Query.jl to handle data, but after @groupby, I can’t use @map to summarize data. using DataFrames using CSV using Query data\_path = "D:\\\\chen\\\\det…

---

## [How to Detect Key Down Events?](https://discourse.julialang.org/t/how-to-detect-key-down-events/95011)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 5:36am UTC](https://discourse.julialang.org/t/how-to-detect-key-down-events/95011 "2023-02-23T05:36:39Z")

</div>

I want to detect key presses while my main program loop runs. Say I’m computing loads of data and printing that in the REPL. I want to be able to detect any keys I press. For example, if the key ‘p’ is pressed, all the c…

---

## [String Handling Functions](https://discourse.julialang.org/t/string-handling-functions/95058)

<div class="topic-metadata">

**Author:** [@smashcoder2003](https://discourse.julialang.org/u/smashcoder2003)\
**Replies:** 7\
**Last updated:** [February 23, 2023, 4:52am UTC](https://discourse.julialang.org/t/string-handling-functions/95058 "2023-02-23T04:52:01Z")

</div>

Is there a package or module for string handling functions? Did anyone write a package or module for string handling?

---

## [What is a good way to write methods that help the user not mix up input order?](https://discourse.julialang.org/t/what-is-a-good-way-to-write-methods-that-help-the-user-not-mix-up-input-order/94803)

<div class="topic-metadata">

**Author:** [@philip](https://discourse.julialang.org/u/philip)\
**Replies:** 7\
**Last updated:** [February 23, 2023, 4:04am UTC](https://discourse.julialang.org/t/what-is-a-good-way-to-write-methods-that-help-the-user-not-mix-up-input-order/94803 "2023-02-23T04:04:47Z")

</div>

I’ve often encountered issues similar to Keyword argument types - what's going on? - #11 by sijo . I like to write methods with keyword arguments because I find them harder to silently screw up calling than positional ar…

---

## [Could not able to add Git Repo as Package](https://discourse.julialang.org/t/could-not-able-to-add-git-repo-as-package/95038)

<div class="topic-metadata">

**Author:** [@bhavya21](https://discourse.julialang.org/u/bhavya21)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 1:17am UTC](https://discourse.julialang.org/t/could-not-able-to-add-git-repo-as-package/95038 "2023-02-23T01:17:57Z")

</div>

I could not able to add private Git repo as a package to my Julia. I’m able to clone the Git Repo through GitBash though. Getting the following error.

---

## [How can I set the default font in Makie?](https://discourse.julialang.org/t/how-can-i-set-the-default-font-in-makie/95003)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 8\
**Last updated:** [February 23, 2023, 1:16am UTC](https://discourse.julialang.org/t/how-can-i-set-the-default-font-in-makie/95003 "2023-02-23T01:16:21Z")

</div>

Main question Hi, I am new to Makie.jl for publication-quality vector graphics. I had tried below tutorial but I don’t get how set\_theme! function works. https://docs.makie.org/stable/documentation/theming/index.html#th…

---

## [PackageCompiler.jl: display functions seem to use a lot of memory](https://discourse.julialang.org/t/packagecompiler-jl-display-functions-seem-to-use-a-lot-of-memory/95053)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 1:06am UTC](https://discourse.julialang.org/t/packagecompiler-jl-display-functions-seem-to-use-a-lot-of-memory/95053 "2023-02-23T01:06:52Z")

</div>

MWE: create a package with PkgTemplates add following packages: PackageCompiler Revise TimerOutputs. Revise is not used, I just get used to add it to every package. add the following code to SelfTest.jl: using TimerO…

---

## [Setting tolerances in JuMP - is there an Optimizer-independent way?](https://discourse.julialang.org/t/setting-tolerances-in-jump-is-there-an-optimizer-independent-way/95030)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 4\
**Last updated:** [February 22, 2023, 10:14pm UTC](https://discourse.julialang.org/t/setting-tolerances-in-jump-is-there-an-optimizer-independent-way/95030 "2023-02-22T22:14:27Z")

</div>

Is there a simple Optimizer-independent way to set tolerances in JuMP? I searched the documentation and couldn’t find anything on setting tolerances \[I’m tired of multiplying my objective functions by large numbers …

---

## [\--track-allocation changes allocation behavior of code?](https://discourse.julialang.org/t/track-allocation-changes-allocation-behavior-of-code/95044)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 9:40pm UTC](https://discourse.julialang.org/t/track-allocation-changes-allocation-behavior-of-code/95044 "2023-02-22T21:40:32Z")

</div>

I made some code changes which I guessed would improve memory usage. @time shows a huge speedup, \> 10x, and a \>98% reduction in memory used. But when I use --track-allocation it seems as if my changes made things much w…

---

## [JuMP Non-Linear Optimization](https://discourse.julialang.org/t/jump-non-linear-optimization/94020)

<div class="topic-metadata">

**Author:** [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Replies:** 14\
**Last updated:** [February 22, 2023, 8:46pm UTC](https://discourse.julialang.org/t/jump-non-linear-optimization/94020 "2023-02-22T20:46:17Z")

</div>

I am trying to optimize the below equation, but it throws out an error. sqrt(transpose(x) \* \[0.00076204 0.00051972; 0.00051972 0.00546173\] \* x) model = Model(HiGHS.Optimizer) @variable(model, x\[1:2\]) @NLobjective(mode…

---

## [How to change default browser of Jupiter notebook in IJulia?](https://discourse.julialang.org/t/how-to-change-default-browser-of-jupiter-notebook-in-ijulia/94790)

<div class="topic-metadata">

**Author:** [@swish47](https://discourse.julialang.org/u/swish47)\
**Replies:** 5\
**Last updated:** [February 22, 2023, 7:56pm UTC](https://discourse.julialang.org/t/how-to-change-default-browser-of-jupiter-notebook-in-ijulia/94790 "2023-02-22T19:56:34Z")

</div>

In these two links, https://stackoverflow.com/questions/47772157/how-to-change-the-default-browser-used-by-jupyter-notebook-in-windows, https://stackoverflow.com/questions/35229604/how-to-change-the-default-browser-used-…

---

## [Defining my own \`next!\` but avoiding confict](https://discourse.julialang.org/t/defining-my-own-next-but-avoiding-confict/95035)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 6\
**Last updated:** [February 22, 2023, 7:51pm UTC](https://discourse.julialang.org/t/defining-my-own-next-but-avoiding-confict/95035 "2023-02-22T19:51:10Z")

</div>

I would like to create a next! function for a custom type, but avoid conflict with other modules that might define next! as well. A very small example: module NextTest export Numb, next! mutable struct Numb val::…

---

## [LinearSolve is changing their solutions](https://discourse.julialang.org/t/linearsolve-is-changing-their-solutions/95028)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 7:06pm UTC](https://discourse.julialang.org/t/linearsolve-is-changing-their-solutions/95028 "2023-02-22T19:06:52Z")

</div>

I am solving some Linear Systems using LinearSolve.jl and its caching system. I was fine doing fine with this example using LinearSolve n = 4 A = rand(n, n) b = \[rand(n) for i ∈ 1:3\] ## everything is 'true' let lin…

---

## [Agents.jl: Establishing a new space type](https://discourse.julialang.org/t/agents-jl-establishing-a-new-space-type/93915)

<div class="topic-metadata">

**Author:** [@Atiyah](https://discourse.julialang.org/u/Atiyah)\
**Replies:** 12\
**Last updated:** [February 22, 2023, 6:36pm UTC](https://discourse.julialang.org/t/agents-jl-establishing-a-new-space-type/93915 "2023-02-22T18:36:25Z")

</div>

I am attempting to establish a space type relevant to a sophisticated large-scale case study in SocioEconomics field, The existing code has been translated from Python code and now I am attempting to integrate Agents.jl …

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

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