# Latest

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

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

**Page:** 730

---

## [Is it possible to keep some weights fixed during training](https://discourse.julialang.org/t/is-it-possible-to-keep-some-weights-fixed-during-training/91752)

<div class="topic-metadata">

**Author:** [@quantiota](https://discourse.julialang.org/u/quantiota)\
**Replies:** 4\
**Last updated:** [April 11, 2023, 5:53pm UTC](https://discourse.julialang.org/t/is-it-possible-to-keep-some-weights-fixed-during-training/91752 "2023-04-11T17:53:56Z")

</div>

the weights of the first layer are real parameters and i need to fix the values to zero for the rising arrows.

---

## [Simple example of atomic operations in Julia using CUDA](https://discourse.julialang.org/t/simple-example-of-atomic-operations-in-julia-using-cuda/97354)

<div class="topic-metadata">

**Author:** [@navidjfr](https://discourse.julialang.org/u/navidjfr)\
**Replies:** 0\
**Last updated:** [April 11, 2023, 4:32pm UTC](https://discourse.julialang.org/t/simple-example-of-atomic-operations-in-julia-using-cuda/97354 "2023-04-11T16:32:28Z")

</div>

Hello, I’ve been struggling to write a simple working example of CUDA.atomic\_min!() and CUDA.atomic\_cas!(). If anyone can provide an example I would really appreciate it. Thanks

---

## [Paid julia project for student or freelancer](https://discourse.julialang.org/t/paid-julia-project-for-student-or-freelancer/97067)

<div class="topic-metadata">

**Author:** [@econ](https://discourse.julialang.org/u/econ)\
**Replies:** 2\
**Last updated:** [April 11, 2023, 4:04pm UTC](https://discourse.julialang.org/t/paid-julia-project-for-student-or-freelancer/97067 "2023-04-11T16:04:39Z")

</div>

I have a database mapping project that I prefer to have coded in julia. This is a flexible part-time short project that is ideal for a julia student with enough experience to understand what needs to be done and how bes…

---

## [Convert binary mask to shapefile](https://discourse.julialang.org/t/convert-binary-mask-to-shapefile/97322)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 4\
**Last updated:** [April 11, 2023, 3:57pm UTC](https://discourse.julialang.org/t/convert-binary-mask-to-shapefile/97322 "2023-04-11T15:57:11Z")

</div>

I have a large (20,000 x 25,000) binary mask that defines the shape of an island. What’s the best way to convert the mask into a polygon and and save it as a shapefile?

---

## [\[AlgebraOfGraphics.jl\] adding jitter to a scatter plot points](https://discourse.julialang.org/t/algebraofgraphics-jl-adding-jitter-to-a-scatter-plot-points/97310)

<div class="topic-metadata">

**Author:** [@rud-lucien](https://discourse.julialang.org/u/rud-lucien)\
**Replies:** 7\
**Last updated:** [April 11, 2023, 3:20pm UTC](https://discourse.julialang.org/t/algebraofgraphics-jl-adding-jitter-to-a-scatter-plot-points/97310 "2023-04-11T15:20:47Z")

</div>

Hi, I was wondering if anyone knows how (or if it is currently possible) to add jitter to the position of the points in this scatter plot generated with AlgebarOFGraphics.jl? using CairoMakie, AlgebraOfGraphics, DataFr…

---

## [Should error messages be reversed?](https://discourse.julialang.org/t/should-error-messages-be-reversed/51284)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 8\
**Last updated:** [April 11, 2023, 3:00pm UTC](https://discourse.julialang.org/t/should-error-messages-be-reversed/51284 "2023-04-11T15:00:50Z")

</div>

I find that every time I get an error message in (VScode) Julia, I have to scroll up to the top and then read top down. The first many lines of what is visible are generally not useful at all. This is particularly bad wi…

---

## [Tullio with pre-computed index broadcasting](https://discourse.julialang.org/t/tullio-with-pre-computed-index-broadcasting/97345)

<div class="topic-metadata">

**Author:** [@ovt](https://discourse.julialang.org/u/ovt)\
**Replies:** 2\
**Last updated:** [April 11, 2023, 1:58pm UTC](https://discourse.julialang.org/t/tullio-with-pre-computed-index-broadcasting/97345 "2023-04-11T13:58:12Z")

</div>

It’s my first time with Tullio, so my problem may look very basic. Here is a minimal example that provides the error "expected integers!" : using Tullio m,r = 5,5 rr = div(r\*(r-1),2) A = rand(m,rr) B = rand(m,r) C = si…

---

## [Stockwell and inverse in Julia](https://discourse.julialang.org/t/stockwell-and-inverse-in-julia/97343)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 1\
**Last updated:** [April 11, 2023, 12:14pm UTC](https://discourse.julialang.org/t/stockwell-and-inverse-in-julia/97343 "2023-04-11T12:14:53Z")

</div>

Hi all. Anyone has a code to do forward and inverse stockwell transform? Kind regards, M

---

## [Problem combining Unitful and MonteCarloMeasurements](https://discourse.julialang.org/t/problem-combining-unitful-and-montecarlomeasurements/35418)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 12\
**Last updated:** [April 11, 2023, 10:32am UTC](https://discourse.julialang.org/t/problem-combining-unitful-and-montecarlomeasurements/35418 "2023-04-11T10:32:39Z")

</div>

Consider the functions f1 and f2: using MonteCarloMeasurements using Unitful function f1(Vi) if Vi ≤ 0.0 return 0.0 elseif Vi ≥ 1.0 return 1.0 else Vi end end function f2(Vi) …

---

## [A way to set logging level in Pluto notebooks](https://discourse.julialang.org/t/a-way-to-set-logging-level-in-pluto-notebooks/95074)

<div class="topic-metadata">

**Author:** [@AsgerHB](https://discourse.julialang.org/u/AsgerHB)\
**Replies:** 13\
**Last updated:** [April 11, 2023, 10:05am UTC](https://discourse.julialang.org/t/a-way-to-set-logging-level-in-pluto-notebooks/95074 "2023-04-11T10:05:05Z")

</div>

Is there a way to set the logging level of a cell in Pluto? By default it will show everything, including debug. Or even just a way to set it globally? Pluto notebooks are a great way to debug newly developed code, …

---

## [Problems with module redefinition from vscode](https://discourse.julialang.org/t/problems-with-module-redefinition-from-vscode/97166)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 5\
**Last updated:** [April 11, 2023, 9:18am UTC](https://discourse.julialang.org/t/problems-with-module-redefinition-from-vscode/97166 "2023-04-11T09:18:08Z")

</div>

Module redefinition leads to inconsistent behaviour, at least when run in code blocks with Shift+Enter from vscode. Can anyone confirm this? I made a file and run it in cycle from top to bottom: #1, #2, THEN AGAIN #1: #…

---

## [Nonempty prefixes function](https://discourse.julialang.org/t/nonempty-prefixes-function/97136)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 14\
**Last updated:** [April 11, 2023, 8:21am UTC](https://discourse.julialang.org/t/nonempty-prefixes-function/97136 "2023-04-11T08:21:39Z")

</div>

Is there a function somewhere like this? nonempty\_prefixes(xs) = \[@view xs\[firstindex(xs):i\] for i in eachindex(xs)\] julia\> xs = String('a':'z') "abcdefghijklmnopqrstuvwxyz" julia\> nonempty\_prefixes(xs) 26-element Vec…

---

## [How to combine the legend of multiple axes on same figure into one in Makie.jl?](https://discourse.julialang.org/t/how-to-combine-the-legend-of-multiple-axes-on-same-figure-into-one-in-makie-jl/97299)

<div class="topic-metadata">

**Author:** [@JaydevSR](https://discourse.julialang.org/u/JaydevSR)\
**Replies:** 2\
**Last updated:** [April 11, 2023, 5:54am UTC](https://discourse.julialang.org/t/how-to-combine-the-legend-of-multiple-axes-on-same-figure-into-one-in-makie-jl/97299 "2023-04-11T05:54:04Z")

</div>

I have a few axes on the same figure such that each of them share some common curves. Is there a way I can add a single legend for all of them on the figure such that the curve (following the same label and style) get me…

---

## [How to extract 0-255 arrays 3 RGB layers from a gif file?](https://discourse.julialang.org/t/how-to-extract-0-255-arrays-3-rgb-layers-from-a-gif-file/97301)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 4\
**Last updated:** [April 11, 2023, 2:49am UTC](https://discourse.julialang.org/t/how-to-extract-0-255-arrays-3-rgb-layers-from-a-gif-file/97301 "2023-04-11T02:49:28Z")

</div>

How to extract 0-255 arrays 3 RGB layers from a gif file? What package?

---

## [Diverging results of eigen() between Julia and Python](https://discourse.julialang.org/t/diverging-results-of-eigen-between-julia-and-python/97258)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 11\
**Last updated:** [April 11, 2023, 12:58am UTC](https://discourse.julialang.org/t/diverging-results-of-eigen-between-julia-and-python/97258 "2023-04-11T00:58:50Z")

</div>

I am converting an algorithm from python to julia that uses eigen decomposition in the “hot loop” updating the solution. Python version uses scipy eigh function, which I already learned needs to be translated as eigen(Sy…

---

## [Memory management issue (malloc) on macBook Pro M2](https://discourse.julialang.org/t/memory-management-issue-malloc-on-macbook-pro-m2/97277)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 7\
**Last updated:** [April 11, 2023, 12:19am UTC](https://discourse.julialang.org/t/memory-management-issue-malloc-on-macbook-pro-m2/97277 "2023-04-11T00:19:07Z")

</div>

Hi! I’m developing Julia wrappers to the NASA C library Mtk used to manipulate remote sensing data files, available from GitHub - nasa/MISR-Toolkit: an API facilitating the access of MISR standard product files. Here is…

---

## [Why does \`@time\` macro allocate in a \`let\` block, a local scope?](https://discourse.julialang.org/t/why-does-time-macro-allocate-in-a-let-block-a-local-scope/97266)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 0\
**Last updated:** [April 9, 2023, 2:15am UTC](https://discourse.julialang.org/t/why-does-time-macro-allocate-in-a-let-block-a-local-scope/97266 "2023-04-09T02:15:45Z")

</div>

The Performance Tips has a section on using @time to identify excessive allocations and reduce usage of untyped global variables. When allocations were technically eliminated, it points out that “the 1 allocation \[of 16 …

---

## [Indexing adjoints of CuArrays](https://discourse.julialang.org/t/indexing-adjoints-of-cuarrays/97215)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 4\
**Last updated:** [April 10, 2023, 10:21pm UTC](https://discourse.julialang.org/t/indexing-adjoints-of-cuarrays/97215 "2023-04-10T22:21:14Z")

</div>

I was surprised by the following behaviour when indexing CuArrays: using CUDA CUDA.allowscalar(false) x = CUDA.fill(1.0f0, 3, 3) x\[1:2, :\] # works y = x' y\[1:2, :\] # error: scalar indexing is disallowed Is there a rea…

---

## [@drawsvg is missing from the Luxor package](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235)

<div class="topic-metadata">

**Author:** [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Replies:** 9\
**Last updated:** [April 10, 2023, 10:43pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235 "2023-04-10T22:43:28Z")

</div>

If I execute the code below (uncommented) in VS Code, ERROR: LoadError: UndefVarError: @drawsvg not defined. As is, it prints: @draw @eps @imagematrix @imagematrix! @layer @pdf @png @polar @setcolor\_str @svg u…

---

## [Why getting Infeasibility row despite it is not!?](https://discourse.julialang.org/t/why-getting-infeasibility-row-despite-it-is-not/97305)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 7\
**Last updated:** [April 10, 2023, 10:12pm UTC](https://discourse.julialang.org/t/why-getting-infeasibility-row-despite-it-is-not/97305 "2023-04-10T22:12:09Z")

</div>

I have a basic vehicle routing problem (VRP) model that I aim to solve using CPLEX and JuMP. Although I manually verified that the problem configuration(including the number of customers, drivers, locations, and costs) i…

---

## [Reading quantization table of JPEG](https://discourse.julialang.org/t/reading-quantization-table-of-jpeg/97315)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 1\
**Last updated:** [April 10, 2023, 7:17pm UTC](https://discourse.julialang.org/t/reading-quantization-table-of-jpeg/97315 "2023-04-10T19:17:15Z")

</div>

Hi All, is there some easy way, how to read coefficients of quantization table from a jpeg file? I have been looking at GitHub - JuliaIO/JpegTurbo.jl: Julia interface to libjpeg-turbo, but I have not found a relevant ca…

---

## [Using PyJulia (or similar) to create a pip-installable python package from a registered julia package?](https://discourse.julialang.org/t/using-pyjulia-or-similar-to-create-a-pip-installable-python-package-from-a-registered-julia-package/97290)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [April 10, 2023, 7:01pm UTC](https://discourse.julialang.org/t/using-pyjulia-or-similar-to-create-a-pip-installable-python-package-from-a-registered-julia-package/97290 "2023-04-10T19:01:13Z")

</div>

I’m looking for a way to create a pip-installable wrapper for an registered julia package. Is this even possible?

---

## [Broadcast strange on \`0-dimensional Array\`?](https://discourse.julialang.org/t/broadcast-strange-on-0-dimensional-array/97311)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 2\
**Last updated:** [April 10, 2023, 6:05pm UTC](https://discourse.julialang.org/t/broadcast-strange-on-0-dimensional-array/97311 "2023-04-10T18:05:41Z")

</div>

I stumbled over a small thing that surprised me. Assume we have a Szenario where we want to be able to have mutating functions, but we came along with floats. We could just turn them into 0-Arrays using fill(0.0). I was …

---

## [Developing my package with Revise and Pluto is very slow sometimes](https://discourse.julialang.org/t/developing-my-package-with-revise-and-pluto-is-very-slow-sometimes/97306)

<div class="topic-metadata">

**Author:** [@ChunXi\_Zhang](https://discourse.julialang.org/u/ChunXi_Zhang)\
**Replies:** 0\
**Last updated:** [April 10, 2023, 2:26pm UTC](https://discourse.julialang.org/t/developing-my-package-with-revise-and-pluto-is-very-slow-sometimes/97306 "2023-04-10T14:26:18Z")

</div>

I’m doing experienments with my developing package, and runing experienment with it, running training loop in Pluto.jl. So I often need to change some source code and re-run the code to see the effect. This package also …

---

## [Dictionary to variables in julia](https://discourse.julialang.org/t/dictionary-to-variables-in-julia/47676)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.julialang.org/u/libensvivit)\
**Replies:** 10\
**Last updated:** [April 10, 2023, 12:01pm UTC](https://discourse.julialang.org/t/dictionary-to-variables-in-julia/47676 "2023-04-10T12:01:37Z")

</div>

Hey, I will keep the question simple, so I have a dictionary like this: my\_dict = Dict(“dataFolder”=\> “my\_data”, “tile\_size” =\> \[100, 200\], “dims” =\> 20) and I want the keys to be variables as in my workspace with t…

---

## [Conda Not installing Matplotlib for PyPlot](https://discourse.julialang.org/t/conda-not-installing-matplotlib-for-pyplot/96813)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 13\
**Last updated:** [April 10, 2023, 8:36am UTC](https://discourse.julialang.org/t/conda-not-installing-matplotlib-for-pyplot/96813 "2023-04-10T08:36:36Z")

</div>

I started with a fresh install of Julia 1.9.0-rc1 (I wiped .julia clean) PyCall Conda does not seem to be installing matplotlib correctly. This has worked for me many times before on many different machines…The culprit …

---

## [JuliaCon 2023 Financial Support](https://discourse.julialang.org/t/juliacon-2023-financial-support/95674)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 1\
**Last updated:** [April 10, 2023, 8:17am UTC](https://discourse.julialang.org/t/juliacon-2023-financial-support/95674 "2023-04-10T08:17:15Z")

</div>

Hi everyone, a lot of attendees have been asking for a formal process to apply for travel funding and/or ticket waivers to attend JuliaCon. If you’d like to apply, please fill in the funding form. The deadline to apply i…

---

## [How to install geopandas in julia](https://discourse.julialang.org/t/how-to-install-geopandas-in-julia/97272)

<div class="topic-metadata">

**Author:** [@nirong](https://discourse.julialang.org/u/nirong)\
**Replies:** 10\
**Last updated:** [April 10, 2023, 7:12am UTC](https://discourse.julialang.org/t/how-to-install-geopandas-in-julia/97272 "2023-04-10T07:12:24Z")

</div>

I want to run “import geopandas” in julia1.6.0 in jupyter notebook. But there are some problems when I install this package. I use different methods to install it, and the erroe messages are showed in the following pict…

---

## [How to parse a string with ranges?](https://discourse.julialang.org/t/how-to-parse-a-string-with-ranges/97288)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 7\
**Last updated:** [April 10, 2023, 4:48am UTC](https://discourse.julialang.org/t/how-to-parse-a-string-with-ranges/97288 "2023-04-10T04:48:31Z")

</div>

I would like to avoid using eval to parse some user input from the REPL that expects lists of integers and may contain some ranges, as in this MWE: # INPUT: str = "1 3:3:12 18 20" # OUTPUT: v = eval(Meta.parse("\[" \* j…

---

## [Data Wrangling Best Practices - NYSE TAQ Data](https://discourse.julialang.org/t/data-wrangling-best-practices-nyse-taq-data/62237)

<div class="topic-metadata">

**Author:** [@skmcgov](https://discourse.julialang.org/u/skmcgov)\
**Replies:** 14\
**Last updated:** [April 10, 2023, 4:32am UTC](https://discourse.julialang.org/t/data-wrangling-best-practices-nyse-taq-data/62237 "2023-04-10T04:32:11Z")

</div>

Greetings Julians, I’m hoping to get some guidance on best practices for handling a large dataset comprised of SPY NYSE TAQ data (times & sales). All comments & suggestions are appreciated. Please be gentle, Julia rooki…

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

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