# Latest

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

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

**Page:** 1399

---

## [How do I find a p value with HypothesisTests.jl?](https://discourse.julialang.org/t/how-do-i-find-a-p-value-with-hypothesistests-jl/60758)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 8\
**Last updated:** [May 8, 2021, 4:26pm UTC](https://discourse.julialang.org/t/how-do-i-find-a-p-value-with-hypothesistests-jl/60758 "2021-05-08T16:26:31Z")

</div>

The documentation provides the example: pvalue(test::HypothesisTest; tail = :both) but how do I enter this ie. using HypothesisTests pvalue(pvalue(ApproximateTwoSampleKSTest(x,y); :both) isn’t accepted, so how do i p…

---

## [GPU on Macs?](https://discourse.julialang.org/t/gpu-on-macs/60732)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 4\
**Last updated:** [May 8, 2021, 2:13pm UTC](https://discourse.julialang.org/t/gpu-on-macs/60732 "2021-05-08T14:13:34Z")

</div>

Is there any Julia GPU support on Macs?

---

## [Unsubscribe from all posts from a specific member](https://discourse.julialang.org/t/unsubscribe-from-all-posts-from-a-specific-member/60771)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [May 8, 2021, 1:00pm UTC](https://discourse.julialang.org/t/unsubscribe-from-all-posts-from-a-specific-member/60771 "2021-05-08T13:00:00Z")

</div>

Is it possible to unsubscribe from all posts from a specific member? I am subscribed to various domains to help people when I have time, but as the community grows we start to get lots of beginners that simply spam other…

---

## [Code specialization on literals for addition and multiplication operators](https://discourse.julialang.org/t/code-specialization-on-literals-for-addition-and-multiplication-operators/60775)

<div class="topic-metadata">

**Author:** [@Lecrapouille](https://discourse.julialang.org/u/Lecrapouille)\
**Replies:** 2\
**Last updated:** [May 8, 2021, 12:36pm UTC](https://discourse.julialang.org/t/code-specialization-on-literals-for-addition-and-multiplication-operators/60775 "2021-05-08T12:36:18Z")

</div>

Hi ! This code is working: struct MP v::Float64 end Base.:(\*)(x::MP, y::MP) = MP(x.v + y.v) Base.:(\*)(x::MP, y::Real) = MP(x.v + y) Base.:(\*)(x::Real, y::MP) = MP(x + y.v) But on a corner case, this is giving me corre…

---

## [Writing a Dict to a CSV](https://discourse.julialang.org/t/writing-a-dict-to-a-csv/60769)

<div class="topic-metadata">

**Author:** [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)\
**Replies:** 2\
**Last updated:** [May 8, 2021, 11:49am UTC](https://discourse.julialang.org/t/writing-a-dict-to-a-csv/60769 "2021-05-08T11:49:47Z")

</div>

Hi there, I’d like to write a dictionary to a csv such that: d1 = Dict(:a=\>1, :b=\>2, :c=\>3) writes to CSV as: a b c 1 2 3 additionally I then want to append another dictionary as follows: d2 = Dict(:a=\>4, …

---

## [Problem with Interpolations. Did it change?](https://discourse.julialang.org/t/problem-with-interpolations-did-it-change/60685)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 14\
**Last updated:** [May 8, 2021, 11:35am UTC](https://discourse.julialang.org/t/problem-with-interpolations-did-it-change/60685 "2021-05-08T11:35:03Z")

</div>

Hi everyone, I am updating a code of mine and on it I need to be able to interpolate a table. Mind that there a steps on the table (where the same value of X, has 2 values of Y1) and I used to have this lines: ivp …

---

## [Broadcasting setindex!](https://discourse.julialang.org/t/broadcasting-setindex/60168)

<div class="topic-metadata">

**Author:** [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Replies:** 5\
**Last updated:** [May 8, 2021, 8:28am UTC](https://discourse.julialang.org/t/broadcasting-setindex/60168 "2021-05-08T08:28:08Z")

</div>

Let’s define the following composite type of an array and a counter. The counter is supposed to keep track of the number of changes made to the array. import Base: getindex, setindex!, size, length struct ArrayWithCoun…

---

## [@code\_warntype shows lots of Union{Nothing, Tuple{Int64, Int64}}](https://discourse.julialang.org/t/code-warntype-shows-lots-of-union-nothing-tuple-int64-int64/60748)

<div class="topic-metadata">

**Author:** [@rpmuller](https://discourse.julialang.org/u/rpmuller)\
**Replies:** 7\
**Last updated:** [May 8, 2021, 12:41am UTC](https://discourse.julialang.org/t/code-warntype-shows-lots-of-union-nothing-tuple-int64-int64/60748 "2021-05-08T00:41:35Z")

</div>

I’m working through @ChrisRackauckas excellent article 7 Julia Gotchas and How to Handle Them - Stochastic Lifestyle. One of his big recommendations is to use @code\_warntype. I already found an untyped container that ma…

---

## [Vcat and plot behavior inside Julia script](https://discourse.julialang.org/t/vcat-and-plot-behavior-inside-julia-script/60720)

<div class="topic-metadata">

**Author:** [@scotttbecker](https://discourse.julialang.org/u/scotttbecker)\
**Replies:** 5\
**Last updated:** [May 8, 2021, 12:37am UTC](https://discourse.julialang.org/t/vcat-and-plot-behavior-inside-julia-script/60720 "2021-05-08T00:37:00Z")

</div>

Hi all, I must be doing something wrong. I can’t get vcat and plot to work inside a script. When I use them in the terminal the commands work fine but inside a script vcat returns no error and an empty dataframe. Plot h…

---

## [In MLJ, what does \`fit!\` do exactly?](https://discourse.julialang.org/t/in-mlj-what-does-fit-do-exactly/60750)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 11:44pm UTC](https://discourse.julialang.org/t/in-mlj-what-does-fit-do-exactly/60750 "2021-05-07T23:44:30Z")

</div>

A query posted on slack: Hello! I’m using MLJ to train a classifier but I’m not sure to correctly understand how successive trains “stack”, i.e. what happens when we call fit!() several times (it says “machine has been …

---

## [Manual reduction much faster than atomic\_add with @threads](https://discourse.julialang.org/t/manual-reduction-much-faster-than-atomic-add-with-threads/60721)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 7\
**Last updated:** [May 7, 2021, 11:30pm UTC](https://discourse.julialang.org/t/manual-reduction-much-faster-than-atomic-add-with-threads/60721 "2021-05-07T23:30:20Z")

</div>

In these examples, manually splitting and reducing the sum provides a good scaling, while using the Atomic operations is prohibitive: using Base.Threads, BenchmarkTools, Test function f\_manual() total\_Sum = zeros(n…

---

## [Arrows on trajectory as it evolves](https://discourse.julialang.org/t/arrows-on-trajectory-as-it-evolves/60733)

<div class="topic-metadata">

**Author:** [@Sahil\_Goyal](https://discourse.julialang.org/u/Sahil_Goyal)\
**Replies:** 6\
**Last updated:** [May 7, 2021, 8:35pm UTC](https://discourse.julialang.org/t/arrows-on-trajectory-as-it-evolves/60733 "2021-05-07T20:35:01Z")

</div>

I have a curve as it evolves with time, I need to have arrow on the curve something like shown in the figure. It was plotted using Mathematica. Plot not necessarily need not be against time it can be plot of x vs y.

---

## [\`using\` a package that uses \`OrderedCollections\` can silently add function methods?](https://discourse.julialang.org/t/using-a-package-that-uses-orderedcollections-can-silently-add-function-methods/60741)

<div class="topic-metadata">

**Author:** [@tomohiro\_soejima](https://discourse.julialang.org/u/tomohiro_soejima)\
**Replies:** 4\
**Last updated:** [May 7, 2021, 9:10pm UTC](https://discourse.julialang.org/t/using-a-package-that-uses-orderedcollections-can-silently-add-function-methods/60741 "2021-05-07T21:10:44Z")

</div>

(This might not be specific to Revise, but I have not looked for other examples yet. Will change the title if this topic applies more generally.) sort usually does not work with dictionaries, but it starts to work after…

---

## [Neural Networks combined with Diffeq](https://discourse.julialang.org/t/neural-networks-combined-with-diffeq/58271)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 26\
**Last updated:** [May 7, 2021, 8:18pm UTC](https://discourse.julialang.org/t/neural-networks-combined-with-diffeq/58271 "2021-05-07T20:18:07Z")

</div>

When training a neural network in place with a diffeq solver, does the neural network have to be inside the diffeq solver call which is then wrapped with the sciml\_train? Or can I have the neural network be defined to g…

---

## [Specifying which lines I want to be fast](https://discourse.julialang.org/t/specifying-which-lines-i-want-to-be-fast/60699)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [May 7, 2021, 6:55pm UTC](https://discourse.julialang.org/t/specifying-which-lines-i-want-to-be-fast/60699 "2021-05-07T18:55:26Z")

</div>

I want most of my code to be interpreter-slow in order to avoid compiler latency, but one or two lines need to be compiled-fast. Is it possible to get both of those in the same session?

---

## [Using MeasureTheory.jl with Distributions.jl](https://discourse.julialang.org/t/using-measuretheory-jl-with-distributions-jl/60737)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 0\
**Last updated:** [May 7, 2021, 6:06pm UTC](https://discourse.julialang.org/t/using-measuretheory-jl-with-distributions-jl/60737 "2021-05-07T18:06:05Z")

</div>

I’ve heard there may be some perception that to use MeasureTheory, you need to entirely drop Distributions.jl. That’s not true! Calling Distributions from MeasureTheory MeasureTheory actually has Distributions as a depe…

---

## [BioProfiling.jl](https://discourse.julialang.org/t/bioprofiling-jl/60727)

<div class="topic-metadata">

**Author:** [@koalive](https://discourse.julialang.org/u/koalive)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 4:54pm UTC](https://discourse.julialang.org/t/bioprofiling-jl/60727 "2021-05-07T16:54:17Z")

</div>

Hi there, I’m glad to announce the release of BioProfiling.jl v1.0.0, now as a registered package! You might find it interesting if you’re analysing high-content imaging screens and eager to curate informative morpholo…

---

## [Dropdown key](https://discourse.julialang.org/t/dropdown-key/60731)

<div class="topic-metadata">

**Author:** [@saraflgarcia](https://discourse.julialang.org/u/saraflgarcia)\
**Replies:** 0\
**Last updated:** [May 7, 2021, 4:14pm UTC](https://discourse.julialang.org/t/dropdown-key/60731 "2021-05-07T16:14:40Z")

</div>

How can I get the current key of a dropdown widget? using Interact d = dropdown(OrderedDict(“one” =\> 1, “two” =\> 2)) getindex(d) #gets current value getkey(d) #not works… Thanks

---

## [\[ANN\] ExcelUtilities.jl](https://discourse.julialang.org/t/ann-excelutilities-jl/55907)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 10\
**Last updated:** [May 7, 2021, 4:08pm UTC](https://discourse.julialang.org/t/ann-excelutilities-jl/55907 "2021-05-07T16:08:40Z")

</div>

In my line of work, I’m in and out of Excel a lot and wanted to be able to go back and forth between Excel and Julia. So ExcelUtilities.jl enables you to copy and paste to and from Excel: I spiked this out of it’s ori…

---

## [\--bug-report=rr doesn't play nicely with hang & interrupt: how to create bug report?](https://discourse.julialang.org/t/bug-report-rr-doesnt-play-nicely-with-hang-interrupt-how-to-create-bug-report/60718)

<div class="topic-metadata">

**Author:** [@cdwhite](https://discourse.julialang.org/u/cdwhite)\
**Replies:** 0\
**Last updated:** [May 7, 2021, 1:57pm UTC](https://discourse.julialang.org/t/bug-report-rr-doesnt-play-nicely-with-hang-interrupt-how-to-create-bug-report/60718 "2021-05-07T13:57:10Z")

</div>

I’m trying to construct and submit an rr bug report for semi-heisenbug (possibly in Julia itself). When I run julia my-script.jl (julia 1.6.1), I get one of a variety of errors, e.g. ... corrupted double-linked list o…

---

## [Summing rows and renaming the resultant column in one step?](https://discourse.julialang.org/t/summing-rows-and-renaming-the-resultant-column-in-one-step/60715)

<div class="topic-metadata">

**Author:** [@Geoffysicist](https://discourse.julialang.org/u/Geoffysicist)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 1:48pm UTC](https://discourse.julialang.org/t/summing-rows-and-renaming-the-resultant-column-in-one-step/60715 "2021-05-07T13:48:16Z")

</div>

I am summing rows of selected columns in a dataframe to create a new column df2 = select(df, :band\_result, Cols(r"rslt") =\> +) then renaming the column to “sum”. rename!(df2, 2 =\> :sum) Is there a way to do this in a…

---

## [Different behavior of zcolor in Scatter and Plot](https://discourse.julialang.org/t/different-behavior-of-zcolor-in-scatter-and-plot/22412)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 5:09pm UTC](https://discourse.julialang.org/t/different-behavior-of-zcolor-in-scatter-and-plot/22412 "2020-05-22T17:09:12Z")

</div>

Hello, I noticed that I can change the color of markers easily in Scatter, but not in Plots. Here an example: using Plots x = 1:0.1:10 y1 = x .+ 1 y2 = x .+ 2 y3 = x .+ 3 scatter(x, y1, color=:reds, zcolor=1) s…

---

## [Using TransformVariables.jl to Numerically Handle Jacobian Adjustment of Simple Problem](https://discourse.julialang.org/t/using-transformvariables-jl-to-numerically-handle-jacobian-adjustment-of-simple-problem/60677)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 1:12pm UTC](https://discourse.julialang.org/t/using-transformvariables-jl-to-numerically-handle-jacobian-adjustment-of-simple-problem/60677 "2021-05-07T13:12:19Z")

</div>

Here is a simple generative DAG where a Jacobian adjustment is required to get the logpdf of the posterior distribution for y. I can code this function to work with the DynamicHMC.jl suite of packages if I manually a…

---

## [Uniform scaling inplace addition with matrix](https://discourse.julialang.org/t/uniform-scaling-inplace-addition-with-matrix/59928)

<div class="topic-metadata">

**Author:** [@jarl](https://discourse.julialang.org/u/jarl)\
**Replies:** 13\
**Last updated:** [May 7, 2021, 1:01pm UTC](https://discourse.julialang.org/t/uniform-scaling-inplace-addition-with-matrix/59928 "2021-05-07T13:01:41Z")

</div>

I want to do an inplace add of a multiple of the identity to a matrix. I can get the efficiency I want with a view of the diagonal: using LinearAlgebra function f1!(A,s) D = view(A, diagind(A, 0)) D .+= s; end ju…

---

## [real-time camera acquisition and processing, howto](https://discourse.julialang.org/t/real-time-camera-acquisition-and-processing-howto/20398)

<div class="topic-metadata">

**Author:** [@Stefan\_Karlsson](https://discourse.julialang.org/u/Stefan_Karlsson)\
**Replies:** 16\
**Last updated:** [May 7, 2021, 12:40pm UTC](https://discourse.julialang.org/t/real-time-camera-acquisition-and-processing-howto/20398 "2021-05-07T12:40:13Z")

</div>

This is the same issue that is covered by my stackoverflow post. I have searched to best of my ability online, especially this discourse and stackoverflow. I am new to Julia. I want to use the REPL to learn, and then de…

---

## [\[WIP\] Cameras.jl](https://discourse.julialang.org/t/wip-cameras-jl/18067)

<div class="topic-metadata">

**Author:** [@stemann](https://discourse.julialang.org/u/stemann)\
**Replies:** 4\
**Last updated:** [May 7, 2021, 12:35pm UTC](https://discourse.julialang.org/t/wip-cameras-jl/18067 "2021-05-07T12:35:39Z")

</div>

Here is our current state of a (very minimal) high-level camera interface: GitHub - IHPSystems/Cameras.jl: A Julia interface for cameras It could be great if we could implement a common interface for various machine vis…

---

## [Binding variable from function which isn't defined in a closure to a closed variable](https://discourse.julialang.org/t/binding-variable-from-function-which-isnt-defined-in-a-closure-to-a-closed-variable/60703)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 11:52am UTC](https://discourse.julialang.org/t/binding-variable-from-function-which-isnt-defined-in-a-closure-to-a-closed-variable/60703 "2021-05-07T11:52:24Z")

</div>

Hi, the goal is to get a shared variable between functions by defining a closure. The following minimal working example works as intended: disp, change = let x = \[1,2\] disp = () -\> println(x) change = function(…

---

## [How to implement AD for this function?](https://discourse.julialang.org/t/how-to-implement-ad-for-this-function/60623)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 9\
**Last updated:** [May 7, 2021, 9:03am UTC](https://discourse.julialang.org/t/how-to-implement-ad-for-this-function/60623 "2021-05-07T09:03:51Z")

</div>

I am solving a system of equations with the iterative proportional fitting procedure. That means that at each iteration I solve for a subset of the variables μ0m, then hold those fixed and solve for the other subset of v…

---

## [How to select dataframe rows in Julia 1.6?](https://discourse.julialang.org/t/how-to-select-dataframe-rows-in-julia-1-6/60696)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 7:48am UTC](https://discourse.julialang.org/t/how-to-select-dataframe-rows-in-julia-1-6/60696 "2021-05-07T07:48:57Z")

</div>

Hello, I have been selecting the rows of a dataframe with a column Hit matching a parameter stored in the variable h with qry = df\[df\[:Hit\] .== h, :\] but now I have switched to Hulia 1.6 and I am getting this error: ju…

---

## [Change a function without the actual evaluation ...?](https://discourse.julialang.org/t/change-a-function-without-the-actual-evaluation/60657)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 7:32am UTC](https://discourse.julialang.org/t/change-a-function-without-the-actual-evaluation/60657 "2021-05-07T07:32:37Z")

</div>

Hi. I’d like to know if there is a way to convert a function to a different form without the actual evaluation. For example, I’m trying to make an API of DifferentialEquations.jl. However, I encountered a serious perfo…

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

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