# Latest

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

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

**Page:** 818

---

## [PrettyTables diff digits highlight?](https://discourse.julialang.org/t/prettytables-diff-digits-highlight/92664)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 9\
**Last updated:** [January 9, 2023, 7:52pm UTC](https://discourse.julialang.org/t/prettytables-diff-digits-highlight/92664 "2023-01-09T19:52:07Z")

</div>

Hi, First, kudos again to @Ronis\_BR for the super useful PrettyTables.jl package ! I was wondering if it could be possible to highlight diff digits between two columns with PrettyTables.jl like

---

## [How to implement custom image dataset for cnn in Julia Flux?](https://discourse.julialang.org/t/how-to-implement-custom-image-dataset-for-cnn-in-julia-flux/92505)

<div class="topic-metadata">

**Author:** [@Hardik\_Sakpal](https://discourse.julialang.org/u/Hardik_Sakpal)\
**Replies:** 6\
**Last updated:** [January 9, 2023, 7:00pm UTC](https://discourse.julialang.org/t/how-to-implement-custom-image-dataset-for-cnn-in-julia-flux/92505 "2023-01-09T19:00:00Z")

</div>

Hello, I want to train a CNN model using Julia Flux but I am not able to load and preprocess the custom image dataset for training. Can anyone provide me the code snippet for loading the custom image dataset and preproc…

---

## [Requires.jl and precompilation](https://discourse.julialang.org/t/requires-jl-and-precompilation/53155)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 6:25pm UTC](https://discourse.julialang.org/t/requires-jl-and-precompilation/53155 "2023-01-09T18:25:23Z")

</div>

I have a question, about Requires.jl and precompilation. Say I have the following package: module AxisArrayConversion ... \_\_init\_\_() = @require AxisArrays=... include("axis\_arrays.jl") end Then things defined in the “a…

---

## [\[ANN\] "Web Development with Julia and Genie" is out!](https://discourse.julialang.org/t/ann-web-development-with-julia-and-genie-is-out/92673)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 2:28pm UTC](https://discourse.julialang.org/t/ann-web-development-with-julia-and-genie-is-out/92673 "2023-01-08T14:28:04Z")

</div>

I am excited to announce the release of my new book, “Web Development with Julia and Genie.” This comprehensive guide covers everything you need to know about web development with Julia and Genie. The book begins with a…

---

## [DiffEqSensitivitys Manual VJPs documentation seems missing information](https://discourse.julialang.org/t/diffeqsensitivitys-manual-vjps-documentation-seems-missing-information/91890)

<div class="topic-metadata">

**Author:** [@damianoognissanti](https://discourse.julialang.org/u/damianoognissanti)\
**Replies:** 3\
**Last updated:** [January 9, 2023, 3:24pm UTC](https://discourse.julialang.org/t/diffeqsensitivitys-manual-vjps-documentation-seems-missing-information/91890 "2023-01-09T15:24:54Z")

</div>

Hello I am trying to add Manual VJPs to a project I am working on using adjoint\_sensitivities (from DiffEqSensitivity.jl), but the documentation seems missing information: https://docs.juliahub.com/DiffEqSensitivity/02…

---

## [Zygote calculate adjoint only for one of several arguments](https://discourse.julialang.org/t/zygote-calculate-adjoint-only-for-one-of-several-arguments/59606)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 5\
**Last updated:** [January 9, 2023, 3:06pm UTC](https://discourse.julialang.org/t/zygote-calculate-adjoint-only-for-one-of-several-arguments/59606 "2023-01-09T15:06:52Z")

</div>

Hey, is there a way that Zygote prevents the calculation of adjoints which are not needed at all? Let’s say we have a function f(a, b) where we only want to have the first gradient: b = #some value g(a) = f(a, b) Zygo…

---

## [Is there a package for calculating source code metrics?](https://discourse.julialang.org/t/is-there-a-package-for-calculating-source-code-metrics/63283)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 6\
**Last updated:** [January 9, 2023, 1:25pm UTC](https://discourse.julialang.org/t/is-there-a-package-for-calculating-source-code-metrics/63283 "2023-01-09T13:25:41Z")

</div>

Is there something like scc that allows to determine some code metrics for Julia in an easy, fire-and-forget kind of manner? What I’d be interested in is a tool that I can point at a directory, which it will recursively …

---

## [How to stack multiple environments/projects for a reproducibility repository?](https://discourse.julialang.org/t/how-to-stack-multiple-environments-projects-for-a-reproducibility-repository/92709)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 5\
**Last updated:** [January 9, 2023, 12:36pm UTC](https://discourse.julialang.org/t/how-to-stack-multiple-environments-projects-for-a-reproducibility-repository/92709 "2023-01-09T12:36:06Z")

</div>

Is it possible - and if yes, how - to stack multiple environments for a reproducibility repository? That is, I would like to have two sets of Project.toml/Manifest.toml files living outside the DEPOT\_PATH where I am able…

---

## [Meaning of warning: skipping PenaltyRelaxation](https://discourse.julialang.org/t/meaning-of-warning-skipping-penaltyrelaxation/92703)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [January 9, 2023, 12:29pm UTC](https://discourse.julialang.org/t/meaning-of-warning-skipping-penaltyrelaxation/92703 "2023-01-09T12:29:25Z")

</div>

what is the meaning of the warning in the example here: julia\> map = relax\_with\_penalty!(model) ┌ Warning: Skipping PenaltyRelaxation for ConstraintIndex{MathOptInterface.VariableIndex,MathOptInterface.GreaterThan{Float…

---

## [Inconsistant precision?](https://discourse.julialang.org/t/inconsistant-precision/92674)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 13\
**Last updated:** [January 9, 2023, 11:45am UTC](https://discourse.julialang.org/t/inconsistant-precision/92674 "2023-01-09T11:45:16Z")

</div>

Hello I am a bit confuse as to how precision is assigned or indicated in Julia. Consider: julia\> a = Complex(1.0, 0.0) 1.0 + 0.0im julia\> typeof(a) ComplexF64 So by default a Complex number will be built with Float6…

---

## [Using do with file handle somehow causes allocations?](https://discourse.julialang.org/t/using-do-with-file-handle-somehow-causes-allocations/92704)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 11:24am UTC](https://discourse.julialang.org/t/using-do-with-file-handle-somehow-causes-allocations/92704 "2023-01-09T11:24:28Z")

</div>

I was implementing some code regarding my prev question and came across some behavior that I can’t wrap my head around when reading chunks from a file. I put the reduced code below. Actually readbytes! doesn’t make the d…

---

## [MethodError: no method matching Float32(::RGB{N0f8})](https://discourse.julialang.org/t/methoderror-no-method-matching-float32-rgb-n0f8/92701)

<div class="topic-metadata">

**Author:** [@Hardik\_Sakpal](https://discourse.julialang.org/u/Hardik_Sakpal)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 10:56am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-float32-rgb-n0f8/92701 "2023-01-09T10:56:43Z")

</div>

Hello All, I am trying to do CNN Classification using Julia Flux but while doing so in one of the codes I am getting above mentioned error. using Flux using FileIO using Plots using Images using MLDataUtils: splitobs, …

---

## [Does unitful break the Float64 constructor?](https://discourse.julialang.org/t/does-unitful-break-the-float64-constructor/90655)

<div class="topic-metadata">

**Author:** [@Philip\_Stuckey](https://discourse.julialang.org/u/Philip_Stuckey)\
**Replies:** 2\
**Last updated:** [January 9, 2023, 10:50am UTC](https://discourse.julialang.org/t/does-unitful-break-the-float64-constructor/90655 "2023-01-09T10:50:25Z")

</div>

So I was running into an issue with a stack overflow error in JSON3, and in looking into it I discovered using Unitful: m Float64(10m) yields 10m In short, this means Float64(x) isa Float64 doesn’t always hold. Is…

---

## [Symmetry breaking: scheduling problems with job duration dependent on ressource allocation](https://discourse.julialang.org/t/symmetry-breaking-scheduling-problems-with-job-duration-dependent-on-ressource-allocation/92220)

<div class="topic-metadata">

**Author:** [@JNSDVD](https://discourse.julialang.org/u/JNSDVD)\
**Replies:** 5\
**Last updated:** [January 9, 2023, 9:51am UTC](https://discourse.julialang.org/t/symmetry-breaking-scheduling-problems-with-job-duration-dependent-on-ressource-allocation/92220 "2023-01-09T09:51:27Z")

</div>

Hey guys, I have been struggeling to speed up my optimization for quite a while now. Any help is highly appreciated! In contrast to most of the research, I deal with entities (=worker) and not with machines. But since …

---

## [VSCode handling of unicode automatic completion](https://discourse.julialang.org/t/vscode-handling-of-unicode-automatic-completion/92610)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 18\
**Last updated:** [January 9, 2023, 9:08am UTC](https://discourse.julialang.org/t/vscode-handling-of-unicode-automatic-completion/92610 "2023-01-09T09:08:16Z")

</div>

Hey, I find that the behavior in VSCode for the handling of unicode completion surprising. In the folloiwng examples, I will denote the position of the cursor when i hit the tab key (for autocompletion) \<TAB\> : myfun…

---

## [Mathematica BSplineCurve in Julia](https://discourse.julialang.org/t/mathematica-bsplinecurve-in-julia/78107)

<div class="topic-metadata">

**Author:** [@arnief3](https://discourse.julialang.org/u/arnief3)\
**Replies:** 17\
**Last updated:** [January 9, 2023, 9:05am UTC](https://discourse.julialang.org/t/mathematica-bsplinecurve-in-julia/78107 "2023-01-09T09:05:00Z")

</div>

I am trying to achieve the same result as BSplineCurve—Wolfram Language Documentation in julia. I have used Dierckx.jl for more straightforward spline fitting but am stumped on how to place data points and knots to achie…

---

## [FluxTraning log metrics](https://discourse.julialang.org/t/fluxtraning-log-metrics/92696)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 0\
**Last updated:** [January 9, 2023, 7:18am UTC](https://discourse.julialang.org/t/fluxtraning-log-metrics/92696 "2023-01-09T07:18:16Z")

</div>

Dear All, I am trying to use FluxTraing.jl to train my model: traindata, valdata = splitobs((data\_X, data\_Yr)) trainiter, valiter = DataLoader(traindata, 128), DataLoader(valdata, 256); learner = Learner(model, (tra…

---

## [JuMP model warm start using Ipopt](https://discourse.julialang.org/t/jump-model-warm-start-using-ipopt/92660)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 2\
**Last updated:** [January 9, 2023, 5:01am UTC](https://discourse.julialang.org/t/jump-model-warm-start-using-ipopt/92660 "2023-01-09T05:01:49Z")

</div>

I am solving a non-convex problem using Ipopt, and I want to warm start the same problem. That not only needs to set start variable value usingset\_start\_value, but also needs to set duals and multipliers. How can I acc…

---

## [Julia 1.7 and below do not have constant-type globals. Julia 1.8 implemented typed globals](https://discourse.julialang.org/t/julia-1-7-and-below-do-not-have-constant-type-globals-julia-1-8-implemented-typed-globals/1989)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 18\
**Last updated:** [January 9, 2023, 4:44am UTC](https://discourse.julialang.org/t/julia-1-7-and-below-do-not-have-constant-type-globals-julia-1-8-implemented-typed-globals/1989 "2023-01-09T04:44:18Z")

</div>

Quoting the documentation (http://docs.julialang.org/en/latest/manual/types.html#Type-Declarations-1): Currently, type declarations cannot be used in global scope, e.g. in the REPL, since Julia does not yet have consta…

---

## [Tell me about escape analysis and optimizing heap allocations](https://discourse.julialang.org/t/tell-me-about-escape-analysis-and-optimizing-heap-allocations/92658)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 4:05am UTC](https://discourse.julialang.org/t/tell-me-about-escape-analysis-and-optimizing-heap-allocations/92658 "2023-01-09T04:05:18Z")

</div>

Trying to read into the recent work on escape analysis a bit more, but I’m having trouble answering a couple basic questions of mine because my knowledge on this is very limited. Hopefully people in the know can provide …

---

## [MLJ w/Scikitlearn: passing return\_std to predict](https://discourse.julialang.org/t/mlj-w-scikitlearn-passing-return-std-to-predict/91654)

<div class="topic-metadata">

**Author:** [@evolbio](https://discourse.julialang.org/u/evolbio)\
**Replies:** 7\
**Last updated:** [January 9, 2023, 1:33am UTC](https://discourse.julialang.org/t/mlj-w-scikitlearn-passing-return-std-to-predict/91654 "2023-01-09T01:33:26Z")

</div>

Various Scikitlearn models accept return\_std=true when calling predict, for example BayesianRidgeRegressor, see this example. For example, with a BayesianRidgeRegressor or similar machine, I would like to call y\_predict…

---

## [Gtk example help](https://discourse.julialang.org/t/gtk-example-help/92655)

<div class="topic-metadata">

**Author:** [@rbme](https://discourse.julialang.org/u/rbme)\
**Replies:** 2\
**Last updated:** [January 9, 2023, 12:57am UTC](https://discourse.julialang.org/t/gtk-example-help/92655 "2023-01-09T00:57:38Z")

</div>

New to programming and Julia. Trying out an example with the GTk package. It runs OK calling the .jl file under the julia REPL. include(“gtktest.jl”). Window comes up and when I press the button i get the "button was p…

---

## [Julia mentor face to face in downtown Chicago sought](https://discourse.julialang.org/t/julia-mentor-face-to-face-in-downtown-chicago-sought/92677)

<div class="topic-metadata">

**Author:** [@1153dent](https://discourse.julialang.org/u/1153dent)\
**Replies:** 1\
**Last updated:** [January 9, 2023, 12:34am UTC](https://discourse.julialang.org/t/julia-mentor-face-to-face-in-downtown-chicago-sought/92677 "2023-01-09T00:34:56Z")

</div>

Hi all I am still working my way to coding in Julia effectively but am struggling with some concepts that I am unfamiliar with. I sometimes find that a face to face can address my questions more effectively than this w…

---

## [How to set xlabel and ylabel in Makie recipe?](https://discourse.julialang.org/t/how-to-set-xlabel-and-ylabel-in-makie-recipe/68279)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [January 8, 2023, 11:13pm UTC](https://discourse.julialang.org/t/how-to-set-xlabel-and-ylabel-in-makie-recipe/68279 "2023-01-08T23:13:36Z")

</div>

Is it possible to set the xlabel, ylabel and zlabel within a Makie recipe? I am finishing a recipe for biplots, but can’t figure out how to set the labels of the axes to contain the variance explained. I would like to w…

---

## [Library to track performance over time](https://discourse.julialang.org/t/library-to-track-performance-over-time/92656)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 3\
**Last updated:** [January 8, 2023, 5:25pm UTC](https://discourse.julialang.org/t/library-to-track-performance-over-time/92656 "2023-01-08T17:25:15Z")

</div>

I’m often interested in tracking certain metrics’ evolution over time (eg. performance on some benchmark task, model accuracy, time-to-first-plot, testing time, etc.) Is there a library that helps with these things? I kn…

---

## [\[ANN\] MultilayerGraphs.jl (v1.1): Multilayer Network Science in Julia](https://discourse.julialang.org/t/ann-multilayergraphs-jl-v1-1-multilayer-network-science-in-julia/92680)

<div class="topic-metadata">

**Author:** [@InPhyT](https://discourse.julialang.org/u/InPhyT)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 5:05pm UTC](https://discourse.julialang.org/t/ann-multilayergraphs-jl-v1-1-multilayer-network-science-in-julia/92680 "2023-01-08T17:05:13Z")

</div>

We (@claudio20497 and @PietroMonticone) are excited to announce the new version of MultilayerGraphs.jl: a Julia package for the creation, manipulation and analysis of the structure, dynamics and functions of multilayer g…

---

## [Trying to add YahooFinance.jl and pkg asks for my username and password](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814)

<div class="topic-metadata">

**Author:** [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Replies:** 11\
**Last updated:** [January 8, 2023, 4:58pm UTC](https://discourse.julialang.org/t/trying-to-add-yahoofinance-jl-and-pkg-asks-for-my-username-and-password/91814 "2023-01-08T16:58:53Z")

</div>

Hello all, I’m trying to install YahooFinance to download financial data. Problem is when I try to add or clone the github repository I get a message to enter my user name and password. When I enter them, it just keeps …

---

## [Applying a macro to a variable](https://discourse.julialang.org/t/applying-a-macro-to-a-variable/92188)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 14\
**Last updated:** [January 8, 2023, 12:38pm UTC](https://discourse.julialang.org/t/applying-a-macro-to-a-variable/92188 "2023-01-08T12:38:04Z")

</div>

I created a macro to generate a simple sequence: macro seq(n::Int64) # n is degree f = \[\] I = Vector{Int}() if n \< 0 print("The input must be equal to or bigger than zero.") else for i…

---

## [How do I distinguish the first in pair and second in pair in pair end bam using XAM?](https://discourse.julialang.org/t/how-do-i-distinguish-the-first-in-pair-and-second-in-pair-in-pair-end-bam-using-xam/92536)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 3:51pm UTC](https://discourse.julialang.org/t/how-do-i-distinguish-the-first-in-pair-and-second-in-pair-in-pair-end-bam-using-xam/92536 "2023-01-08T15:51:34Z")

</div>

I have a pair end bam. And I want to know whether the record is the first in pair or the second in pair. I use the julia package called XAM.jl. using XAM bamfile="..." reader=open(BAM.Reader,bamfile) mapped\_chr1 = Itera…

---

## [Setting up a build environment in BinaryBuilder](https://discourse.julialang.org/t/setting-up-a-build-environment-in-binarybuilder/92669)

<div class="topic-metadata">

**Author:** [@Rex\_Wang](https://discourse.julialang.org/u/Rex_Wang)\
**Replies:** 1\
**Last updated:** [January 8, 2023, 1:38pm UTC](https://discourse.julialang.org/t/setting-up-a-build-environment-in-binarybuilder/92669 "2023-01-08T13:38:44Z")

</div>

Hello! I am writing a wrapper for zbar, but the environment of the container is minimized, so I need to install some additional packages. More precisely, I need to install libmagickwand-dev as mentioned in an issue of z…

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

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