# Latest

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

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

**Page:** 1343

---

## [How to set the Atom/Juno font on VSCode?](https://discourse.julialang.org/t/how-to-set-the-atom-juno-font-on-vscode/63936)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [July 2, 2021, 9:07pm UTC](https://discourse.julialang.org/t/how-to-set-the-atom-juno-font-on-vscode/63936 "2021-07-02T21:07:15Z")

</div>

I think the single fact that keep me out of VS Code is its default fonts. How can I set the fonts (incl colour) in VSCode as those in Atom/Juno ?

---

## [Julia Lab and SciML Website Work](https://discourse.julialang.org/t/julia-lab-and-sciml-website-work/63956)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [July 2, 2021, 8:06pm UTC](https://discourse.julialang.org/t/julia-lab-and-sciml-website-work/63956 "2021-07-02T20:06:55Z")

</div>

Who wants a paid position helping advertise Julia with some snazzy pages? The MIT Julia Lab and SciML need cooler looking websites. https://julia.mit.edu/ We’re looking for Julia enthusiasts and students who want to …

---

## [Flux.train! hangs up after updating packages](https://discourse.julialang.org/t/flux-train-hangs-up-after-updating-packages/63772)

<div class="topic-metadata">

**Author:** [@Alex0](https://discourse.julialang.org/u/Alex0)\
**Replies:** 9\
**Last updated:** [July 2, 2021, 7:57pm UTC](https://discourse.julialang.org/t/flux-train-hangs-up-after-updating-packages/63772 "2021-07-02T19:57:23Z")

</div>

Hello people, I am currently trying to train a neural ODE network using a chemistry network from Catalyst.jl. My code was working fine until I updated my packages. Unfortunatley I just did Pkg.update() and didnt really…

---

## [Reason to remove address spaces](https://discourse.julialang.org/t/reason-to-remove-address-spaces/63932)

<div class="topic-metadata">

**Author:** [@KavinduZoysa](https://discourse.julialang.org/u/KavinduZoysa)\
**Replies:** 8\
**Last updated:** [July 2, 2021, 7:22pm UTC](https://discourse.julialang.org/t/reason-to-remove-address-spaces/63932 "2021-07-02T19:22:51Z")

</div>

Hi all, Can you please help me to understand the reason to remove address spaces as shown in julia/llvm-remove-addrspaces.cpp at 5650c93f1aa45a17c10c9482e5d3e0042cf4cc6b · JuliaLang/julia · GitHub Thank you, Kavindu

---

## [Function that takes a tuple of (unknown number of) vectors of given type](https://discourse.julialang.org/t/function-that-takes-a-tuple-of-unknown-number-of-vectors-of-given-type/63954)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 2\
**Last updated:** [July 2, 2021, 7:00pm UTC](https://discourse.julialang.org/t/function-that-takes-a-tuple-of-unknown-number-of-vectors-of-given-type/63954 "2021-07-02T19:00:07Z")

</div>

I have a function (called form within an outer function) that I want to take a tuple of vectors of n integers. n is fixed for a given run of the outer function. How would I set this up? function inner\_func1(n ::Int64) …

---

## [Loop in dictionary definition](https://discourse.julialang.org/t/loop-in-dictionary-definition/63951)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 6:26pm UTC](https://discourse.julialang.org/t/loop-in-dictionary-definition/63951 "2021-07-02T18:26:45Z")

</div>

Hello, I’m using a library that uses a dictionary to set variables along points, like so: bla = Dict( 1 =\> foo, 2 =\> bar ) I want to create that dictionary over a large number of points and that number is not …

---

## [Training an Autoencoder with Flux](https://discourse.julialang.org/t/training-an-autoencoder-with-flux/51619)

<div class="topic-metadata">

**Author:** [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Replies:** 2\
**Last updated:** [July 2, 2021, 6:12pm UTC](https://discourse.julialang.org/t/training-an-autoencoder-with-flux/51619 "2021-07-02T18:12:28Z")

</div>

Hi, I’m trying to train a simple Autoencoder with the objective of using it for data imputation. The idea is that I have matrix of count with zeros values that are caused by a lack of sensitivity of the detector and wan…

---

## [Unsuppress compiler error messages in Clang.jl](https://discourse.julialang.org/t/unsuppress-compiler-error-messages-in-clang-jl/63934)

<div class="topic-metadata">

**Author:** [@elkawee](https://discourse.julialang.org/u/elkawee)\
**Replies:** 3\
**Last updated:** [July 2, 2021, 5:27pm UTC](https://discourse.julialang.org/t/unsuppress-compiler-error-messages-in-clang-jl/63934 "2021-07-02T17:27:00Z")

</div>

Hi :slight\_smile: I’m pretty sure i’m the 100th guy who asks this, but i can’t find anything. I ripped out the relevant parts to be able to call trans\_unit.jl/parse\_header(..) directly, and when i do, the usual clang …

---

## [Svec not documented](https://discourse.julialang.org/t/svec-not-documented/63945)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 3\
**Last updated:** [July 2, 2021, 5:11pm UTC](https://discourse.julialang.org/t/svec-not-documented/63945 "2021-07-02T17:11:31Z")

</div>

Hello! I know that it is a very “internals” thing, but svec is not documented anywhere in the docs. Also, this is rather unhelpful: help?\> Core.svec No documentation found. Core.svec is a Function. # built-in f…

---

## [Calling Julia from Python with subprocess](https://discourse.julialang.org/t/calling-julia-from-python-with-subprocess/63939)

<div class="topic-metadata">

**Author:** [@FabVonBellingshausen](https://discourse.julialang.org/u/FabVonBellingshausen)\
**Replies:** 1\
**Last updated:** [July 2, 2021, 4:43pm UTC](https://discourse.julialang.org/t/calling-julia-from-python-with-subprocess/63939 "2021-07-02T16:43:31Z")

</div>

I am trying to call a Julia script from a Python script using the subprocess module from the Python standard library (I tried using PyJulia but couldn’t get it to run), as follows: cmd = "foo.jl bar" subproc…

---

## [MCMC landscape](https://discourse.julialang.org/t/mcmc-landscape/25654)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 99\
**Last updated:** [July 2, 2021, 4:04pm UTC](https://discourse.julialang.org/t/mcmc-landscape/25654 "2021-07-02T16:04:16Z")

</div>

We have been using Klara.jl for some of our projects, and are looking for alternatives (due to that package no longer being maintained). My sense is that Mamba.jl, Turing.jl and DynamicHMC.jl are the actively maintained…

---

## [Parallelization of estimation loop or using GPU for bayesian neural ODE](https://discourse.julialang.org/t/parallelization-of-estimation-loop-or-using-gpu-for-bayesian-neural-ode/63162)

<div class="topic-metadata">

**Author:** [@minou92](https://discourse.julialang.org/u/minou92)\
**Replies:** 1\
**Last updated:** [July 2, 2021, 4:05pm UTC](https://discourse.julialang.org/t/parallelization-of-estimation-loop-or-using-gpu-for-bayesian-neural-ode/63162 "2021-07-02T16:05:39Z")

</div>

I would like to improve the speed process of this following loop using wether gpu or CPU. in case using CPU, What is the best way nowadays to parallelize it ? Could you please help to include it in the code ? Regards f…

---

## [Trouble using ForwardDiff on a function with a cache vector and a custom struct](https://discourse.julialang.org/t/trouble-using-forwarddiff-on-a-function-with-a-cache-vector-and-a-custom-struct/63420)

<div class="topic-metadata">

**Author:** [@vettert](https://discourse.julialang.org/u/vettert)\
**Replies:** 1\
**Last updated:** [July 2, 2021, 4:04pm UTC](https://discourse.julialang.org/t/trouble-using-forwarddiff-on-a-function-with-a-cache-vector-and-a-custom-struct/63420 "2021-07-02T16:04:39Z")

</div>

I am having trouble calculating the gradient (via ForwardDiff.gradient) of a function that involves a cached vector and a custom struct. Here is my MWE: module atest using DiffEqBase: get\_tmp, dualcache, DiffCache using…

---

## [\[ANN\] EasyML.jl - a foolproof way of doing ML with GUI elements](https://discourse.julialang.org/t/ann-easyml-jl-a-foolproof-way-of-doing-ml-with-gui-elements/63754)

<div class="topic-metadata">

**Author:** [@OMLA](https://discourse.julialang.org/u/OMLA)\
**Replies:** 6\
**Last updated:** [July 2, 2021, 3:17pm UTC](https://discourse.julialang.org/t/ann-easyml-jl-a-foolproof-way-of-doing-ml-with-gui-elements/63754 "2021-07-02T15:17:07Z")

</div>

We would like to announce a package which goal is to simplify machine learning as much as possible so that anyone can start doing it right away. With our package it is possible to: Design a neural network Train a neur…

---

## [Can I reference a range within a dataframe using named columns?](https://discourse.julialang.org/t/can-i-reference-a-range-within-a-dataframe-using-named-columns/63943)

<div class="topic-metadata">

**Author:** [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Replies:** 4\
**Last updated:** [July 2, 2021, 3:01pm UTC](https://discourse.julialang.org/t/can-i-reference-a-range-within-a-dataframe-using-named-columns/63943 "2021-07-02T15:01:34Z")

</div>

Hi, I have a DataFrame (df) whose columns are titled col1, col2, 0, 1, 2, 3, 4 and 5. I need to create a vector referencing the first row (1) of columns 0, 1, 2, 3, 4 and 5. The following code works, but isn’t dynamic…

---

## [Best way to construct 2-D Laplacian banded matrix: BandedMatrices, sparse, or BlockBandedMatrices?](https://discourse.julialang.org/t/best-way-to-construct-2-d-laplacian-banded-matrix-bandedmatrices-sparse-or-blockbandedmatrices/29123)

<div class="topic-metadata">

**Author:** [@EmadMasroor](https://discourse.julialang.org/u/EmadMasroor)\
**Replies:** 22\
**Last updated:** [July 2, 2021, 12:13pm UTC](https://discourse.julialang.org/t/best-way-to-construct-2-d-laplacian-banded-matrix-bandedmatrices-sparse-or-blockbandedmatrices/29123 "2021-07-02T12:13:31Z")

</div>

Hi! I am trying to construct the matrix associated with the 2-D Laplacian operator. To do this, I need a special kind of banded matrix. It’s best illustrated at this excellent page, and I reproduce their example matrix …

---

## [(seems) a more efficient way to use diffEqOperator.jl](https://discourse.julialang.org/t/seems-a-more-efficient-way-to-use-diffeqoperator-jl/63506)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 12:12pm UTC](https://discourse.julialang.org/t/seems-a-more-efficient-way-to-use-diffeqoperator-jl/63506 "2021-07-02T12:12:04Z")

</div>

I found the derivative operators are not efficient, there seems to have a more efficient way to use. If I am wrong please tell me. For example when I have : dx = 0.01 x = dx:dx:0.3 Δ1 = UpwindDifference(1, 1, dx, lengt…

---

## [Workaround to "Mutating arrays is not supported" with Zygote and UDEs](https://discourse.julialang.org/t/workaround-to-mutating-arrays-is-not-supported-with-zygote-and-udes/61585)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 7\
**Last updated:** [July 2, 2021, 12:08pm UTC](https://discourse.julialang.org/t/workaround-to-mutating-arrays-is-not-supported-with-zygote-and-udes/61585 "2021-07-02T12:08:07Z")

</div>

I’m trying to implement a Universal Differential Equation (UDE) based on a 2D diffusion PDE with an integrated neural network. I’m computing the diffusivity of a 2D matrix H with a forward scheme, and once I reach the th…

---

## [Change a struct in place](https://discourse.julialang.org/t/change-a-struct-in-place/63914)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 20\
**Last updated:** [July 2, 2021, 11:16am UTC](https://discourse.julialang.org/t/change-a-struct-in-place/63914 "2021-07-02T11:16:36Z")

</div>

I made a struct with Float32 julia\> struct Foo x::Float32 end julia\> foo = Foo(1) Foo(1.0f0) But now I realized Float32 isn’t big enough and I want Float64, and I want the change to propagate to the ins…

---

## [Reading/Writing struct instance to file as binary](https://discourse.julialang.org/t/reading-writing-struct-instance-to-file-as-binary/63818)

<div class="topic-metadata">

**Author:** [@nullmap](https://discourse.julialang.org/u/nullmap)\
**Replies:** 7\
**Last updated:** [July 2, 2021, 11:02am UTC](https://discourse.julialang.org/t/reading-writing-struct-instance-to-file-as-binary/63818 "2021-07-02T11:02:15Z")

</div>

Hi everyone, I am looking into possible solutions for persisting struct instances on disk as binary data. I’m using credentials data as an MVP example. The following code works as I expect. I create a struct with some f…

---

## [How to parallelize list comprehension and map with multithreading?](https://discourse.julialang.org/t/how-to-parallelize-list-comprehension-and-map-with-multithreading/49509)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 20\
**Last updated:** [July 2, 2021, 10:22am UTC](https://discourse.julialang.org/t/how-to-parallelize-list-comprehension-and-map-with-multithreading/49509 "2021-07-02T10:22:55Z")

</div>

The macro Threads.@threads parallelizes for loops. Is there something similar for list comprehension and map? I can trivially rewrite them as for loops, but prefer not to.

---

## [Drawing and animation, package recommendation](https://discourse.julialang.org/t/drawing-and-animation-package-recommendation/63917)

<div class="topic-metadata">

**Author:** [@Erasmo98](https://discourse.julialang.org/u/Erasmo98)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 9:30am UTC](https://discourse.julialang.org/t/drawing-and-animation-package-recommendation/63917 "2021-07-02T09:30:49Z")

</div>

A friend of mine made this awsome image by hand using Windows Paint. Which package do you recommend me for drawing it and animating it? The animation would be of transformations of the original image. I’ve read that Cair…

---

## [How to set up number of threads appropriately based on Hardware?](https://discourse.julialang.org/t/how-to-set-up-number-of-threads-appropriately-based-on-hardware/63856)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 18\
**Last updated:** [July 1, 2021, 10:35pm UTC](https://discourse.julialang.org/t/how-to-set-up-number-of-threads-appropriately-based-on-hardware/63856 "2021-07-01T22:35:59Z")

</div>

Hello, Based on my computer’s performance, what is the maximum number I can set in Julia for: 1- Multiprocessors: is it addprocs(12)? 2- Multithreading: is it julia\_num\_threads=12? Thanks,

---

## [Input signal - change variable function at time t](https://discourse.julialang.org/t/input-signal-change-variable-function-at-time-t/63925)

<div class="topic-metadata">

**Author:** [@minhnguyen](https://discourse.julialang.org/u/minhnguyen)\
**Replies:** 1\
**Last updated:** [July 2, 2021, 9:01am UTC](https://discourse.julialang.org/t/input-signal-change-variable-function-at-time-t/63925 "2021-07-02T09:01:58Z")

</div>

Hi everyone, I’m dealing with differential equations with additional variable function i(t) which is a signal input that is on and off and then on. I don’t know how to integrate this into my function function twosystem…

---

## [Two Decimal Place Fixed Point Decimals a Necessary Feature](https://discourse.julialang.org/t/two-decimal-place-fixed-point-decimals-a-necessary-feature/63808)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 18\
**Last updated:** [July 2, 2021, 8:56am UTC](https://discourse.julialang.org/t/two-decimal-place-fixed-point-decimals-a-necessary-feature/63808 "2021-07-02T08:56:20Z")

</div>

For basic accounting in all countries that use a decimal currency, such as Dollars and Cents, all numbers are always two decimal places. For this reason, having a financial number type, that is always two decimals, woul…

---

## [Controling the shadows in 3D Makie visualizations](https://discourse.julialang.org/t/controling-the-shadows-in-3d-makie-visualizations/62796)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [July 2, 2021, 8:46am UTC](https://discourse.julialang.org/t/controling-the-shadows-in-3d-makie-visualizations/62796 "2021-07-02T08:46:17Z")

</div>

I am new to 3D visualization, and wonder how people usually control the “shadows”. When I visualize the grid below the colors are too dark as if the light source was behind the cube by default: Is there a recommended …

---

## [Plot lines disappear when savefig to svg](https://discourse.julialang.org/t/plot-lines-disappear-when-savefig-to-svg/59173)

<div class="topic-metadata">

**Author:** [@BaronvonderHeyden](https://discourse.julialang.org/u/BaronvonderHeyden)\
**Replies:** 2\
**Last updated:** [July 2, 2021, 8:42am UTC](https://discourse.julialang.org/t/plot-lines-disappear-when-savefig-to-svg/59173 "2021-07-02T08:42:03Z")

</div>

When using the gr backend and saving a plot with savefig() as SVG some lines simply disappear. However, when saving the same figures as PNG or PDF they are present. This is what the SVG looks like: This is the PNG …

---

## [Gnuplot.jl : Filled contour plot with constant color between contour lines](https://discourse.julialang.org/t/gnuplot-jl-filled-contour-plot-with-constant-color-between-contour-lines/63876)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 3\
**Last updated:** [July 2, 2021, 8:41am UTC](https://discourse.julialang.org/t/gnuplot-jl-filled-contour-plot-with-constant-color-between-contour-lines/63876 "2021-07-02T08:41:45Z")

</div>

Hello, using Gnuplot I want to plot contour lines with constant color between them. my code (from https://lazarusa.github.io/gnuplot-examples/menu1/) : x = y = -15:0.33:15 fz(x,y) = sin.(sqrt.(x.^2 + y.^2))./sqrt.(x.…

---

## [Package interoperability showcases](https://discourse.julialang.org/t/package-interoperability-showcases/33734)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 7\
**Last updated:** [July 2, 2021, 7:49am UTC](https://discourse.julialang.org/t/package-interoperability-showcases/33734 "2021-07-02T07:49:35Z")

</div>

Picking up on our discussion on nice packages of the Julia ecosystem, What packages are state of the art… I argued that naming isolated packages does the ecosystem disregard because things julia-magically work together a…

---

## [Is there a maximum(f, op, itrs...) in Julia?](https://discourse.julialang.org/t/is-there-a-maximum-f-op-itrs-in-julia/63868)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 14\
**Last updated:** [July 2, 2021, 7:36am UTC](https://discourse.julialang.org/t/is-there-a-maximum-f-op-itrs-in-julia/63868 "2021-07-02T07:36:18Z")

</div>

Sometimes I see the following pattern in code. How can I write this in a more-efficient/elegant way? Without writing explicit loops, of course. a = rand(5,5); b = rand(5,5); delta = maximum(abs, i-j for (i,j) in zip(a,b…

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

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