# Latest

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

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

**Page:** 879

---

## [Precompiling Flux](https://discourse.julialang.org/t/precompiling-flux/89577)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 7:43pm UTC](https://discourse.julialang.org/t/precompiling-flux/89577 "2022-10-31T19:43:54Z")

</div>

I am working on the Mac with Julia 1.8.2 in Visual Code. I installed Flux, but when adding it via the package manager using \\ followed by add, I get the following error: ERROR: LoadError: UndefVarError: IndicesInfo not …

---

## [Getting output after solver timeout reached](https://discourse.julialang.org/t/getting-output-after-solver-timeout-reached/81324)

<div class="topic-metadata">

**Author:** [@Viktor\_Pavlovic](https://discourse.julialang.org/u/Viktor_Pavlovic)\
**Replies:** 9\
**Last updated:** [October 31, 2022, 8:03pm UTC](https://discourse.julialang.org/t/getting-output-after-solver-timeout-reached/81324 "2022-10-31T20:03:07Z")

</div>

Hello all, I have recently started using Couenne to solve MINLPs and have now encountered problems where I don’t obtain a solution in a reasonable amount of time. I am wondering if I can get set a time limit and obtain …

---

## [Maximum of matrix vector product for "large" matrices](https://discourse.julialang.org/t/maximum-of-matrix-vector-product-for-large-matrices/89229)

<div class="topic-metadata">

**Author:** [@DorianC](https://discourse.julialang.org/u/DorianC)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 8:17pm UTC](https://discourse.julialang.org/t/maximum-of-matrix-vector-product-for-large-matrices/89229 "2022-10-31T20:17:06Z")

</div>

I am using MTK and noticed that when I construct an algebraic variable defined as the max of the matrix-vector product of the state vector, the results are accurate for small matrices, but go inaccurate rapidly as the ma…

---

## [Do we need to apply weights if we are using the AUC PR for imbalanced data?](https://discourse.julialang.org/t/do-we-need-to-apply-weights-if-we-are-using-the-auc-pr-for-imbalanced-data/89533)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 0\
**Last updated:** [October 30, 2022, 10:58pm UTC](https://discourse.julialang.org/t/do-we-need-to-apply-weights-if-we-are-using-the-auc-pr-for-imbalanced-data/89533 "2022-10-30T22:58:16Z")

</div>

If we want to apply a classification model to imbalanced data we should Apply weights to the classes or use a cost matrix. Use the metrics more robust to imbalance, for example the AUC PR better than the AUC ROC, and t…

---

## [Decade missing in bode plot](https://discourse.julialang.org/t/decade-missing-in-bode-plot/89564)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 6:22pm UTC](https://discourse.julialang.org/t/decade-missing-in-bode-plot/89564 "2022-10-31T18:22:35Z")

</div>

When I plot the bode diagram it hides the decade 10¹ begin using ControlSystems using Plots h₁ = tf( \[10\], \[1, 20\] ) bodeplot(h₁) end How to show the missing decade?

---

## [Makie - plot script returned without visualization window](https://discourse.julialang.org/t/makie-plot-script-returned-without-visualization-window/59828)

<div class="topic-metadata">

**Author:** [@jwu](https://discourse.julialang.org/u/jwu)\
**Replies:** 6\
**Last updated:** [October 31, 2022, 6:09pm UTC](https://discourse.julialang.org/t/makie-plot-script-returned-without-visualization-window/59828 "2022-10-31T18:09:18Z")

</div>

I see the documentation that it might be a problem of GLMakie building, but my build seems fine without any errors. I also tried build GLMakie, it looks fine. this is my code for test: using ModernGL #using Makie #usi…

---

## [Removing Juliaup on Windows](https://discourse.julialang.org/t/removing-juliaup-on-windows/89573)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 5:39pm UTC](https://discourse.julialang.org/t/removing-juliaup-on-windows/89573 "2022-10-31T17:39:34Z")

</div>

I am using Juliaup on Windows 10. Is there a method to completely remove it and the installed Julia files? I would like to start from a freshly installed base.

---

## [Gradient on GPU 70X slower than on CPU](https://discourse.julialang.org/t/gradient-on-gpu-70x-slower-than-on-cpu/89407)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 13\
**Last updated:** [October 28, 2022, 9:39pm UTC](https://discourse.julialang.org/t/gradient-on-gpu-70x-slower-than-on-cpu/89407 "2022-10-28T21:39:59Z")

</div>

I just started using Flux.jl. I have a loss function whose gradient is calculated much slower on GPU than on CPU. As a machine learning project typically involves a large dataset, it is difficult to create a MWE, but I…

---

## [\[ANN\] NeuroJ.jl](https://discourse.julialang.org/t/ann-neuroj-jl/82665)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 9\
**Last updated:** [October 31, 2022, 2:00pm UTC](https://discourse.julialang.org/t/ann-neuroj-jl/82665 "2022-10-31T14:00:50Z")

</div>

Hi, This is the first public release, I’m kinda nervous and excited :slight\_smile: NeuroJ.jl is a Julia package for analyzing of EEG data. Future versions will also process MEG and NIRS data and use MRI data for source…

---

## [Bumping package version after Artifact update](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 11\
**Last updated:** [October 31, 2022, 4:30pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522 "2022-10-31T16:30:35Z")

</div>

If I update the source of the artifact (.tar.gz file in another repo) that the package depends upon, do I need to bump the package version? Or will the artifact system automatically see, that the source has changed and w…

---

## [NUTS Sampler stuck in rejected due to numerical errors](https://discourse.julialang.org/t/nuts-sampler-stuck-in-rejected-due-to-numerical-errors/89571)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 3:35pm UTC](https://discourse.julialang.org/t/nuts-sampler-stuck-in-rejected-due-to-numerical-errors/89571 "2022-10-31T15:35:32Z")

</div>

The Turing sampler seems to be stuck on Warning: The current proposal will be rejected due to numerical error(s). │ isfinite.((θ, r, ℓπ, ℓκ)) = (true, false, false, false) There seems to have been others who have fac…

---

## [XKCD style plots](https://discourse.julialang.org/t/xkcd-style-plots/89477)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 3:26pm UTC](https://discourse.julialang.org/t/xkcd-style-plots/89477 "2022-10-31T15:26:49Z")

</div>

I’m a frequent user of the xkcd R package which allows you to make plots like the ones you see in xkcd. Has anyone tried to make a theme like that for Makie or any other plotting package? A quick duck duck go search woul…

---

## [How to specify a transformation with multiple arguments via minilanguage](https://discourse.julialang.org/t/how-to-specify-a-transformation-with-multiple-arguments-via-minilanguage/89474)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 2:59pm UTC](https://discourse.julialang.org/t/how-to-specify-a-transformation-with-multiple-arguments-via-minilanguage/89474 "2022-10-31T14:59:20Z")

</div>

Suppose I have a DataFrame df and GroupDataFrame df = DataFrame(a=\[1,1,2,2\], b =\[3,3,4,4\]) dfg = groupby(df,:a) further suppose I have a function fun1 that takes a vector x and multiple arguments y, z. function fun1(x…

---

## [Can't add Floops.jl](https://discourse.julialang.org/t/cant-add-floops-jl/89566)

<div class="topic-metadata">

**Author:** [@Mouad](https://discourse.julialang.org/u/Mouad)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 2:56pm UTC](https://discourse.julialang.org/t/cant-add-floops-jl/89566 "2022-10-31T14:56:40Z")

</div>

Hello, I am trying to paralleize something but I can’t add Floops. pkg\> add Floops.jl ERROR: The following package names could not be resolved: \* Floops (not found in project, manifest or registry) I deleted the regi…

---

## [Efficient way to multiply a matrix by each element of another matrix and store in one large matrix](https://discourse.julialang.org/t/efficient-way-to-multiply-a-matrix-by-each-element-of-another-matrix-and-store-in-one-large-matrix/89552)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 1:30pm UTC](https://discourse.julialang.org/t/efficient-way-to-multiply-a-matrix-by-each-element-of-another-matrix-and-store-in-one-large-matrix/89552 "2022-10-31T13:30:49Z")

</div>

I need to multiply a matrix A with each element of another matrix B. The result should be stored in one large matrix, C. This should work for arbitrarily large matrices. To give a specific example: Take to matrices Aan…

---

## [An outer-product in Yao?](https://discourse.julialang.org/t/an-outer-product-in-yao/89543)

<div class="topic-metadata">

**Author:** [@BoltzmannEntropy](https://discourse.julialang.org/u/BoltzmannEntropy)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 12:52pm UTC](https://discourse.julialang.org/t/an-outer-product-in-yao/89543 "2022-10-31T12:52:17Z")

</div>

Hello, I am trying to evaluate the following expression: I3 + ψ\*ψ' First, is there a way in Yao to create an arbitrary sized Identity matrix like I3? using Yao, YaoPlots using YaoBlocks: eigenbasis ψ=ArrayReg(bit"11…

---

## [How to use Markdown reference links with Documenter.jl](https://discourse.julialang.org/t/how-to-use-markdown-reference-links-with-documenter-jl/84232)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 11:27am UTC](https://discourse.julialang.org/t/how-to-use-markdown-reference-links-with-documenter-jl/84232 "2022-10-31T11:27:03Z")

</div>

I usually use Markdown reference links quite often in Markdown files for documentation, e.g. to write: CellArrays relies on \[StaticArrays.jl\], \[Adapt.jl\] and the Julia GPU packages \[CUDA.jl\] and \[AMDGPU.jl\]. \[StaticArra…

---

## [Odd stacktrace in vscode jupyter](https://discourse.julialang.org/t/odd-stacktrace-in-vscode-jupyter/70742)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 6\
**Last updated:** [October 31, 2022, 11:11am UTC](https://discourse.julialang.org/t/odd-stacktrace-in-vscode-jupyter/70742 "2022-10-31T11:11:51Z")

</div>

Dear all I just realized an annoying feature in the stacktraces of the VScode jupyter notebook interface (VS Code Version: 1.61.2, julia version 1.6.3, on Mac OS X BigSur 11.6). I am using the Julia VS Code Extension (…

---

## [How DataFramesMeta @by works if you want to groupby two columns?](https://discourse.julialang.org/t/how-dataframesmeta-by-works-if-you-want-to-groupby-two-columns/89305)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 10\
**Last updated:** [October 31, 2022, 10:33am UTC](https://discourse.julialang.org/t/how-dataframesmeta-by-works-if-you-want-to-groupby-two-columns/89305 "2022-10-31T10:33:14Z")

</div>

Hi all, I was reading the DataFramesMeta docu trying to solve a small issue that I have, but I couldn’t find the answer. Any help is welcome! Basically, I have a df that looks like this: df = DataFrame( a =…

---

## [LightOSM: precomputing dijkstra\_states throws an UndefVarError](https://discourse.julialang.org/t/lightosm-precomputing-dijkstra-states-throws-an-undefvarerror/89551)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 10:26am UTC](https://discourse.julialang.org/t/lightosm-precomputing-dijkstra-states-throws-an-undefvarerror/89551 "2022-10-31T10:26:39Z")

</div>

From LightOSM.jl/benchmarks.jl at master · DeloitteOptimalReality/LightOSM.jl · GitHub point = GeoLocation(-37.8142176, 144.9631608) # Melbourne, Australia radius = 5 # km data\_file = joinpath(@\_\_DIR\_\_, "benchmark\_map.o…

---

## [GKS error in plotting using Plots packages](https://discourse.julialang.org/t/gks-error-in-plotting-using-plots-packages/89526)

<div class="topic-metadata">

**Author:** [@Tsegev123](https://discourse.julialang.org/u/Tsegev123)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 7:45am UTC](https://discourse.julialang.org/t/gks-error-in-plotting-using-plots-packages/89526 "2022-10-31T07:45:25Z")

</div>

Hey all, I am trying to plot a graph on Julia, and the plot is being done but I don’t see the axes, nor the title or legend, all I get is the following message: GKS: Rectangle definition is invalid in routine SET\_VIEWP…

---

## [Bootstrapping is fast on M1 Max, slow on HPC Knights Landing / Broadwell](https://discourse.julialang.org/t/bootstrapping-is-fast-on-m1-max-slow-on-hpc-knights-landing-broadwell/89463)

<div class="topic-metadata">

**Author:** [@JAF](https://discourse.julialang.org/u/JAF)\
**Replies:** 12\
**Last updated:** [October 31, 2022, 9:05am UTC](https://discourse.julialang.org/t/bootstrapping-is-fast-on-m1-max-slow-on-hpc-knights-landing-broadwell/89463 "2022-10-31T09:05:26Z")

</div>

Hi, I have successfully converted a statistical bootstrapping experiment originally written in Python. My workflow loads multiple datasets of grid data (Z sets of MxNxT) that represent numerical simulations with varying…

---

## [A preview of \`StatisticalGraphics\` a new package for data visualisation in Julia](https://discourse.julialang.org/t/a-preview-of-statisticalgraphics-a-new-package-for-data-visualisation-in-julia/89547)

<div class="topic-metadata">

**Author:** [@sl-solution](https://discourse.julialang.org/u/sl-solution)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 8:46am UTC](https://discourse.julialang.org/t/a-preview-of-statisticalgraphics-a-new-package-for-data-visualisation-in-julia/89547 "2022-10-31T08:46:26Z")

</div>

I am very excited to share a preview of StatisticalGraphics, a package that I have developed for statistical data visualisation in Julia. The idea of the package is to develop a simple to use and yet powerful tool for st…

---

## [\[ANN\] DataFrameIntervals.jl — joins on intervals of time](https://discourse.julialang.org/t/ann-dataframeintervals-jl-joins-on-intervals-of-time/84190)

<div class="topic-metadata">

**Author:** [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Replies:** 40\
**Last updated:** [October 31, 2022, 8:35am UTC](https://discourse.julialang.org/t/ann-dataframeintervals-jl-joins-on-intervals-of-time/84190 "2022-10-31T08:35:36Z")

</div>

Hello all! I’ve created a small utility package that implements interval\_join on DataFrame objects, called DataFrameIntervals. Rows match in this join if their time spans overlap. The time spans can be represented as …

---

## [Why is this type check so slow](https://discourse.julialang.org/t/why-is-this-type-check-so-slow/89546)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 8:32am UTC](https://discourse.julialang.org/t/why-is-this-type-check-so-slow/89546 "2022-10-31T08:32:11Z")

</div>

Shouldn’t type checks for statically known types be free at runtime? julia\> const IntUInt = Union{Int, UInt} Union{Int64, UInt64} julia\> struct T{U \<: Integer} x::U end julia\> @btime 1 isa T{\<:IntUIn…

---

## [ProfileView takes a long time for "using"](https://discourse.julialang.org/t/profileview-takes-a-long-time-for-using/89530)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 7:35am UTC](https://discourse.julialang.org/t/profileview-takes-a-long-time-for-using/89530 "2022-10-31T07:35:53Z")

</div>

julia\> using Profile julia\> @profile using PythonCall \`\`profiletook a long time (way more than 10 sec.), vs@time using. Is that normal? I thought it, or when using @profilevewdirectly, had hung (maybe it did). It did f…

---

## [Is it possible to add template programming and Metaclasses using Julia macro system?](https://discourse.julialang.org/t/is-it-possible-to-add-template-programming-and-metaclasses-using-julia-macro-system/89535)

<div class="topic-metadata">

**Author:** [@phantomcraft](https://discourse.julialang.org/u/phantomcraft)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 7:33am UTC](https://discourse.julialang.org/t/is-it-possible-to-add-template-programming-and-metaclasses-using-julia-macro-system/89535 "2022-10-31T07:33:13Z")

</div>

I’m comming from Python and I’m very interested on Julia due to its string macros feature. Is it possible to implement template metaprograming and Metaclasses (Python has) just creating macros?

---

## [Confusion On Cartesian And Linear Index](https://discourse.julialang.org/t/confusion-on-cartesian-and-linear-index/89479)

<div class="topic-metadata">

**Author:** [@uje](https://discourse.julialang.org/u/uje)\
**Replies:** 4\
**Last updated:** [October 31, 2022, 6:09am UTC](https://discourse.julialang.org/t/confusion-on-cartesian-and-linear-index/89479 "2022-10-31T06:09:02Z")

</div>

I know cartesian index is to be of this nature: x\[i, j\] and linear index is of x\[i\]. With that said, let me explain my confusion. I have a 3D array: julia\> A = \[1 2 3; 4 5 6;;; 7 8 9; 10 12 13\] 2×3×2 Array{Int64, 3}: \[…

---

## [Substitutions for powers with new symbolic variables](https://discourse.julialang.org/t/substitutions-for-powers-with-new-symbolic-variables/89540)

<div class="topic-metadata">

**Author:** [@xyli](https://discourse.julialang.org/u/xyli)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 5:08am UTC](https://discourse.julialang.org/t/substitutions-for-powers-with-new-symbolic-variables/89540 "2022-10-31T05:08:12Z")

</div>

Does anyone know if there are other Julia functions that can substitute “x\*y” by “a”? I had a discussion with Symbolics developers about it, but it seems to be a deadlock now. Please kindly see the discussion here,

---

## [@match alternative catchall](https://discourse.julialang.org/t/match-alternative-catchall/89426)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [October 31, 2022, 2:14am UTC](https://discourse.julialang.org/t/match-alternative-catchall/89426 "2022-10-31T02:14:13Z")

</div>

I’d like to use @match within @chain @rtransform, but both the MLStyle and Match versions use \_ as the catchall which causes an error as its used by @chain. Is there an alternative catchall in any @match package? @ch…

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

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