# Latest

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

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

**Page:** 609

---

## [Overriding Rand.rand for vectorization](https://discourse.julialang.org/t/overriding-rand-rand-for-vectorization/103375)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 5\
**Last updated:** [August 30, 2023, 6:02pm UTC](https://discourse.julialang.org/t/overriding-rand-rand-for-vectorization/103375 "2023-08-30T18:02:58Z")

</div>

Hello. I have followed the advice from Random Numbers · The Julia Language to create a custom sampler for my struct. This is good first step, but I would like to modify the sampler a bit. Currently the sampler takes tree…

---

## [Julia Nightly fails with an error on overwritten method](https://discourse.julialang.org/t/julia-nightly-fails-with-an-error-on-overwritten-method/103358)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 3\
**Last updated:** [August 30, 2023, 3:53pm UTC](https://discourse.julialang.org/t/julia-nightly-fails-with-an-error-on-overwritten-method/103358 "2023-08-30T15:53:38Z")

</div>

I need to work with someone else’s code repository and I have zero experience in Julia (although I know how to program). This code repository runs workflows on GitHub Actions, and one of the workflows that runs under Jul…

---

## [VS-Code Lint error in DataFrame column access](https://discourse.julialang.org/t/vs-code-lint-error-in-dataframe-column-access/103366)

<div class="topic-metadata">

**Author:** [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Replies:** 4\
**Last updated:** [August 30, 2023, 2:32pm UTC](https://discourse.julialang.org/t/vs-code-lint-error-in-dataframe-column-access/103366 "2023-08-30T14:32:33Z")

</div>

The following code show a lint error in VS-Code: using DataFrames function Mainline() df = DataFrame(col\_name = 1:3) # this line runs but a linter error is displayed for col\_name var1 = minimum(df.col\_name)…

---

## [Cannot make plots (sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.)](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [August 30, 2023, 2:22pm UTC](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363 "2023-08-30T14:22:16Z")

</div>

I tried to plot something in VSCode: using Plots plot(x-\>x) However, no plot is displayed and I get a printed message: sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show …

---

## [JuliaCon Proceedings 2023: Timeline?](https://discourse.julialang.org/t/juliacon-proceedings-2023-timeline/103320)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 7\
**Last updated:** [August 30, 2023, 1:50pm UTC](https://discourse.julialang.org/t/juliacon-proceedings-2023-timeline/103320 "2023-08-30T13:50:59Z")

</div>

Since I couldn’t find a discussion about this anywhere, I figured to start a post here. Having read the docs about the proceedings and having looked at some previous publications, the only info I miss is the timeline. Ca…

---

## [Should we define new functions/structs in an extension?](https://discourse.julialang.org/t/should-we-define-new-functions-structs-in-an-extension/103361)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 4\
**Last updated:** [August 30, 2023, 1:16pm UTC](https://discourse.julialang.org/t/should-we-define-new-functions-structs-in-an-extension/103361 "2023-08-30T13:16:21Z")

</div>

Newly defined functions/structs exposed in package extensions are not exposed in the main package (also not once the extension is loaded). See this related question and workaround: How to use functions defined in package…

---

## [Printing exact decimal representations](https://discourse.julialang.org/t/printing-exact-decimal-representations/103365)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 2\
**Last updated:** [August 30, 2023, 12:06pm UTC](https://discourse.julialang.org/t/printing-exact-decimal-representations/103365 "2023-08-30T12:06:36Z")

</div>

I don’t think there is, but it would be great if there was one.

---

## [Calculation of remainder, floating point issues](https://discourse.julialang.org/t/calculation-of-remainder-floating-point-issues/103338)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 7\
**Last updated:** [August 29, 2023, 8:13pm UTC](https://discourse.julialang.org/t/calculation-of-remainder-floating-point-issues/103338 "2023-08-29T20:13:16Z")

</div>

The following remainder calculations are a bit surprising to me, as I’d expect to get a remainder of 0 (or something like ~1e-18) in each case. I guess there is some floating point issue: julia\> rem(500,0.625) 0.0 ju…

---

## [Unpacking in arglist vs inside function](https://discourse.julialang.org/t/unpacking-in-arglist-vs-inside-function/103264)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [August 30, 2023, 12:09pm UTC](https://discourse.julialang.org/t/unpacking-in-arglist-vs-inside-function/103264 "2023-08-30T12:09:22Z")

</div>

Unpacking inside the function assigns into the parent scope; unpacking in the arglist binds a new variable. Should I expect that from something in Scope of Variables · The Julia Language or is that arglist-unpacking a sp…

---

## [No coverage files generated outside project on Julia 1.9](https://discourse.julialang.org/t/no-coverage-files-generated-outside-project-on-julia-1-9/103359)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 30, 2023, 11:25am UTC](https://discourse.julialang.org/t/no-coverage-files-generated-outside-project-on-julia-1-9/103359 "2023-08-30T11:25:41Z")

</div>

I am working with two packages, where a downstream package depends on a base package. The directory structure is of the form A - Project.toml - Manifest.toml - src - \[...\] - test - \[...\] - B - Proj…

---

## [Is there a good tutorial for using JSON in Julia?](https://discourse.julialang.org/t/is-there-a-good-tutorial-for-using-json-in-julia/103356)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 3\
**Last updated:** [August 30, 2023, 11:24am UTC](https://discourse.julialang.org/t/is-there-a-good-tutorial-for-using-json-in-julia/103356 "2023-08-30T11:24:27Z")

</div>

Hello, I am starting to learn how to use JSON in Julia. I can create a json object, for sinatcne: jsJ = JSON.json(Dict("name"=\>\["Paul", "Peter", "Jude", "Mark"\], "level"=\>\[1, 10, 20, 30\], "code"=\>\["Pa", "Pe", "…

---

## [DomainError with Loss is Inf on data item 1, stopping training:](https://discourse.julialang.org/t/domainerror-with-loss-is-inf-on-data-item-1-stopping-training/103343)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 1\
**Last updated:** [August 30, 2023, 11:22am UTC](https://discourse.julialang.org/t/domainerror-with-loss-is-inf-on-data-item-1-stopping-training/103343 "2023-08-30T11:22:19Z")

</div>

I’m trying to learn Julia and ML principles simultaneously. I’ve successfully trained a model to fit a simple straight line, following the procedure described in the intro docs, but when I try to go a step further and ad…

---

## [Automatically install packages used in script](https://discourse.julialang.org/t/automatically-install-packages-used-in-script/102279)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 5\
**Last updated:** [August 30, 2023, 8:27am UTC](https://discourse.julialang.org/t/automatically-install-packages-used-in-script/102279 "2023-08-30T08:27:22Z")

</div>

For some time now we can do using Package and julia will prompt the installation of the package. Wouldn’t it be nice to have a command-line option that does that, like: julia --project -pkginstall=\[no(default)/yes/prom…

---

## [Are vectorized constraints no longer supported on JuMP?](https://discourse.julialang.org/t/are-vectorized-constraints-no-longer-supported-on-jump/103355)

<div class="topic-metadata">

**Author:** [@AS011996](https://discourse.julialang.org/u/AS011996)\
**Replies:** 1\
**Last updated:** [August 30, 2023, 8:03am UTC](https://discourse.julialang.org/t/are-vectorized-constraints-no-longer-supported-on-jump/103355 "2023-08-30T08:03:52Z")

</div>

The vectorized constraints on Constraints · JuMP no longer seems to work. The following code using JuMP model = Model(); @variable(model, x\[i=1:2\]) A = \[1 2; 3 4\] b = \[5, 6\] @constraint(model, con\_vector, A \* x == b)…

---

## [Is there Julia Merch?](https://discourse.julialang.org/t/is-there-julia-merch/103251)

<div class="topic-metadata">

**Author:** [@JakobThumm](https://discourse.julialang.org/u/JakobThumm)\
**Replies:** 7\
**Last updated:** [August 30, 2023, 7:58am UTC](https://discourse.julialang.org/t/is-there-julia-merch/103251 "2023-08-30T07:58:27Z")

</div>

Hi Julianers, my colleague is the biggest Julia Nerd on earth, and I’m wondering if there is any Julia Merchandise, e.g., stickers, that we could put on his doctoral hat :smiley:

---

## [Combinatorial Benders cuts](https://discourse.julialang.org/t/combinatorial-benders-cuts/103012)

<div class="topic-metadata">

**Author:** [@papar](https://discourse.julialang.org/u/papar)\
**Replies:** 7\
**Last updated:** [August 30, 2023, 2:56am UTC](https://discourse.julialang.org/t/combinatorial-benders-cuts/103012 "2023-08-30T02:56:17Z")

</div>

I have a big-M constraint in a stochastic programming problem that I want to replace with combinatorial Benders cuts. I have tried implementing combinatorial Bender decomposition, but I get unbounded problem error when i…

---

## [How Would You Compare Metaprogramming in Julia and Tcl?](https://discourse.julialang.org/t/how-would-you-compare-metaprogramming-in-julia-and-tcl/103342)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 7\
**Last updated:** [August 30, 2023, 12:29am UTC](https://discourse.julialang.org/t/how-would-you-compare-metaprogramming-in-julia-and-tcl/103342 "2023-08-30T00:29:11Z")

</div>

Hi folks! :wave: I had a very interesting discussion today with an actual Tcl programmer (never met one before!). He and I were discussing a domain specific language (DSL) he had created in Tcl that had syntax that look…

---

## [Docker Image layer with package dependency](https://discourse.julialang.org/t/docker-image-layer-with-package-dependency/103348)

<div class="topic-metadata">

**Author:** [@A\_M](https://discourse.julialang.org/u/A_M)\
**Replies:** 0\
**Last updated:** [August 30, 2023, 12:15am UTC](https://discourse.julialang.org/t/docker-image-layer-with-package-dependency/103348 "2023-08-30T00:15:42Z")

</div>

I plan to create a docker base image with Julia and all packages for my projects. I will not copy my projects into the docker at this phase, but I have all Project. toml files. What is the proper way to get all packages …

---

## [Activate conda environment and run the conda program within Julia script](https://discourse.julialang.org/t/activate-conda-environment-and-run-the-conda-program-within-julia-script/55604)

<div class="topic-metadata">

**Author:** [@biofuture](https://discourse.julialang.org/u/biofuture)\
**Replies:** 2\
**Last updated:** [August 29, 2023, 10:46pm UTC](https://discourse.julialang.org/t/activate-conda-environment-and-run-the-conda-program-within-julia-script/55604 "2023-08-29T22:46:29Z")

</div>

Hi, developers I would like to invoke a conda environment within the Julia script and then run the program in the conda environment in Julia using run(pipeline()) to invoke them. It seems that it does not work. Does a…

---

## [JuliaCon 2023 Day 1 of Talks Available on YouTube](https://discourse.julialang.org/t/juliacon-2023-day-1-of-talks-available-on-youtube/103345)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 0\
**Last updated:** [August 29, 2023, 8:39pm UTC](https://discourse.julialang.org/t/juliacon-2023-day-1-of-talks-available-on-youtube/103345 "2023-08-29T20:39:05Z")

</div>

Hi everyone, Day 1 of Talks (26th July 2023) are now available on YouTube. Same playlist: https://www.youtube.com/watch?v=wmCra6roZn4&list=PLP8iPy9hna6T7PRe2sucSonFsrrH-oEZC. Best, Ranjan Anantharaman Executive Chair…

---

## [Code suggestions are not supported for this language](https://discourse.julialang.org/t/code-suggestions-are-not-supported-for-this-language/103294)

<div class="topic-metadata">

**Author:** [@thoth291](https://discourse.julialang.org/u/thoth291)\
**Replies:** 7\
**Last updated:** [August 29, 2023, 7:53pm UTC](https://discourse.julialang.org/t/code-suggestions-are-not-supported-for-this-language/103294 "2023-08-29T19:53:18Z")

</div>

I use VScode for most of my work and now trying to adopt it for Julia dev activities. I have juliaup install on my PC and my default version is release (1.9.3 at this time). I open the folder with my Project.toml and h…

---

## [Filled contour plots in Plots.jl without contour lines and smooth interpolation (GR backend)](https://discourse.julialang.org/t/filled-contour-plots-in-plots-jl-without-contour-lines-and-smooth-interpolation-gr-backend/34796)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 40\
**Last updated:** [August 29, 2023, 7:28pm UTC](https://discourse.julialang.org/t/filled-contour-plots-in-plots-jl-without-contour-lines-and-smooth-interpolation-gr-backend/34796 "2023-08-29T19:28:48Z")

</div>

Actually, these are two questions towards Plots.jl with the GR backend in one post (hope that’s ok, I think they are related): Is it possible to create a filled contour plot (using plot(linetype=:contourf, ...) withou…

---

## [Issue updating package](https://discourse.julialang.org/t/issue-updating-package/103341)

<div class="topic-metadata">

**Author:** [@polar\_rainbows](https://discourse.julialang.org/u/polar_rainbows)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 7:15pm UTC](https://discourse.julialang.org/t/issue-updating-package/103341 "2023-08-29T19:15:22Z")

</div>

I tried to go to the url given on the help pages for JuliaHub (Contribute Â· JuliaHub which points to the registrator page: JuliaHub) to update a package that I have had on the repository for several months now. I got a …

---

## [TLS host certificate problem with private registry](https://discourse.julialang.org/t/tls-host-certificate-problem-with-private-registry/103312)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 12\
**Last updated:** [August 29, 2023, 7:00pm UTC](https://discourse.julialang.org/t/tls-host-certificate-problem-with-private-registry/103312 "2023-08-29T19:00:48Z")

</div>

Hello, My colleague and I are using a private registry via LocalRegistry.jl. We are using ecdsa key to ssh. Everything works on my end. However, it does not work for my colleague . Although my colleague can clone from t…

---

## [How to convert a Rasters.Raster{UInt8,2} to a Raster{Float32,2}?](https://discourse.julialang.org/t/how-to-convert-a-rasters-raster-uint8-2-to-a-raster-float32-2/103322)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [August 29, 2023, 6:27pm UTC](https://discourse.julialang.org/t/how-to-convert-a-rasters-raster-uint8-2-to-a-raster-float32-2/103322 "2023-08-29T18:27:05Z")

</div>

Hello, as from the title, how can I convert a Rasters.Raster{UInt8,2} to a Raster{Float32,2} ? I have tried with convert(Raster{Float64,2},myraster) but this method is not defined…

---

## [Using argument vectors along specific dimensions during broadcast()](https://discourse.julialang.org/t/using-argument-vectors-along-specific-dimensions-during-broadcast/103337)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 4\
**Last updated:** [August 29, 2023, 6:29pm UTC](https://discourse.julialang.org/t/using-argument-vectors-along-specific-dimensions-during-broadcast/103337 "2023-08-29T18:29:11Z")

</div>

I’m wondering if there is a way to use vector arguments along specific dimensions during broadcast(). For example, consider a function f(x,y,z) takeing three arguments corresponding to the 3D Cartesian coordinates. I h…

---

## [Element wise multiplication of lower triangular matrices](https://discourse.julialang.org/t/element-wise-multiplication-of-lower-triangular-matrices/103252)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 17\
**Last updated:** [August 29, 2023, 6:20pm UTC](https://discourse.julialang.org/t/element-wise-multiplication-of-lower-triangular-matrices/103252 "2023-08-29T18:20:32Z")

</div>

I’m confused by how the element wise multiplication of lower triangular matrices is not faster than the element wise multiplication of the completely full matrices. This behavior is shown in the following MWE using Line…

---

## [How to best carry around "state" in my program?](https://discourse.julialang.org/t/how-to-best-carry-around-state-in-my-program/103335)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 9\
**Last updated:** [August 29, 2023, 5:14pm UTC](https://discourse.julialang.org/t/how-to-best-carry-around-state-in-my-program/103335 "2023-08-29T17:14:58Z")

</div>

I have to parse a configuration file and run a simulation based on the settings in that file. In some language like Python, I’d probably make a class, say ConfigParser and it would both parse and store my configuration. …

---

## [Franklin.jl: deploy to server without Julia installation?](https://discourse.julialang.org/t/franklin-jl-deploy-to-server-without-julia-installation/103334)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 3:37pm UTC](https://discourse.julialang.org/t/franklin-jl-deploy-to-server-without-julia-installation/103334 "2023-08-29T15:37:07Z")

</div>

Can I generate the \_\_site directory holding the webpage content on my laptop, and then copy the whole directory to a remote server which has no Julia installation? Do I just need to adjust absolute paths appearing in the…

---

## [Images -- is it possible to change selected colors?](https://discourse.julialang.org/t/images-is-it-possible-to-change-selected-colors/103263)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [August 29, 2023, 3:24pm UTC](https://discourse.julialang.org/t/images-is-it-possible-to-change-selected-colors/103263 "2023-08-29T15:24:09Z")

</div>

Thanks for great presentation of Images.jl at JuliaCon 2023. I haven’t really used the package (I’m not doing much work on images), but I see that I can import raw files from several camera brands. Nice. I’m curious abo…

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

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