# Latest

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

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

**Page:** 1131

---

## [Using ccall to modify fields of Julia struct](https://discourse.julialang.org/t/using-ccall-to-modify-fields-of-julia-struct/75835)

<div class="topic-metadata">

**Author:** [@gpxl](https://discourse.julialang.org/u/gpxl)\
**Replies:** 4\
**Last updated:** [February 6, 2022, 4:46am UTC](https://discourse.julialang.org/t/using-ccall-to-modify-fields-of-julia-struct/75835 "2022-02-06T04:46:50Z")

</div>

I am totally new to Julia in the last week, and I have decided to dive in and try to write a wrapper for a library I frequently use in my research. This library has structs which get initialized by passing them to a func…

---

## [Memset error](https://discourse.julialang.org/t/memset-error/75884)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 0\
**Last updated:** [February 6, 2022, 12:56am UTC](https://discourse.julialang.org/t/memset-error/75884 "2022-02-06T00:56:05Z")

</div>

This error suddenly started popping up in my code, apparently occurring randomly at different places in the code when I run my tests. Some times it doesn’t happen at all and the tests all complete successfully. Please s…

---

## [How to distribute computation over different CPU's of my desktop](https://discourse.julialang.org/t/how-to-distribute-computation-over-different-cpus-of-my-desktop/75840)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 14\
**Last updated:** [February 5, 2022, 8:15pm UTC](https://discourse.julialang.org/t/how-to-distribute-computation-over-different-cpus-of-my-desktop/75840 "2022-02-05T20:15:44Z")

</div>

Hi! I am doing some work in simulation which requires numerical integration over high-dimensional differential equations, most of it uses functions from the DynamicalSystems.jl module. However, the computation gets sl…

---

## [Troubles with 'train!' under Flux.jl whilst using 'Chain' function](https://discourse.julialang.org/t/troubles-with-train-under-flux-jl-whilst-using-chain-function/75834)

<div class="topic-metadata">

**Author:** [@ashish.pujari](https://discourse.julialang.org/u/ashish.pujari)\
**Replies:** 3\
**Last updated:** [February 5, 2022, 7:49pm UTC](https://discourse.julialang.org/t/troubles-with-train-under-flux-jl-whilst-using-chain-function/75834 "2022-02-05T19:49:18Z")

</div>

I am new to Flux.jl and its application in the domain of Deep Learning. Running the introductory code (provided at Overview · Flux) seems to do a good job of showcasing Flux’s abilities. The issue starts when I replace …

---

## [AutoDiff of function inverse?](https://discourse.julialang.org/t/autodiff-of-function-inverse/75868)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 5\
**Last updated:** [February 5, 2022, 6:55pm UTC](https://discourse.julialang.org/t/autodiff-of-function-inverse/75868 "2022-02-05T18:55:24Z")

</div>

I am using a time-dependent invertible map to define a moving geometry: ξ=f(x,t) where ξ,x have the same dimension. For example, this might be a time-varying shift and rotation ξ=R(θ(t))\*(x-x₀(t)), or it might be somethi…

---

## [Random file access](https://discourse.julialang.org/t/random-file-access/75842)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 1\
**Last updated:** [February 5, 2022, 5:51pm UTC](https://discourse.julialang.org/t/random-file-access/75842 "2022-02-05T17:51:31Z")

</div>

I’ve not seen much code with core functions relating to files open and used in random access mode. I’ve seen a couple commands (but I’ve forgotten the details) that appear to be like C’s seek() and lseek() and such like…

---

## [How to use Python library in Julia?](https://discourse.julialang.org/t/how-to-use-python-library-in-julia/75644)

<div class="topic-metadata">

**Author:** [@YitaoCai](https://discourse.julialang.org/u/YitaoCai)\
**Replies:** 9\
**Last updated:** [February 5, 2022, 5:42pm UTC](https://discourse.julialang.org/t/how-to-use-python-library-in-julia/75644 "2022-02-05T17:42:24Z")

</div>

I was wondering how can I use this package https://github.com/DeepGraphLearning/ConfGF in Julia by using PyCall.jl or PythonCall.jl? this is how to use this package in python. I want to do it in Julia, is it feasible? …

---

## [How to create GraphMakie with WGLMakie?](https://discourse.julialang.org/t/how-to-create-graphmakie-with-wglmakie/75865)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 3\
**Last updated:** [February 5, 2022, 5:02pm UTC](https://discourse.julialang.org/t/how-to-create-graphmakie-with-wglmakie/75865 "2022-02-05T17:02:41Z")

</div>

I don’t have a GPU to use Makie, so I have to use WGLMakie, can I use GraphMakie with it? How? Thank you for your advice.

---

## [Poisson regression in Turing](https://discourse.julialang.org/t/poisson-regression-in-turing/75839)

<div class="topic-metadata">

**Author:** [@PeetoomHeida](https://discourse.julialang.org/u/PeetoomHeida)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 4:54pm UTC](https://discourse.julialang.org/t/poisson-regression-in-turing/75839 "2022-02-05T16:54:21Z")

</div>

I am trying to modify the example Poisson regression to suit my own needs. I am running into an issue in the for loop and likelihood expression in the model definition. The following is my script: using DataFrames, Turi…

---

## [Downloading Jupyter notebook as jl script](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 4\
**Last updated:** [February 5, 2022, 4:41pm UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850 "2022-02-05T16:41:18Z")

</div>

I am facing converting ipynb files to jl script using jupytext as described here ~ jupyter notebook - .ipynb Julia files to .jl files - Stack Overflow julia\> jupytext --to jl "/home/rajarsi/Rosller.pp.ipynb" ERROR: sy…

---

## [\[ANN\] PlotlySave: saving images from PlotlyBase without PlotlyJS](https://discourse.julialang.org/t/ann-plotlysave-saving-images-from-plotlybase-without-plotlyjs/75863)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 3:48pm UTC](https://discourse.julialang.org/t/ann-plotlysave-saving-images-from-plotlybase-without-plotlyjs/75863 "2022-02-05T15:48:23Z")

</div>

PlotlySave Package to implement PlotlyBase together with a save() function independently of PlotlyJS. Usage PlotlySave reexports PlotlyBase so it is sufficient to do using PlotlySave p1 = Plot(scatter(x=1:10, y=2:11…

---

## [Talk Julia: Weekly Julia Programming News and Resources](https://discourse.julialang.org/t/talk-julia-weekly-julia-programming-news-and-resources/75860)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 2:05pm UTC](https://discourse.julialang.org/t/talk-julia-weekly-julia-programming-news-and-resources/75860 "2022-02-05T14:05:30Z")

</div>

Talk Julia overview by its authors. Talk Julia is a weekly podcast devoted to the Julia programming language. Join hosts David Amos and Randy Davila as we explore Julia news and resources, learn Julia for ourselves, …

---

## [ANN: static image export in PlotlyBase.jl](https://discourse.julialang.org/t/ann-static-image-export-in-plotlybase-jl/44945)

<div class="topic-metadata">

**Author:** [@sglyon](https://discourse.julialang.org/u/sglyon)\
**Replies:** 15\
**Last updated:** [February 5, 2022, 3:38pm UTC](https://discourse.julialang.org/t/ann-static-image-export-in-plotlybase-jl/44945 "2022-02-05T15:38:14Z")

</div>

Hi all! I’m excited to announce version 0.4 of PlotlyBase.jl which adds static image export that does not require Blink.jl, or any external web process! This can easily run on remote machines without a display. We have…

---

## [Schedule agents by type](https://discourse.julialang.org/t/schedule-agents-by-type/75858)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [February 5, 2022, 3:26pm UTC](https://discourse.julialang.org/t/schedule-agents-by-type/75858 "2022-02-05T15:26:00Z")

</div>

Hi, I am wondering whether there is a way to get a list of agents by their type? For example if there are two types of agents mutable struct Casualty \<: AbstractAgent ... end mutable struct Rescuer \<: Abstract A…

---

## [High precision summation functions not compatible with Optim.jl with autodiff=:forward](https://discourse.julialang.org/t/high-precision-summation-functions-not-compatible-with-optim-jl-with-autodiff-forward/75714)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.julialang.org/u/HJW019)\
**Replies:** 9\
**Last updated:** [February 5, 2022, 2:36pm UTC](https://discourse.julialang.org/t/high-precision-summation-functions-not-compatible-with-optim-jl-with-autodiff-forward/75714 "2022-02-05T14:36:10Z")

</div>

I am doing high dimensional Monte Carlo integrations in a maximum likelihood estimation using Optim.jl with the autodiff = :forward option (based on ForwardDiff.jl). I use up to millions of quasi-random draws (e.g., Halt…

---

## [Tiny text in VSCode after PC wakes up from sleep](https://discourse.julialang.org/t/tiny-text-in-vscode-after-pc-wakes-up-from-sleep/75861)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 2:27pm UTC](https://discourse.julialang.org/t/tiny-text-in-vscode-after-pc-wakes-up-from-sleep/75861 "2022-02-05T14:27:03Z")

</div>

I just installed Windows 11 on a new PC and noticed some odd behavior from VSCode and some other apps. I set scaling at 350% and resolution at 3840 x 2160 for my monitors. When the PC sleeps and I wake it up VSCode is f…

---

## [Hide colorbar axis and add top and bottom label in Plots.jl](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 1\
**Last updated:** [February 5, 2022, 12:49pm UTC](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592 "2022-02-05T12:49:34Z")

</div>

Hi, I am trying to plot a heatmap with a colorbar, but I want to hide the axis lines and tick numbers, and add labels on top and bottom of the colorbar. I could achieve this, heatmap(rand(10,10),color=:RdBu,colorbar\_t…

---

## [ReverseDiff gradient for loss functions including ODE](https://discourse.julialang.org/t/reversediff-gradient-for-loss-functions-including-ode/75796)

<div class="topic-metadata">

**Author:** [@erico](https://discourse.julialang.org/u/erico)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 11:34am UTC](https://discourse.julialang.org/t/reversediff-gradient-for-loss-functions-including-ode/75796 "2022-02-05T11:34:34Z")

</div>

Hey everybody, I am trying to compute the gradient of a loss function which includes an ODE-solution. A MWE for a second order example is given below: using DifferentialEquations, DiffEqSensitivity, ReverseDiff N = 2 …

---

## [\[ANN\] DistributedAdhoc.jl: for machines that don't share a common filesystem](https://discourse.julialang.org/t/ann-distributedadhoc-jl-for-machines-that-dont-share-a-common-filesystem/75853)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 11:07am UTC](https://discourse.julialang.org/t/ann-distributedadhoc-jl-for-machines-that-dont-share-a-common-filesystem/75853 "2022-02-05T11:07:58Z")

</div>

DistributedAdhoc.jl helps using Julia Distributed in an ad-hoc way, on computers not dedicated to distributed processing. The only setup required is to install Julia everywhere. Each machine can have different paths, di…

---

## [Speed issue with KahanSummation](https://discourse.julialang.org/t/speed-issue-with-kahansummation/75491)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.julialang.org/u/HJW019)\
**Replies:** 12\
**Last updated:** [February 5, 2022, 10:08am UTC](https://discourse.julialang.org/t/speed-issue-with-kahansummation/75491 "2022-02-05T10:08:16Z")

</div>

I am using Julia version 1.7.1. I need to do summations of long series (repeatedly) where accuracy is important. I am looking at KahanSummation’ sum\_kbn (pure Julia), but am puzzled by the very slow speed (with a lot of …

---

## [Problem realization of PCA](https://discourse.julialang.org/t/problem-realization-of-pca/75793)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.julialang.org/u/Sarah)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 9:59pm UTC](https://discourse.julialang.org/t/problem-realization-of-pca/75793 "2022-02-04T21:59:27Z")

</div>

Hi everyone! I’m new with Julia. I wanted to realise a PCA on Julia on the “iris” dataset, however I don’t understand why Julia doesn’t recognize my packages. I installed every needed package. Could someone please hel…

---

## [\[ANN\] SmartAsserts: A drop-in replacement for \`@assert\` that prints out additional information upon failure](https://discourse.julialang.org/t/ann-smartasserts-a-drop-in-replacement-for-assert-that-prints-out-additional-information-upon-failure/75821)

<div class="topic-metadata">

**Author:** [@MrVPlusOne](https://discourse.julialang.org/u/MrVPlusOne)\
**Replies:** 12\
**Last updated:** [February 5, 2022, 7:02am UTC](https://discourse.julialang.org/t/ann-smartasserts-a-drop-in-replacement-for-assert-that-prints-out-additional-information-upon-failure/75821 "2022-02-05T07:02:15Z")

</div>

Hi all, I just published SmartAsserts to the general registry. It provides a convenient macro @smart\_assert that automatically prints out argument values upon assertion failure (without re-evaluating the original express…

---

## [CUDA example in Julia doesn't use the GPU](https://discourse.julialang.org/t/cuda-example-in-julia-doesnt-use-the-gpu/75838)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 3:17am UTC](https://discourse.julialang.org/t/cuda-example-in-julia-doesnt-use-the-gpu/75838 "2022-02-05T03:17:49Z")

</div>

I’m doing my first steps on running Julia 1.6.5 code on GPU. For some reason, it seems the GPU is not being used at all. These are the steps: First of all, my GPU passed on the test recommended at https://cuda.juliagpu.…

---

## [There is a possibility to \`DivideError\` without a denominator value of 0](https://discourse.julialang.org/t/there-is-a-possibility-to-divideerror-without-a-denominator-value-of-0/75832)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 3:04am UTC](https://discourse.julialang.org/t/there-is-a-possibility-to-divideerror-without-a-denominator-value-of-0/75832 "2022-02-05T03:04:57Z")

</div>

I’m sorry to ask this without specific cases(i can’t find that), but our team guess that the following code raise the DivideError. while y != zero(R) q = div(x, y) x, y = y, x - y \* q s0, s1 …

---

## [Poor performance of garbage collection in multi-threaded application](https://discourse.julialang.org/t/poor-performance-of-garbage-collection-in-multi-threaded-application/75493)

<div class="topic-metadata">

**Author:** [@racinmat](https://discourse.julialang.org/u/racinmat)\
**Replies:** 22\
**Last updated:** [February 3, 2022, 11:35pm UTC](https://discourse.julialang.org/t/poor-performance-of-garbage-collection-in-multi-threaded-application/75493 "2022-02-03T23:35:15Z")

</div>

Hi, I have a tricky problem bothering me: I am using julia 1.5 with HTTP.jl and Mux.jl, I added multi-threading support in a manner as MusicAlbums.jl/Workers.jl at master · quinnj/MusicAlbums.jl (github.com), but compa…

---

## [Need some help on sampler error with simple linear regression](https://discourse.julialang.org/t/need-some-help-on-sampler-error-with-simple-linear-regression/75805)

<div class="topic-metadata">

**Author:** [@RickandMortyforever](https://discourse.julialang.org/u/RickandMortyforever)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 1:49am UTC](https://discourse.julialang.org/t/need-some-help-on-sampler-error-with-simple-linear-regression/75805 "2022-02-05T01:49:43Z")

</div>

After watching Statistical Rethinking lecture about linear regression, I tried to follow the steps with other data using Turing. Also I looked up this reference. GitHub - StatisticalRethinkingJulia/SR2TuringPluto.jl: St…

---

## [What is the preferred way to iterate through the Cartesian power of an iterable only available at runtime?](https://discourse.julialang.org/t/what-is-the-preferred-way-to-iterate-through-the-cartesian-power-of-an-iterable-only-available-at-runtime/75815)

<div class="topic-metadata">

**Author:** [@gtgt](https://discourse.julialang.org/u/gtgt)\
**Replies:** 6\
**Last updated:** [February 4, 2022, 10:32pm UTC](https://discourse.julialang.org/t/what-is-the-preferred-way-to-iterate-through-the-cartesian-power-of-an-iterable-only-available-at-runtime/75815 "2022-02-04T22:32:24Z")

</div>

Hi, Sometimes in my code I need to iterate through the Cartesian power of a vector. After searching on the web I can come up with two approaches. Using product and repeated from Base.Iterators. The problem is that thi…

---

## [Concerned about using unregistered packages](https://discourse.julialang.org/t/concerned-about-using-unregistered-packages/75831)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 6\
**Last updated:** [February 5, 2022, 1:04am UTC](https://discourse.julialang.org/t/concerned-about-using-unregistered-packages/75831 "2022-02-05T01:04:13Z")

</div>

Hi all, I am trying to get to grips with julia and to achieve that I have set myself the goal of putting together a pure julia approach to a python app I wrote. Because of the way I wrote the python app I missed out on…

---

## [Corporate internal SSL self-signed certificate: how to turn off verification in Julia globally?](https://discourse.julialang.org/t/corporate-internal-ssl-self-signed-certificate-how-to-turn-off-verification-in-julia-globally/75837)

<div class="topic-metadata">

**Author:** [@precisionguy](https://discourse.julialang.org/u/precisionguy)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 1:00am UTC](https://discourse.julialang.org/t/corporate-internal-ssl-self-signed-certificate-how-to-turn-off-verification-in-julia-globally/75837 "2022-02-05T01:00:56Z")

</div>

I am working on a project to programatically move MongoDB databases from a local server to a CosmosDB server. I have the code working in Python, but there’s apparently a bug in the Python library that makes it fail afte…

---

## [Capture an output function](https://discourse.julialang.org/t/capture-an-output-function/75824)

<div class="topic-metadata">

**Author:** [@wub7quxa](https://discourse.julialang.org/u/wub7quxa)\
**Replies:** 4\
**Last updated:** [February 5, 2022, 12:08am UTC](https://discourse.julialang.org/t/capture-an-output-function/75824 "2022-02-05T00:08:53Z")

</div>

I use the Calculus module in julia to differentiate functions. For example, using Calculus differentiate("-exp(x)+exp(-x/2)\*(2\*cos((sqrt(3)/2)\*x)+sin((sqrt(3)/2)\*x))",:x) Everything works beautifully. Now I want to def…

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

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