# Latest

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

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

**Page:** 1385

---

## [A comparison of common distributions in Julia, Python and R](https://discourse.julialang.org/t/a-comparison-of-common-distributions-in-julia-python-and-r/61604)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 9:06pm UTC](https://discourse.julialang.org/t/a-comparison-of-common-distributions-in-julia-python-and-r/61604 "2021-05-21T21:06:41Z")

</div>

Common distributions in Julia, Python and R Please report errors on GitHub - sylvaticus/commonDistributionsInJuliaPythonR: Common probability distributions in Julia, Python and R Loading packages Julia: using Distri…

---

## [How can I forcefully bridge sum-of-squares constraints into PSD constraints?](https://discourse.julialang.org/t/how-can-i-forcefully-bridge-sum-of-squares-constraints-into-psd-constraints/61365)

<div class="topic-metadata">

**Author:** [@ciba12](https://discourse.julialang.org/u/ciba12)\
**Replies:** 4\
**Last updated:** [May 21, 2021, 8:48pm UTC](https://discourse.julialang.org/t/how-can-i-forcefully-bridge-sum-of-squares-constraints-into-psd-constraints/61365 "2021-05-21T20:48:37Z")

</div>

Hi everyone, I have model written using SumOfSquares.jl, it contains “F in S” pairs such as Vector{AffExpr}\`-in-\`SumOfSquares.SOSPolynomialSet{BasicSemialgebraicSet{Float64, Polynomial{true, Float64}, FullSpace}, Monom…

---

## [GaussianMixtures question](https://discourse.julialang.org/t/gaussianmixtures-question/61526)

<div class="topic-metadata">

**Author:** [@SergeantMike67](https://discourse.julialang.org/u/SergeantMike67)\
**Replies:** 8\
**Last updated:** [May 21, 2021, 7:11pm UTC](https://discourse.julialang.org/t/gaussianmixtures-question/61526 "2021-05-21T19:11:20Z")

</div>

I have a dataset that results from calculating the CpG observed over expected (an estimation of cytosine methylation in the genome) and I am trying to fit the data into a two mean, 1D Gaussian Mixture model using Gaussia…

---

## [Available libraries and how to install them?](https://discourse.julialang.org/t/available-libraries-and-how-to-install-them/60161)

<div class="topic-metadata">

**Author:** [@Buk](https://discourse.julialang.org/u/Buk)\
**Replies:** 20\
**Last updated:** [May 21, 2021, 7:02pm UTC](https://discourse.julialang.org/t/available-libraries-and-how-to-install-them/60161 "2021-05-21T19:02:13Z")

</div>

Where in the docs does it explain how to find, download and install libraries/packages?

---

## [Gks Error When Plotting in VS Code](https://discourse.julialang.org/t/gks-error-when-plotting-in-vs-code/36618)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 17\
**Last updated:** [May 21, 2021, 6:49pm UTC](https://discourse.julialang.org/t/gks-error-when-plotting-in-vs-code/36618 "2021-05-21T18:49:00Z")

</div>

The following GKS error is thrown when plotting in vscode. When I try the same plot in Juno or Linux bash terminal no error is thrown. I understand the problem is not directly related to julia-vscode extension but is cau…

---

## [Blank Heatmaps in GLMakie](https://discourse.julialang.org/t/blank-heatmaps-in-glmakie/61567)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 22\
**Last updated:** [May 21, 2021, 5:48pm UTC](https://discourse.julialang.org/t/blank-heatmaps-in-glmakie/61567 "2021-05-21T17:48:21Z")

</div>

I’ve tried the recent exciting Makie update but heatmaps all seem to come out completely blank. E.g. using GLMakie fig = Figure() ax = fig\[1,1\] = Axis(fig) hm = heatmap!(ax,randn(5, 5), axis = (aspect = 1,)) Colorbar(fi…

---

## [How can I trigger Node(array) after changing array element in Makie?](https://discourse.julialang.org/t/how-can-i-trigger-node-array-after-changing-array-element-in-makie/61414)

<div class="topic-metadata">

**Author:** [@LSellers](https://discourse.julialang.org/u/LSellers)\
**Replies:** 3\
**Last updated:** [May 21, 2021, 5:07pm UTC](https://discourse.julialang.org/t/how-can-i-trigger-node-array-after-changing-array-element-in-makie/61414 "2021-05-21T17:07:19Z")

</div>

The root issue is that when I have data = Node(\[1 2 3 4 5 6\]), I cannot force data to update elsewhere by simply changing the value of one element (data\[\]\[1\] = 0). As far as I can tell, I have to assign data\[\] = \[0 2 3 …

---

## [Coloring of specific characters in a String](https://discourse.julialang.org/t/coloring-of-specific-characters-in-a-string/61468)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 12\
**Last updated:** [May 21, 2021, 4:52pm UTC](https://discourse.julialang.org/t/coloring-of-specific-characters-in-a-string/61468 "2021-05-21T16:52:46Z")

</div>

I work with RNA and DNA sequences and am interested in determining how to change a particular character in a string to a different color. Specifically, I’d like to sequence = "AUCGCGCA" sequence\[3\] = #Blue copy of C …

---

## [How to log something slow properly](https://discourse.julialang.org/t/how-to-log-something-slow-properly/61572)

<div class="topic-metadata">

**Author:** [@ChunXi\_Zhang](https://discourse.julialang.org/u/ChunXi_Zhang)\
**Replies:** 5\
**Last updated:** [May 21, 2021, 4:40pm UTC](https://discourse.julialang.org/t/how-to-log-something-slow-properly/61572 "2021-05-21T16:40:16Z")

</div>

Here is what I want to do: using Logging using Statistics mutable struct MyLogger \<: AbstractLogger log min\_level end MyLogLevel= LogLevel(-1) MyLogger() = MyLogger(\[\], MyLogLevel) function Logging.handle\_m…

---

## [A Question About Ethical Considerations when Contributing](https://discourse.julialang.org/t/a-question-about-ethical-considerations-when-contributing/61459)

<div class="topic-metadata">

**Author:** [@RalphH](https://discourse.julialang.org/u/RalphH)\
**Replies:** 13\
**Last updated:** [May 21, 2021, 3:45pm UTC](https://discourse.julialang.org/t/a-question-about-ethical-considerations-when-contributing/61459 "2021-05-21T15:45:31Z")

</div>

I have a question about the ethical considerations of contributing. I have never contributed to open source software before. I have written a prototype function that implements the Phillips-Peron unit root test for time…

---

## [How many ways can it be reshaped?](https://discourse.julialang.org/t/how-many-ways-can-it-be-reshaped/61530)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 3\
**Last updated:** [May 21, 2021, 3:24pm UTC](https://discourse.julialang.org/t/how-many-ways-can-it-be-reshaped/61530 "2021-05-21T15:24:43Z")

</div>

I have found a few ways to solve the following problem, but I’m sure there are many others. X=\["Product\_id","Date","Unit","Revenue","Product\_id","Date","Unit","Revenue","Product\_id","Date","Unit","Revenue"\] Y=\["1234","0…

---

## [Calculating ULP distance between two floating point numbers (quickly)](https://discourse.julialang.org/t/calculating-ulp-distance-between-two-floating-point-numbers-quickly/61581)

<div class="topic-metadata">

**Author:** [@fellbyyourgun](https://discourse.julialang.org/u/fellbyyourgun)\
**Replies:** 8\
**Last updated:** [May 21, 2021, 3:09pm UTC](https://discourse.julialang.org/t/calculating-ulp-distance-between-two-floating-point-numbers-quickly/61581 "2021-05-21T15:09:59Z")

</div>

I need to compare floating point numbers for near-equality. I would like to compare them based on the ULP distance (see here if you aren’t familiar/need a refresher). The most straightforward way to do this, as far as I…

---

## [Need suggestions on how to convert from OOP library to Julia](https://discourse.julialang.org/t/need-suggestions-on-how-to-convert-from-oop-library-to-julia/60947)

<div class="topic-metadata">

**Author:** [@danilo-bc](https://discourse.julialang.org/u/danilo-bc)\
**Replies:** 9\
**Last updated:** [May 21, 2021, 2:07pm UTC](https://discourse.julialang.org/t/need-suggestions-on-how-to-convert-from-oop-library-to-julia/60947 "2021-05-21T14:07:18Z")

</div>

Hello! I’ve been reading about the one question that always comes up for people using Julia after coming from an OOP language with traditional classes and methods. Is Julia's way of OOP superior to C++/Python? Why Julia…

---

## [Performance decrease after renaming functions](https://discourse.julialang.org/t/performance-decrease-after-renaming-functions/61577)

<div class="topic-metadata">

**Author:** [@Tusike](https://discourse.julialang.org/u/Tusike)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 2:04pm UTC](https://discourse.julialang.org/t/performance-decrease-after-renaming-functions/61577 "2021-05-21T14:04:09Z")

</div>

Hi! A have a function AND which takes a pre-allocated vector and writes in the result of some operations. Following the julia naming convention, I wanted to change its name to AND! so that this behavior is reflected com…

---

## [Basic question on distributing modules](https://discourse.julialang.org/t/basic-question-on-distributing-modules/61542)

<div class="topic-metadata">

**Author:** [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 12:38pm UTC](https://discourse.julialang.org/t/basic-question-on-distributing-modules/61542 "2021-05-21T12:38:14Z")

</div>

I am using Julia 1.6.1 with Distributed. Q: Must I first install a module on every node in a cluster to use it? Or is there a way to “push” a module to where it’s needed at runtime? Apparently, if my reading is any g…

---

## [Post-processing documentation on Travis](https://discourse.julialang.org/t/post-processing-documentation-on-travis/61573)

<div class="topic-metadata">

**Author:** [@leiteiro](https://discourse.julialang.org/u/leiteiro)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 11:25am UTC](https://discourse.julialang.org/t/post-processing-documentation-on-travis/61573 "2021-05-21T11:25:55Z")

</div>

Is there a way to post-process the doc-files as given by the Documenter after the build on Travis before they are sent to github.io? What I want to do is: In the documentation, each entry is prefixed with a line …

---

## [In as few lines as possible describe why you love julia](https://discourse.julialang.org/t/in-as-few-lines-as-possible-describe-why-you-love-julia/33179)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 113\
**Last updated:** [May 21, 2021, 10:41am UTC](https://discourse.julialang.org/t/in-as-few-lines-as-possible-describe-why-you-love-julia/33179 "2021-05-21T10:41:40Z")

</div>

In as few lines of coherent code as possible show why you love Julia :slight\_smile: I’ll kick this off with a silly example: message = Dict( \[1,2,3,4\] .=\> \["why", "is", "julia", "great?"\]) result = join(map(x -\> messag…

---

## [Multivariate noncentral hypergeometric distributions](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 5\
**Last updated:** [May 21, 2021, 9:59am UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450 "2021-05-21T09:59:49Z")

</div>

Hi there Just wondering if there are plans for the inclusion of multivariate noncentral hypergeometric distributions in Distributions.jl? In particular, I need to make use of Wallenius’ version. If it’s not on the card…

---

## [Loading modules on multipole nodes](https://discourse.julialang.org/t/loading-modules-on-multipole-nodes/61569)

<div class="topic-metadata">

**Author:** [@Frisus95](https://discourse.julialang.org/u/Frisus95)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 9:42am UTC](https://discourse.julialang.org/t/loading-modules-on-multipole-nodes/61569 "2021-05-21T09:42:27Z")

</div>

Good day everyone! As the title suggests, I have a question about how to run a parallel computation on multiple nodes in a cluster. My julia code calls an external library, written in C, and then parallelizes across mu…

---

## [How to handle missings in CairoMakie](https://discourse.julialang.org/t/how-to-handle-missings-in-cairomakie/61566)

<div class="topic-metadata">

**Author:** [@vjd](https://discourse.julialang.org/u/vjd)\
**Replies:** 4\
**Last updated:** [May 21, 2021, 9:07am UTC](https://discourse.julialang.org/t/how-to-handle-missings-in-cairomakie/61566 "2021-05-21T09:07:51Z")

</div>

How does one handle missing in plots? I am on \[13f3f980\] CairoMakie v0.4.5 Reproducer below. I haven’t grouped by id below, but besides that point, how do we plot dv2. The only way I can see doing that now is to cre…

---

## [Simple random walk performance tips](https://discourse.julialang.org/t/simple-random-walk-performance-tips/61553)

<div class="topic-metadata">

**Author:** [@Babou](https://discourse.julialang.org/u/Babou)\
**Replies:** 6\
**Last updated:** [May 21, 2021, 8:39am UTC](https://discourse.julialang.org/t/simple-random-walk-performance-tips/61553 "2021-05-21T08:39:54Z")

</div>

Hi all I have written a small code chunk for a generic random walk, as I am hoping to use julia for dynamic systems simulations this will be a good toy example for me to improve memory usage. function rwalks(T,N,n) …

---

## [Define a function on a remote process only](https://discourse.julialang.org/t/define-a-function-on-a-remote-process-only/61561)

<div class="topic-metadata">

**Author:** [@Eggiverse](https://discourse.julialang.org/u/Eggiverse)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 8:33am UTC](https://discourse.julialang.org/t/define-a-function-on-a-remote-process-only/61561 "2021-05-21T08:33:56Z")

</div>

I am trying to run a job on a remote process. But the job function will not be run on the main process, so I try to avoid defining it on main process. However, it seems impossible to define a function on a child process …

---

## [Trying to save an animation as a gif, but getting error and permission denied](https://discourse.julialang.org/t/trying-to-save-an-animation-as-a-gif-but-getting-error-and-permission-denied/61565)

<div class="topic-metadata">

**Author:** [@eugenetkj98](https://discourse.julialang.org/u/eugenetkj98)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 8:11am UTC](https://discourse.julialang.org/t/trying-to-save-an-animation-as-a-gif-but-getting-error-and-permission-denied/61565 "2021-05-21T08:11:27Z")

</div>

Hi guys, so I’m trying to compile a whole bunch of plots as one moving gif or video using the Plots.jl library alongside ImageMagick. However, whenever I run it, @animate seems to work fine but fails when it tries to inp…

---

## [Difficulty producing Contour plots of multidimensional data, with x-values different for each time step](https://discourse.julialang.org/t/difficulty-producing-contour-plots-of-multidimensional-data-with-x-values-different-for-each-time-step/61560)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 7:18am UTC](https://discourse.julialang.org/t/difficulty-producing-contour-plots-of-multidimensional-data-with-x-values-different-for-each-time-step/61560 "2021-05-21T07:18:47Z")

</div>

Hi, I have a set of 2-dimensional data, defined over an array of timesteps, but at each timestep the position x-values are different. I’m trying to get contour plots, but the plots come up blank, and each time I get the …

---

## [SORT a Dictionary by Numerical Keys](https://discourse.julialang.org/t/sort-a-dictionary-by-numerical-keys/61547)

<div class="topic-metadata">

**Author:** [@bonnkleiford](https://discourse.julialang.org/u/bonnkleiford)\
**Replies:** 3\
**Last updated:** [May 21, 2021, 5:44am UTC](https://discourse.julialang.org/t/sort-a-dictionary-by-numerical-keys/61547 "2021-05-21T05:44:35Z")

</div>

I have a Dictionary: A = Dict("1" =\> 0.1, "11" =\> 0.1, "13" =\> 0.1, "15" =\> 0.1, "17" =\> 0.1, "19" =\> 0.1, "3" =\> 0.1, "5" =\> 0.1, "7" =\> 0.1, "9" =\> 0.1) I want to sort it according to its numer…

---

## ["vecnorm" : column/row-wise norm](https://discourse.julialang.org/t/vecnorm-column-row-wise-norm/12354)

<div class="topic-metadata">

**Author:** [@thgnguyen](https://discourse.julialang.org/u/thgnguyen)\
**Replies:** 5\
**Last updated:** [May 21, 2021, 5:06am UTC](https://discourse.julialang.org/t/vecnorm-column-row-wise-norm/12354 "2021-05-21T05:06:32Z")

</div>

I have a 2D array, and want to treat each row (or column) as a vector and find norm of it a = \[1 2 3 ; 4 5 6\] a 2×3 Array{Int64,2}: 1 2 3 4 5 6 The following is what I have tried and their results. Both norm.(a…

---

## [Julia no registries found](https://discourse.julialang.org/t/julia-no-registries-found/61554)

<div class="topic-metadata">

**Author:** [@Babou](https://discourse.julialang.org/u/Babou)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 3:54am UTC](https://discourse.julialang.org/t/julia-no-registries-found/61554 "2021-05-21T03:54:55Z")

</div>

So today I was trying to install a package and my julia was tking forever, over 10 miuntes so I exited. I am on a windows machine, I tried follwoing the advice on this trhead: Very slow "Updating registry at 'C:\\Users\\m…

---

## [FYI: Cosmopolitan for e.g. Julia portability (potentially)](https://discourse.julialang.org/t/fyi-cosmopolitan-for-e-g-julia-portability-potentially/61488)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 6\
**Last updated:** [May 20, 2021, 11:29pm UTC](https://discourse.julialang.org/t/fyi-cosmopolitan-for-e-g-julia-portability-potentially/61488 "2021-05-20T23:29:35Z")

</div>

reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS with the best possible performance and the tiniest footprint …

---

## [Apply a function in-place to a DataFrame column and return a new dataframe with replaced column](https://discourse.julialang.org/t/apply-a-function-in-place-to-a-dataframe-column-and-return-a-new-dataframe-with-replaced-column/61545)

<div class="topic-metadata">

**Author:** [@anon71627001](https://discourse.julialang.org/u/anon71627001)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 11:04pm UTC](https://discourse.julialang.org/t/apply-a-function-in-place-to-a-dataframe-column-and-return-a-new-dataframe-with-replaced-column/61545 "2021-05-20T23:04:11Z")

</div>

Hi, is there a function to apply a function to each value in specific column of a DataFrame, and then return a DataFrame with the new column replacing the old column even if it has a different eltype? Something like mut…

---

## [Plotting bug in VS Code plot pane](https://discourse.julialang.org/t/plotting-bug-in-vs-code-plot-pane/44695)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 6\
**Last updated:** [May 20, 2021, 11:00pm UTC](https://discourse.julialang.org/t/plotting-bug-in-vs-code-plot-pane/44695 "2021-05-20T23:00:04Z")

</div>

I am running on a server without sudo access. When I plot in VS Code (using ctrl-enter), I get the following error: julia\> p = plot(rand(100)) /home/affans/.julia/packages/GR/Atztx/src/../deps/gr/bin/gksqt: error wh…

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

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