# Latest

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

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

**Page:** 552

---

## [Failing to embed Julia in C++](https://discourse.julialang.org/t/failing-to-embed-julia-in-c/106381)

<div class="topic-metadata">

**Author:** [@droodman](https://discourse.julialang.org/u/droodman)\
**Replies:** 1\
**Last updated:** [November 18, 2023, 12:49am UTC](https://discourse.julialang.org/t/failing-to-embed-julia-in-c/106381 "2023-11-18T00:49:06Z")

</div>

I’m trying to embed Julia in C++ on an M2 MacBook under MacOS Sonoma with Julia 1.9.3. I’ve succeeded in compiling the same program in Windows, with Visual Studio, and Ubuntu 22.04, with g++. But on the Mac, g++ is gener…

---

## [PlotlyJS not working in Pluto on Windows](https://discourse.julialang.org/t/plotlyjs-not-working-in-pluto-on-windows/106325)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 10:07pm UTC](https://discourse.julialang.org/t/plotlyjs-not-working-in-pluto-on-windows/106325 "2023-11-17T22:07:27Z")

</div>

Hello, I’m facing an issue with PlotlyJS in Pluto on Windows. The PlotlyJS chart is not displayed, there is only white space on Windows (in Firefox and Chrome): However the same Pluto notebook on my Linux machine wo…

---

## [How to deploy the documentation?](https://discourse.julialang.org/t/how-to-deploy-the-documentation/106379)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 9:19pm UTC](https://discourse.julialang.org/t/how-to-deploy-the-documentation/106379 "2023-11-17T21:19:20Z")

</div>

I generated a documentation for my latest package, but I cannot deploy the documentation, even though I followed all steps as described at Hosting Documentation · Documenter.jl I get the following error: ERROR: LoadE…

---

## [Error while moving files :name too long (ENAMETOOLONG)](https://discourse.julialang.org/t/error-while-moving-files-name-too-long-enametoolong/106377)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 9:09pm UTC](https://discourse.julialang.org/t/error-while-moving-files-name-too-long-enametoolong/106377 "2023-11-17T21:09:14Z")

</div>

I am getting name too long (ENAMETOOLONG) when i try to move file from one folder to another. My code is as given below :yawning\_face: \`for i in 1:length(IO) mat=match(r".+beta-(\\d.\\d+)\_betaerr(\\d.\\d+)",IO\[i\]) if…

---

## [How to asychronously build a benchmark group](https://discourse.julialang.org/t/how-to-asychronously-build-a-benchmark-group/106335)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 8:35pm UTC](https://discourse.julialang.org/t/how-to-asychronously-build-a-benchmark-group/106335 "2023-11-17T20:35:04Z")

</div>

Can I build several inter-depending benchmarks from a serial procedure in “one go” using BenchmarkTools.jl ? Say I have the following functionality laid out in a function function mymutatingfunc!(x) mutfunc1!(x) …

---

## [Why is displaying a stack trace with values difficult](https://discourse.julialang.org/t/why-is-displaying-a-stack-trace-with-values-difficult/104556)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 8:00pm UTC](https://discourse.julialang.org/t/why-is-displaying-a-stack-trace-with-values-difficult/104556 "2023-11-17T20:00:07Z")

</div>

Inspecting the stack immediately after an error occurred would be fantastic for debugging… Right now, GitHub - JuliaDebug/Debugger.jl: Julia debugger can do it, but it’s slow. And of course @Keno of all people gave it a …

---

## [Reduce the allocations in the for loop](https://discourse.julialang.org/t/reduce-the-allocations-in-the-for-loop/106348)

<div class="topic-metadata">

**Author:** [@supeng\_xu](https://discourse.julialang.org/u/supeng_xu)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 3:11pm UTC](https://discourse.julialang.org/t/reduce-the-allocations-in-the-for-loop/106348 "2023-11-17T15:11:25Z")

</div>

With the increase of Num, the allocations become larger and larger, can someone help me to optimize this program, here is an easy example ps: in my program, Num is quite larger, ~100000 function test(x,y) c=rand(2)…

---

## [Speeding up \`fit(Histogram)\`](https://discourse.julialang.org/t/speeding-up-fit-histogram/106355)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 10\
**Last updated:** [November 17, 2023, 4:48pm UTC](https://discourse.julialang.org/t/speeding-up-fit-histogram/106355 "2023-11-17T16:48:19Z")

</div>

As an offshoot of a thread about Makie histograms, I’ve tried to benchmark StatsBase fit(Histogtam) like so: julia\> using StatsBase julia\> @btime fit(Histogram, v, 0.0:0.1:1.0) setup=(Random.seed!(1234); v = rand(1\_000…

---

## [Performance Report: Effect of Reading CSV file on Mergeing two DataFrames](https://discourse.julialang.org/t/performance-report-effect-of-reading-csv-file-on-mergeing-two-dataframes/106304)

<div class="topic-metadata">

**Author:** [@Sourish](https://discourse.julialang.org/u/Sourish)\
**Replies:** 18\
**Last updated:** [November 17, 2023, 4:37pm UTC](https://discourse.julialang.org/t/performance-report-effect-of-reading-csv-file-on-mergeing-two-dataframes/106304 "2023-11-17T16:37:33Z")

</div>

Hi I was trying to merge two data frames - but I realised how we read the csv files - that is going to have a bearing on the same merge function. using DataFrames, CSV, FileIO, CSVFiles, PyCall, BenchmarkTools diamonds…

---

## [Descretization Failed - Method of Lines](https://discourse.julialang.org/t/descretization-failed-method-of-lines/105720)

<div class="topic-metadata">

**Author:** [@emmabottomley](https://discourse.julialang.org/u/emmabottomley)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 4:19pm UTC](https://discourse.julialang.org/t/descretization-failed-method-of-lines/105720 "2023-11-17T16:19:25Z")

</div>

Hello, I’ve been having issues with my code related to the descretization step. I tried taking the derivative of a fraction Dx(S(t,x)/(p-2L(t,x))) but I got this error, SO I decided to use the quotient rule to expand t…

---

## [Sum of tuples are slow](https://discourse.julialang.org/t/sum-of-tuples-are-slow/38541)

<div class="topic-metadata">

**Author:** [@tfr](https://discourse.julialang.org/u/tfr)\
**Replies:** 12\
**Last updated:** [November 17, 2023, 2:45pm UTC](https://discourse.julialang.org/t/sum-of-tuples-are-slow/38541 "2023-11-17T14:45:39Z")

</div>

I did the following tests using BenchmarkTools a = collect(1: 100) a\_tuple = Tuple(a) @benchmark sum($a) @benchmark sum($a\_tuple) For the array a the output is BenchmarkTools.Trial: memory estimate: 0 bytes allo…

---

## [Implement JFNK with NonlinearSolve.jl](https://discourse.julialang.org/t/implement-jfnk-with-nonlinearsolve-jl/106339)

<div class="topic-metadata">

**Author:** [@gjparker](https://discourse.julialang.org/u/gjparker)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 2:20pm UTC](https://discourse.julialang.org/t/implement-jfnk-with-nonlinearsolve-jl/106339 "2023-11-17T14:20:02Z")

</div>

I am trying to implement a Jacobian-Free Newton Krylov (JFNK) solver using existing functions in NonlinearSolve.jl and related packages. These methods should only require the evaluation of the directional derivatives J\*…

---

## [Documentation on types of Connections in ModelingToolkit.jl](https://discourse.julialang.org/t/documentation-on-types-of-connections-in-modelingtoolkit-jl/106357)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 2:10pm UTC](https://discourse.julialang.org/t/documentation-on-types-of-connections-in-modelingtoolkit-jl/106357 "2023-11-17T14:10:03Z")

</div>

Thank you for making ModelingToolkit. My question concerns with the documentation of building the Component Library for Acasual modeling. In the example given in the documentation (RC - Circuit) \[connect = Flow\] is use…

---

## [Why my diffeq solver idea doesn't work?](https://discourse.julialang.org/t/why-my-diffeq-solver-idea-doesnt-work/106350)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [November 17, 2023, 1:32pm UTC](https://discourse.julialang.org/t/why-my-diffeq-solver-idea-doesnt-work/106350 "2023-11-17T13:32:09Z")

</div>

I was testing a silly idea on how to solve a difeq. #f(x+Δx) ≈ a + bΔx + cΔx^2 + dΔx^3 #f'(x+Δx) ≈ b + 2cΔx + 3dΔx^2 #a = f(x) #b = f'(x) # cΔx^2 + dΔx^3 = f(x+Δx) - a - bΔx # 2cΔx + 3dΔx^2 = f'(x+Δx) - b # (c,d) = \[Δx…

---

## [How to move markers in a scatter plot above the x-axis in CairoMakie?](https://discourse.julialang.org/t/how-to-move-markers-in-a-scatter-plot-above-the-x-axis-in-cairomakie/106345)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 12:53pm UTC](https://discourse.julialang.org/t/how-to-move-markers-in-a-scatter-plot-above-the-x-axis-in-cairomakie/106345 "2023-11-17T12:53:47Z")

</div>

Hi, I am trying to create a dot plot with CairoMakie using the scatter function. I want the dots to appear above the x-axis spine and decorations. Currently they are being partially hidden as the spine and decorations …

---

## [Solve differential equation algebraically](https://discourse.julialang.org/t/solve-differential-equation-algebraically/106352)

<div class="topic-metadata">

**Author:** [@shikil](https://discourse.julialang.org/u/shikil)\
**Replies:** 4\
**Last updated:** [November 17, 2023, 11:33am UTC](https://discourse.julialang.org/t/solve-differential-equation-algebraically/106352 "2023-11-17T11:33:56Z")

</div>

Hi everyone, I’m looking for a package that can solve differential equation similar to below Sage code: sage: y = function('y')(x) sage: de = diff(y, x) - y\* 2 / x sage: h = desolve(de, y) sage: show(expand(h)) \_C\*x^2 …

---

## [Use tags, setup, teardown with the \`@benchmarkset\` macro](https://discourse.julialang.org/t/use-tags-setup-teardown-with-the-benchmarkset-macro/98936)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 10:17am UTC](https://discourse.julialang.org/t/use-tags-setup-teardown-with-the-benchmarkset-macro/98936 "2023-11-17T10:17:07Z")

</div>

Is there a way to use tags with the @benchmarkset macro? What about setup and teardown? I’ve been searching the docsumentation but to no avail.

---

## [Plots.jl plotly heatmap labels](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 8:58am UTC](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252 "2023-11-17T08:58:23Z")

</div>

I’d like to create a large heatmap using Plots.jl and plotly. which should look like this, where all y axis labels are shown, these align with the tool tip, and if I zoom in I get an increased granularity of the x axis d…

---

## [DataFrames: Turning a column of ints into an array of ints per row dependent upon grouping of matching inputs](https://discourse.julialang.org/t/dataframes-turning-a-column-of-ints-into-an-array-of-ints-per-row-dependent-upon-grouping-of-matching-inputs/105978)

<div class="topic-metadata">

**Author:** [@Name1](https://discourse.julialang.org/u/Name1)\
**Replies:** 6\
**Last updated:** [November 17, 2023, 8:48am UTC](https://discourse.julialang.org/t/dataframes-turning-a-column-of-ints-into-an-array-of-ints-per-row-dependent-upon-grouping-of-matching-inputs/105978 "2023-11-17T08:48:33Z")

</div>

Hi all, I want to turn this DataFrame (see first image) df = DataFrame(Year = \[1,2,3,1,2,3\], Name=\["Jack","Jack","Jack","Jill","Jill","Jill"\], Gender=\["M","M","M","F","F","F"\], Cash=\[10.0, 14.0, 12.0, 20.5, 21.5, 22…

---

## [Histogram counts from Makie](https://discourse.julialang.org/t/histogram-counts-from-makie/106323)

<div class="topic-metadata">

**Author:** [@panbroggi](https://discourse.julialang.org/u/panbroggi)\
**Replies:** 5\
**Last updated:** [November 17, 2023, 8:46am UTC](https://discourse.julialang.org/t/histogram-counts-from-makie/106323 "2023-11-17T08:46:08Z")

</div>

Hi everyone! Do you know how I can recover the bin count from an histogram, e.g. the following? hist(rand(100))

---

## [How to call Gurobi solver?](https://discourse.julialang.org/t/how-to-call-gurobi-solver/106351)

<div class="topic-metadata">

**Author:** [@Kaiming\_Zhang](https://discourse.julialang.org/u/Kaiming_Zhang)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 8:23am UTC](https://discourse.julialang.org/t/how-to-call-gurobi-solver/106351 "2023-11-17T08:23:22Z")

</div>

When I called Gurobi (v1.1.0) with the following code, m\_cvx = Model(optimizer\_with\_attributes(Gurobi.Optimizer,GRB\_ENV,“OutputFlag”=\>0)) it fails with methoderror. MethodError: no method matching optimizer\_with\_att…

---

## [Are there Julia programmer based in Melbourne Australia willing to take a job with a bank?](https://discourse.julialang.org/t/are-there-julia-programmer-based-in-melbourne-australia-willing-to-take-a-job-with-a-bank/95076)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 9\
**Last updated:** [November 17, 2023, 7:54am UTC](https://discourse.julialang.org/t/are-there-julia-programmer-based-in-melbourne-australia-willing-to-take-a-job-with-a-bank/95076 "2023-11-17T07:54:02Z")

</div>

We may have a position open soon in credit risk modelling related tasks. The company is an R shop at the moment but some work loads like calculations and monte carlo simulation could use some Julia. Are there Julia pro…

---

## [Stiff methods throw \`Cannot create a dual over scalar type ComplexF64\` in \`SDEProblem\`](https://discourse.julialang.org/t/stiff-methods-throw-cannot-create-a-dual-over-scalar-type-complexf64-in-sdeproblem/106321)

<div class="topic-metadata">

**Author:** [@ymardoukhi](https://discourse.julialang.org/u/ymardoukhi)\
**Replies:** 4\
**Last updated:** [November 17, 2023, 7:15am UTC](https://discourse.julialang.org/t/stiff-methods-throw-cannot-create-a-dual-over-scalar-type-complexf64-in-sdeproblem/106321 "2023-11-17T07:15:02Z")

</div>

I am solving the following von Neumann master equation with a stochastic term \\dot{\\rho} = -i\[H(t), \\rho\] where \[., .\] is the commutator operator and H(t) is given by H(t) = s(t)\\hat{\\sigma\_x} + \\hat{\\sigma\_z} W\_t s…

---

## [Precompiling function with @threads for and kwcalls](https://discourse.julialang.org/t/precompiling-function-with-threads-for-and-kwcalls/106347)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 0\
**Last updated:** [November 17, 2023, 1:20am UTC](https://discourse.julialang.org/t/precompiling-function-with-threads-for-and-kwcalls/106347 "2023-11-17T01:20:20Z")

</div>

I’ve run my package with @snoopc and found out that the Threads.@threads for anonymous function and kwcalls are always gettting compiled each run, instead of being precompiled and cached: 3935816979 "Tuple{Base.Threads.…

---

## [Package LibGit2 does not have libGit2\_jll](https://discourse.julialang.org/t/package-libgit2-does-not-have-libgit2-jll/106333)

<div class="topic-metadata">

**Author:** [@JohnS](https://discourse.julialang.org/u/JohnS)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 10:57pm UTC](https://discourse.julialang.org/t/package-libgit2-does-not-have-libgit2-jll/106333 "2023-11-16T22:57:29Z")

</div>

I successfully precompiled my package locally but received the following error in my Github Actions CI Julia nightly. Any suggestions on how to fix are most welcome, and please let me know if I need to provide other info…

---

## [Snail formatter problem with non-Base64 characters](https://discourse.julialang.org/t/snail-formatter-problem-with-non-base64-characters/106285)

<div class="topic-metadata">

**Author:** [@jwalker](https://discourse.julialang.org/u/jwalker)\
**Replies:** 0\
**Last updated:** [November 15, 2023, 11:36pm UTC](https://discourse.julialang.org/t/snail-formatter-problem-with-non-base64-characters/106285 "2023-11-15T23:36:49Z")

</div>

When running juliaformatter through the snail interface (C-c j f b) on a file with a character outside of base64 (specifically \\psi, I get the following message: format: Multibyte character in data for base64 encoding …

---

## [Set markeralpha of points on scatterplot based on vector](https://discourse.julialang.org/t/set-markeralpha-of-points-on-scatterplot-based-on-vector/106337)

<div class="topic-metadata">

**Author:** [@wpowell96](https://discourse.julialang.org/u/wpowell96)\
**Replies:** 0\
**Last updated:** [November 16, 2023, 9:59pm UTC](https://discourse.julialang.org/t/set-markeralpha-of-points-on-scatterplot-based-on-vector/106337 "2023-11-16T21:59:23Z")

</div>

Given a 3D scatter plot with N points and another vector with N points, one can set the color within a colormap of the individual points on the scatter plot with the extra vector as so: using Plots, Random w = rand(100…

---

## [Trouble with gmtread (gdalinfo failed)](https://discourse.julialang.org/t/trouble-with-gmtread-gdalinfo-failed/106330)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 7:46pm UTC](https://discourse.julialang.org/t/trouble-with-gmtread-gdalinfo-failed/106330 "2023-11-16T19:46:34Z")

</div>

I’m trying to get acquainted with the GMT.jl package, and I’m following the wonderful tutorial here: Plot Landsat 8 images Unfortunately, the very first step fails! julia\> Ir = gmtread("/vsicurl/http://landsat-pds.s3.a…

---

## [SOS constraints in LP file throwing \`Malformed SOS constraint\` error](https://discourse.julialang.org/t/sos-constraints-in-lp-file-throwing-malformed-sos-constraint-error/106324)

<div class="topic-metadata">

**Author:** [@hdavid16](https://discourse.julialang.org/u/hdavid16)\
**Replies:** 3\
**Last updated:** [November 16, 2023, 7:13pm UTC](https://discourse.julialang.org/t/sos-constraints-in-lp-file-throwing-malformed-sos-constraint-error/106324 "2023-11-16T19:13:29Z")

</div>

I have a large .lp file exported from CPLEX that I want to read into JuMP with read\_from\_file. However, the SOS constraints are defined in 2 lines each: s3: S1 :: x : 1 y : 2 As a result, the parsing doesn’…

---

## [JuMP with Pajarito/Pavito for a simple MINLP fails with solver does not support MathOptInterface.ScalarNonlinearFunction](https://discourse.julialang.org/t/jump-with-pajarito-pavito-for-a-simple-minlp-fails-with-solver-does-not-support-mathoptinterface-scalarnonlinearfunction/106314)

<div class="topic-metadata">

**Author:** [@stephanmg](https://discourse.julialang.org/u/stephanmg)\
**Replies:** 5\
**Last updated:** [November 16, 2023, 7:05pm UTC](https://discourse.julialang.org/t/jump-with-pajarito-pavito-for-a-simple-minlp-fails-with-solver-does-not-support-mathoptinterface-scalarnonlinearfunction/106314 "2023-11-16T19:05:39Z")

</div>

Dear all, trying to set up a simple MINLP somehow fails for me with: MathOptInterface.ScalarNonlinearFunction Code: using JuMP using HiGHS using Pavito, Pajarito, Hypatia using LinearAlgebra import Ipopt, GLPK vector…

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

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