# Latest

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

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

**Page:** 1283

---

## [Julia Community in Africa](https://discourse.julialang.org/t/julia-community-in-africa/62084)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 9:29am UTC](https://discourse.julialang.org/t/julia-community-in-africa/62084 "2021-08-30T09:29:51Z")

</div>

Hey folks, I am interested in helping support/kickoff some events and resources for our Julia community in Africa. Any folks in that community that are interested, please get in touch and we can collaborate on getting so…

---

## [PlotlyJS: faceted density heatmaps](https://discourse.julialang.org/t/plotlyjs-faceted-density-heatmaps/67313)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 9:10am UTC](https://discourse.julialang.org/t/plotlyjs-faceted-density-heatmaps/67313 "2021-08-30T09:10:37Z")

</div>

Hi, I am trying to replicate the code that produces a faceted density heatmap using the “tips” data frame. The code I am trying to replicate is this: using PlotlyJS, CSV, DataFrames df = dataset(DataFrame, "tips") plo…

---

## [Unsure about counts and proportions](https://discourse.julialang.org/t/unsure-about-counts-and-proportions/67333)

<div class="topic-metadata">

**Author:** [@Naba7](https://discourse.julialang.org/u/Naba7)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 9:01am UTC](https://discourse.julialang.org/t/unsure-about-counts-and-proportions/67333 "2021-08-30T09:01:05Z")

</div>

isequal(proportions(\[1, 2, 2, 3, 4, 5, 5, 5, 7, 7\], s1), counts(\[1, 2, 2, 3, 4, 5, 5, 5, 7, 7\], s1)/length(\[1, 2, 2, 3, 4, 5, 5, 5, 7, 7\])) when s1 = span(\[1, 2, 2, 3, 4, 5, 5, 5, 7, 7\]) gives false while proportions(…

---

## [Is there any good way to check gradient calculated by Zygote.jl](https://discourse.julialang.org/t/is-there-any-good-way-to-check-gradient-calculated-by-zygote-jl/59782)

<div class="topic-metadata">

**Author:** [@Richard-Li](https://discourse.julialang.org/u/Richard-Li)\
**Replies:** 8\
**Last updated:** [August 30, 2021, 8:58am UTC](https://discourse.julialang.org/t/is-there-any-good-way-to-check-gradient-calculated-by-zygote-jl/59782 "2021-08-30T08:58:07Z")

</div>

Hi there, I’d like to know is there any good way to check the gradient of custom matrix functions calculated by Zygote.jl. like this one: function my\_custom\_matrix\_func(m) return sum(m \* m') end I know FiniteDif…

---

## [How to get the same "random" numbers on Julia and R. seed](https://discourse.julialang.org/t/how-to-get-the-same-random-numbers-on-julia-and-r-seed/17689)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 11\
**Last updated:** [August 30, 2021, 8:54am UTC](https://discourse.julialang.org/t/how-to-get-the-same-random-numbers-on-julia-and-r-seed/17689 "2021-08-30T08:54:14Z")

</div>

If I run this code on R set.seed(123) runif(1) I get 0.2875775 But if I run on Julia using Random Random.seed!(123); rand(1,1) I get 0.7684476751965699 I guess they use different methods to generate ra…

---

## [How to export \`Base:@kwdef\`?](https://discourse.julialang.org/t/how-to-export-base-kwdef/67213)

<div class="topic-metadata">

**Author:** [@thisismygitrepo](https://discourse.julialang.org/u/thisismygitrepo)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 8:50am UTC](https://discourse.julialang.org/t/how-to-export-base-kwdef/67213 "2021-08-30T08:50:18Z")

</div>

I’m trying to export Base:@kwdef in a module that I am making via this line using Base:@kwdef export @kwdef However, in the main module, it gets defined as var"@kwdef", how can I fix this?

---

## [Towards an eachsliceX function](https://discourse.julialang.org/t/towards-an-eachslicex-function/67145)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 3\
**Last updated:** [August 30, 2021, 8:48am UTC](https://discourse.julialang.org/t/towards-an-eachslicex-function/67145 "2021-08-30T08:48:55Z")

</div>

eachslice does the opposite of what I would like. For instance, if X is a 3D array, then eachslice(X,dims=1) gives an iterator over 2D matrices. Rather, I would like an iterator over all ‘column vectors’, like eachcol().…

---

## [Resources for creating first package](https://discourse.julialang.org/t/resources-for-creating-first-package/67327)

<div class="topic-metadata">

**Author:** [@DawievLill](https://discourse.julialang.org/u/DawievLill)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 8:17am UTC](https://discourse.julialang.org/t/resources-for-creating-first-package/67327 "2021-08-30T08:17:28Z")

</div>

Hi everyone, I have been reading the message boards for some time now and it seems like the people in the community are quite friendly, so I thought I might get more involved. I have some Julia code that I want to conv…

---

## [Pretty print BenchmarkGroup](https://discourse.julialang.org/t/pretty-print-benchmarkgroup/67332)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 8:06am UTC](https://discourse.julialang.org/t/pretty-print-benchmarkgroup/67332 "2021-08-30T08:06:10Z")

</div>

How can I pretty print the results from a BenchmarkGroup suite? I swear I’ve seen nice tables of results before, but it is Monday and my google-fu is failing me.

---

## [Why does julia systematically fails when doing \\ operation?](https://discourse.julialang.org/t/why-does-julia-systematically-fails-when-doing-operation/67242)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 10\
**Last updated:** [August 30, 2021, 7:45am UTC](https://discourse.julialang.org/t/why-does-julia-systematically-fails-when-doing-operation/67242 "2021-08-30T07:45:05Z")

</div>

The problem Ax=b for square A is solved by the \\ function. With that in mind, I’ve tried to do the following: A = rand(1:4,3,3) x = fill(1.0, 3) b = A \* x A\\b For some reason, the code …

---

## [Comparing Sum function from multiple languages](https://discourse.julialang.org/t/comparing-sum-function-from-multiple-languages/67305)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 6:53am UTC](https://discourse.julialang.org/t/comparing-sum-function-from-multiple-languages/67305 "2021-08-30T06:53:34Z")

</div>

Hello there. I’ve finished the juliaacademy course on the basics of julia and it ends with a very nice comparision of the sum function across multiple languages. I’ve changed some few things in the original code, now I’…

---

## [Auto docs in documenter.jl](https://discourse.julialang.org/t/auto-docs-in-documenter-jl/67203)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 6:19am UTC](https://discourse.julialang.org/t/auto-docs-in-documenter-jl/67203 "2021-08-30T06:19:41Z")

</div>

How to use the @autodocs from Documenter.jl - I had seen the documentation but I can not grasp in which place of which files I need to do this ; till now I documented all functions using normal “”" “”" above each functi…

---

## [Should we improve the text output of Profile.print()?](https://discourse.julialang.org/t/should-we-improve-the-text-output-of-profile-print/67310)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 5:52am UTC](https://discourse.julialang.org/t/should-we-improve-the-text-output-of-profile-print/67310 "2021-08-30T05:52:34Z")

</div>

Currently, if you profile the function mentioned in ProfileView.jl’s README and Profile.print() you get the following output. using Profile function profile\_test(n) for i = 1:n A = randn(100,100,20) …

---

## [How to print a vector as a column vector?](https://discourse.julialang.org/t/how-to-print-a-vector-as-a-column-vector/67291)

<div class="topic-metadata">

**Author:** [@qdmj](https://discourse.julialang.org/u/qdmj)\
**Replies:** 5\
**Last updated:** [August 29, 2021, 6:58pm UTC](https://discourse.julialang.org/t/how-to-print-a-vector-as-a-column-vector/67291 "2021-08-29T18:58:23Z")

</div>

In REPL, I can call a = \[1,2\] to get 2-element Vector{Int64}: 1 2 However, when I run a script and call print(a) , I can just get \[1, 2\] as an row vector. Then is there a method to get a column vector as o…

---

## [Alternative to mutable named tuple?](https://discourse.julialang.org/t/alternative-to-mutable-named-tuple/38375)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 14\
**Last updated:** [August 27, 2021, 11:10pm UTC](https://discourse.julialang.org/t/alternative-to-mutable-named-tuple/38375 "2021-08-27T23:10:42Z")

</div>

For many of my ad-hoc projects I’ve started using Vectors of NamedTuples rather than Vectors of structs because I get the same performance with the benefit of being able to slightly nicer syntax and being able to change …

---

## [How to write in .parquet (or any compressed extension)](https://discourse.julialang.org/t/how-to-write-in-parquet-or-any-compressed-extension/67264)

<div class="topic-metadata">

**Author:** [@Caique\_Rodrigues](https://discourse.julialang.org/u/Caique_Rodrigues)\
**Replies:** 3\
**Last updated:** [August 29, 2021, 11:06pm UTC](https://discourse.julialang.org/t/how-to-write-in-parquet-or-any-compressed-extension/67264 "2021-08-29T23:06:20Z")

</div>

I’m doing some simulation that the output can be around 1GB to 10GB, it’s not so big but we are probably going to run lots of simulations. Right now we are saving the output in .txt, but I’d like to write it in a better …

---

## [Flux: Hidden problem broadcasting convolution layer on GPU?](https://discourse.julialang.org/t/flux-hidden-problem-broadcasting-convolution-layer-on-gpu/67316)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 3:13am UTC](https://discourse.julialang.org/t/flux-hidden-problem-broadcasting-convolution-layer-on-gpu/67316 "2021-08-30T03:13:42Z")

</div>

I found the following comment in the source code for the Conv layer for Flux.jl: function (c::Conv)(x::AbstractArray) # TODO: breaks gpu broadcast :( It’s a bit concerning, given that I am currently working on a proj…

---

## [\[HELP\] Problem with git when using ssh-key deploy authentication method](https://discourse.julialang.org/t/help-problem-with-git-when-using-ssh-key-deploy-authentication-method/67322)

<div class="topic-metadata">

**Author:** [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 2:21am UTC](https://discourse.julialang.org/t/help-problem-with-git-when-using-ssh-key-deploy-authentication-method/67322 "2021-08-30T02:21:59Z")

</div>

Hi, I have a private github (free) repository and I’m using a deploy ssh-key for authentication. I set up everything as described here. Everything works ok, I can clone, pull and push freely (the deploy-key is for readi…

---

## [Reading large csv file](https://discourse.julialang.org/t/reading-large-csv-file/67258)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 12\
**Last updated:** [August 30, 2021, 12:10am UTC](https://discourse.julialang.org/t/reading-large-csv-file/67258 "2021-08-30T00:10:20Z")

</div>

I checked some answers and all point to CSV.jl, but it is slow(i guess this is “time to first plot” issue), it uses a lot of memory, it produces some strange type of array as output… Do I have another choice?

---

## [Having second axis in pgfplotsx](https://discourse.julialang.org/t/having-second-axis-in-pgfplotsx/67315)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 12:06am UTC](https://discourse.julialang.org/t/having-second-axis-in-pgfplotsx/67315 "2021-08-30T00:06:55Z")

</div>

is it possible to have second axis for x and y when using PGFPlotsX.jl? thanks

---

## [Define fft\_plan! for nested array](https://discourse.julialang.org/t/define-fft-plan-for-nested-array/67309)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 1\
**Last updated:** [August 29, 2021, 10:27pm UTC](https://discourse.julialang.org/t/define-fft-plan-for-nested-array/67309 "2021-08-29T22:27:23Z")

</div>

Hi, I have a nested array Array{SVector{n},2}, which is a 2D array of n-SVectors. I would like to perform in-place fft to each component of the n-SVectors. This is what worked for me: julia\> A=rand(SVector{2,ComplexF64}…

---

## [Document(er) mystery](https://discourse.julialang.org/t/document-er-mystery/67306)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 7\
**Last updated:** [August 29, 2021, 9:48pm UTC](https://discourse.julialang.org/t/document-er-mystery/67306 "2021-08-29T21:48:55Z")

</div>

I use project - specific files in docs, Project.toml and Manifest.toml. I wish to run docs: name: Documentation runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: julia-actions/…

---

## [The mean of 3-d EmsembleSolution from StochasticDelayDiffEq](https://discourse.julialang.org/t/the-mean-of-3-d-emsemblesolution-from-stochasticdelaydiffeq/67287)

<div class="topic-metadata">

**Author:** [@Liwei17](https://discourse.julialang.org/u/Liwei17)\
**Replies:** 6\
**Last updated:** [August 29, 2021, 9:23pm UTC](https://discourse.julialang.org/t/the-mean-of-3-d-emsemblesolution-from-stochasticdelaydiffeq/67287 "2021-08-29T21:23:07Z")

</div>

I have a 3-dimensional matrix like this . I want to get its mean of the third dimension, i.e. the average of 1000 two-dimensions. But it shows fault like this Did I use the mean wrong?

---

## [Is there an equivalent of python's PyPlot tight\_layout() for Julia Plots?](https://discourse.julialang.org/t/is-there-an-equivalent-of-pythons-pyplot-tight-layout-for-julia-plots/67304)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 4\
**Last updated:** [August 29, 2021, 6:59pm UTC](https://discourse.julialang.org/t/is-there-an-equivalent-of-pythons-pyplot-tight-layout-for-julia-plots/67304 "2021-08-29T18:59:23Z")

</div>

As you can see in this graph, the annotation goes beyond the area of the figure. In python I’m used to fix this with pyplot.tight\_layout(). d = Dict{Any, Any} with 7 entries: "C" =\> 10.7406 "C ff…

---

## [Failed to precompile DifferentialEquations](https://discourse.julialang.org/t/failed-to-precompile-differentialequations/67286)

<div class="topic-metadata">

**Author:** [@baba12321](https://discourse.julialang.org/u/baba12321)\
**Replies:** 4\
**Last updated:** [August 29, 2021, 6:44pm UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations/67286 "2021-08-29T18:44:07Z")

</div>

I am trying to run the sample code given here. The code here on Differential Equations using DifferentialEquations, Flux, Optim, DiffEqFlux, Plots u0 = \[1.0,1.0\] tstart=0.0 tend=10.0 sampling=0.1 model\_params= \[1.…

---

## [Change the diagonal of an AbstractMatrix in place](https://discourse.julialang.org/t/change-the-diagonal-of-an-abstractmatrix-in-place/67294)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 2\
**Last updated:** [August 29, 2021, 5:30pm UTC](https://discourse.julialang.org/t/change-the-diagonal-of-an-abstractmatrix-in-place/67294 "2021-08-29T17:30:17Z")

</div>

To add an AbstractVector v to the diagonal of an AbstractMatrix M, one can do using LinearAlgebra M + Diagonal(v) Is there a way to do the same thing without creating a new matrix (i.e., modify M in place)? I’m lookin…

---

## [How do I change the values of a dataframe within a dictionary](https://discourse.julialang.org/t/how-do-i-change-the-values-of-a-dataframe-within-a-dictionary/67231)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 11\
**Last updated:** [August 29, 2021, 5:26pm UTC](https://discourse.julialang.org/t/how-do-i-change-the-values-of-a-dataframe-within-a-dictionary/67231 "2021-08-29T17:26:06Z")

</div>

I’d like to know how to change the values of a dataframe, and ultimately a dataframe within a dictionary. starting\_balance=( starting\_balance\["debit"\]\["assets"\]\[account\]=\>( DataFrame( date=Vector{String}("31 …

---

## [Where \`add\_int\` is defined](https://discourse.julialang.org/t/where-add-int-is-defined/67278)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 10\
**Last updated:** [August 29, 2021, 4:52pm UTC](https://discourse.julialang.org/t/where-add-int-is-defined/67278 "2021-08-29T16:52:48Z")

</div>

I am curious how some basic operations are mapped to llvm instructions. I am looking on an addition of two integers, but I cannot find the source of julia, where add\_int is defined. I have located in boot.jl that mul\_int …

---

## [How to modify marker style in Pyplot?](https://discourse.julialang.org/t/how-to-modify-marker-style-in-pyplot/67293)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [August 29, 2021, 4:48pm UTC](https://discourse.julialang.org/t/how-to-modify-marker-style-in-pyplot/67293 "2021-08-29T16:48:45Z")

</div>

Hello, I am using PyPlot to draw a plot. What are the parameters for the fill color, line, and size fo the markers? I am using myPlot = plot(col\_x, col\_y, linestyle = "none", marker = "o", color = "black") but if I u…

---

## [Introducing Julia to French speaking students](https://discourse.julialang.org/t/introducing-julia-to-french-speaking-students/67267)

<div class="topic-metadata">

**Author:** [@Gilles\_Dubois](https://discourse.julialang.org/u/Gilles_Dubois)\
**Replies:** 8\
**Last updated:** [August 29, 2021, 4:36pm UTC](https://discourse.julialang.org/t/introducing-julia-to-french-speaking-students/67267 "2021-08-29T16:36:40Z")

</div>

Hello everybody ! This is just an announcement specially for the French speaking community, but not only. I’m the author of a math web-site dedicated mostly to first year university students. The site is popular in Fra…

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

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