# Latest

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

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

**Page:** 718

---

## [Sum rows of DataFrame](https://discourse.julialang.org/t/sum-rows-of-dataframe/97920)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [April 26, 2023, 3:44pm UTC](https://discourse.julialang.org/t/sum-rows-of-dataframe/97920 "2023-04-26T15:44:41Z")

</div>

What is the most idiomatic way to sum up all rows of a DataFrame into a row of totals? Can you give an example where the DataFrame contains numeric and non-numeric columns?

---

## [Is it possible to get the most fitting dispatch types?](https://discourse.julialang.org/t/is-it-possible-to-get-the-most-fitting-dispatch-types/97909)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 5\
**Last updated:** [April 26, 2023, 2:27pm UTC](https://discourse.julialang.org/t/is-it-possible-to-get-the-most-fitting-dispatch-types/97909 "2023-04-26T14:27:29Z")

</div>

Say that I have a list of function argument types possible\_argument\_types = \[(Int,), (Int,Union{Real,Char}), (Float64,Int), (Any,Int)\] And the input type input\_type = (String,Int) Is it possible for a function like t…

---

## [Any software to find mixed Nash equilibrium in multi-player simultaneous games?](https://discourse.julialang.org/t/any-software-to-find-mixed-nash-equilibrium-in-multi-player-simultaneous-games/96260)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 2:13pm UTC](https://discourse.julialang.org/t/any-software-to-find-mixed-nash-equilibrium-in-multi-player-simultaneous-games/96260 "2023-04-26T14:13:33Z")

</div>

Hello, does anyone know of an (preferably open source) implementation of an algorithm to find Nash equilibrium in multi-player simultaneous games when mixed strategies are allowed? On one side nashpy works only with 2…

---

## [Exception raised when debugging Flux.jl code](https://discourse.julialang.org/t/exception-raised-when-debugging-flux-jl-code/97949)

<div class="topic-metadata">

**Author:** [@karim](https://discourse.julialang.org/u/karim)\
**Replies:** 0\
**Last updated:** [April 26, 2023, 2:11pm UTC](https://discourse.julialang.org/t/exception-raised-when-debugging-flux-jl-code/97949 "2023-04-26T14:11:37Z")

</div>

The below code runs fine but when I run it under the VS Code debugger I get an ErrorException: Method is @generated; try ‘code\_lowered’ instead. using Flux input = rand(28) label = rand(10) model = Chain( Dense(28 =\>…

---

## [Loading Dataframes into Big Query](https://discourse.julialang.org/t/loading-dataframes-into-big-query/95457)

<div class="topic-metadata">

**Author:** [@AntonoK](https://discourse.julialang.org/u/AntonoK)\
**Replies:** 17\
**Last updated:** [April 26, 2023, 1:36pm UTC](https://discourse.julialang.org/t/loading-dataframes-into-big-query/95457 "2023-04-26T13:36:08Z")

</div>

I’m currently exploring the best way to directly load a dataframe object into Google’s BigQuery, similar to Pandas to\_gbq function. As a hotfix, I’ve been looking at a command line wrapper. This would line up with the p…

---

## [Multi-threaded code with :dynamic scheduler and mutable data](https://discourse.julialang.org/t/multi-threaded-code-with-dynamic-scheduler-and-mutable-data/97887)

<div class="topic-metadata">

**Author:** [@lijas](https://discourse.julialang.org/u/lijas)\
**Replies:** 5\
**Last updated:** [April 26, 2023, 12:25pm UTC](https://discourse.julialang.org/t/multi-threaded-code-with-dynamic-scheduler-and-mutable-data/97887 "2023-04-26T12:25:09Z")

</div>

I have a loop which I am currently multi-threading using the :static scheduler: threadcache = \[create\_cache() for i in 1:Threads.nthreads()\] Threads.@threads :static for i in 1:... data = threadcache\[Threads.threadi…

---

## [How to do a timedwait on a ReentrantLock or Threads.Condition](https://discourse.julialang.org/t/how-to-do-a-timedwait-on-a-reentrantlock-or-threads-condition/97885)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 1\
**Last updated:** [April 25, 2023, 9:10am UTC](https://discourse.julialang.org/t/how-to-do-a-timedwait-on-a-reentrantlock-or-threads-condition/97885 "2023-04-25T09:10:44Z")

</div>

Is it possible to do a timedwait on a ReentrantLock or Threads.Condition? rlock = ReentrantLock() timedwait(rlock, 5)

---

## [Collecting Base.Broadcast.Broadcasted](https://discourse.julialang.org/t/collecting-base-broadcast-broadcasted/97933)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 9:59am UTC](https://discourse.julialang.org/t/collecting-base-broadcast-broadcasted/97933 "2023-04-26T09:59:51Z")

</div>

when overloading broadcasted() one may sometimes want to call collect. However, this seems to not remember the size: julia\> a = reshape(1:100,(10,10)) 10×10 reshape(::UnitRange{Int64}, 10, 10) with eltype Int64: 1 11…

---

## [Log-Linear Interpolation](https://discourse.julialang.org/t/log-linear-interpolation/97932)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 7:54am UTC](https://discourse.julialang.org/t/log-linear-interpolation/97932 "2023-04-26T07:54:38Z")

</div>

Does Interpolations have a log-linear model. Its common for interpolating interest rate curves. e.g. t = 1:5 zero\_rate = .01:.01:.05 discount\_factor = @. exp(- t \* zero\_rate) log\_linear = ex…

---

## [Struct and macro - currency pair - ways to specify](https://discourse.julialang.org/t/struct-and-macro-currency-pair-ways-to-specify/97930)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 6:53am UTC](https://discourse.julialang.org/t/struct-and-macro-currency-pair-ways-to-specify/97930 "2023-04-26T06:53:15Z")

</div>

I’ve defined a currency pair as struct ccy\_pair; c1::Symbol c2::Symbol end ccy\_pair(x::String) = ccy\_pair(Symbol(x\[1:3\]),Symbol(x\[end-2:end\])) macro p\_str(x) ccy\_pair(x) end So I can write as ccy\_p…

---

## [What's the meaning of project\_hash in Manifest.toml?](https://discourse.julialang.org/t/whats-the-meaning-of-project-hash-in-manifest-toml/97923)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 5:43am UTC](https://discourse.julialang.org/t/whats-the-meaning-of-project-hash-in-manifest-toml/97923 "2023-04-26T05:43:28Z")

</div>

Let’s create a new environment in Julia 1.8.5: (@v1.8) pkg\> activate . Activating new project at \`/private/tmp/test\` (test) pkg\> add Example Updating registry at \`~/.julia/registries/General.toml\` Resolving pa…

---

## [Precompiling LanguageServer.runserver() with PrecompileTools.jl](https://discourse.julialang.org/t/precompiling-languageserver-runserver-with-precompiletools-jl/97926)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [April 26, 2023, 3:39am UTC](https://discourse.julialang.org/t/precompiling-languageserver-runserver-with-precompiletools-jl/97926 "2023-04-26T03:39:14Z")

</div>

After a conversation on Slack, with Tom McLaughlin, I decided to try adding some precompilation to LanguageServer.jl. Tom had noticed about 10 second lag in the execution of LanguageServer.runserver(). This is part of j…

---

## [Missing functions in namespace from BioSequences](https://discourse.julialang.org/t/missing-functions-in-namespace-from-biosequences/97871)

<div class="topic-metadata">

**Author:** [@gus-pendleton](https://discourse.julialang.org/u/gus-pendleton)\
**Replies:** 4\
**Last updated:** [April 26, 2023, 4:40am UTC](https://discourse.julialang.org/t/missing-functions-in-namespace-from-biosequences/97871 "2023-04-26T04:40:37Z")

</div>

I feel like I’m missing something fundamental, but I’m unable to follow many of the examples in the BioSequences documentation, because many of the functions they use remain undefined in my namespace. A few key ones that…

---

## [KernelAbstractions.get\_backend keyword arguments](https://discourse.julialang.org/t/kernelabstractions-get-backend-keyword-arguments/97895)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 2:36am UTC](https://discourse.julialang.org/t/kernelabstractions-get-backend-keyword-arguments/97895 "2023-04-26T02:36:23Z")

</div>

CUDABackend accepts two keyword arguments. the default for prefer\_blocks is false. i have a custom kernel for which i need that to be true. KernelAbstractions.get\_backend has no way to pass that in. so how do i write …

---

## [How to plot with aitoff projection? (Makie)](https://discourse.julialang.org/t/how-to-plot-with-aitoff-projection-makie/97922)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 12:02am UTC](https://discourse.julialang.org/t/how-to-plot-with-aitoff-projection-makie/97922 "2023-04-26T00:02:42Z")

</div>

example: Geographic Projections — Matplotlib 3.7.1 documentation

---

## [Compressed svd algorithm implementation](https://discourse.julialang.org/t/compressed-svd-algorithm-implementation/97837)

<div class="topic-metadata">

**Author:** [@Desmond](https://discourse.julialang.org/u/Desmond)\
**Replies:** 4\
**Last updated:** [April 25, 2023, 11:34pm UTC](https://discourse.julialang.org/t/compressed-svd-algorithm-implementation/97837 "2023-04-25T23:34:32Z")

</div>

I am trying to implement the compressed SVD in this \[https://openaccess.thecvf.com/content\_ICCV\_2017\_workshops/papers/w25/Erichson\_Compressed\_Singular\_Value\_ICCV\_2017\_paper.pdf\]. Attached is the algorithm. I have proble…

---

## [Documenter.jl not updating link to stable releases](https://discourse.julialang.org/t/documenter-jl-not-updating-link-to-stable-releases/97729)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 10:02pm UTC](https://discourse.julialang.org/t/documenter-jl-not-updating-link-to-stable-releases/97729 "2023-04-25T22:02:39Z")

</div>

Not sure what I’m doing wrong but the links for the “stable” release of Crispulator.jl keeps pointing to an old version. The dev version is properly updated, but the stable link is still the old one. Here’s my TagBot.ym…

---

## [Installing ReinforcementLearning.jl downgrades Flux.jl](https://discourse.julialang.org/t/installing-reinforcementlearning-jl-downgrades-flux-jl/97880)

<div class="topic-metadata">

**Author:** [@karim](https://discourse.julialang.org/u/karim)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 9:53pm UTC](https://discourse.julialang.org/t/installing-reinforcementlearning-jl-downgrades-flux-jl/97880 "2023-04-25T21:53:55Z")

</div>

HI, I’m trying to install both Flux.jl and ReinforcementLearning.jl, but I noticed that when I first install Flux.jl I get v0.13.15 but once I add ReinforcementLearning.jl (v0.10.2) Flux.jl gets downgraded to v0.13.4. I…

---

## [JuliaCon 2023 Call for Volunteers](https://discourse.julialang.org/t/juliacon-2023-call-for-volunteers/97919)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 9:52pm UTC](https://discourse.julialang.org/t/juliacon-2023-call-for-volunteers/97919 "2023-04-25T21:52:40Z")

</div>

Hi all, The JuliaCon 2023 Organizing Committee is looking for volunteers for three positions: Webmaster: maintaining the JuliaCon website, updating it with keynote bios, abstracts, sponsors and local information. At …

---

## [(Flux/Lux) Custom Layers as Functions of Other Layers](https://discourse.julialang.org/t/flux-lux-custom-layers-as-functions-of-other-layers/97913)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 4\
**Last updated:** [April 25, 2023, 7:50pm UTC](https://discourse.julialang.org/t/flux-lux-custom-layers-as-functions-of-other-layers/97913 "2023-04-25T19:50:31Z")

</div>

Hey everyone. For some experiments, I want to set up a network where some of the weights are not trained, but instead are given as functions of other (trained) weights in my network. For a simple example, take the NN of…

---

## [Sysimage compilaiton failed with Flux](https://discourse.julialang.org/t/sysimage-compilaiton-failed-with-flux/97914)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 7:25pm UTC](https://discourse.julialang.org/t/sysimage-compilaiton-failed-with-flux/97914 "2023-04-25T19:25:51Z")

</div>

when having to compile a custom sysimage with the command using PackageCompiler; create\_sysimage(\["Flux"\]; sysimage\_path="JuliaSysimage.so") i get the following error ⡆ \[00m:22s\] PackageCompiler: compiling incremental…

---

## [How to change all desion variables from binary to non-negative and vice versa?](https://discourse.julialang.org/t/how-to-change-all-desion-variables-from-binary-to-non-negative-and-vice-versa/97893)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 1\
**Last updated:** [April 25, 2023, 3:43pm UTC](https://discourse.julialang.org/t/how-to-change-all-desion-variables-from-binary-to-non-negative-and-vice-versa/97893 "2023-04-25T15:43:26Z")

</div>

Is it possible to define a model via cplex where all the variables are binary like @variable(model, a, Bin), and run this model, then without any manual modification change all varaibles to nonnegative and run it again? …

---

## [Giving a Talk to Celebrate Julia within Health Informatics Research!](https://discourse.julialang.org/t/giving-a-talk-to-celebrate-julia-within-health-informatics-research/97632)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 6\
**Last updated:** [April 25, 2023, 3:37pm UTC](https://discourse.julialang.org/t/giving-a-talk-to-celebrate-julia-within-health-informatics-research/97632 "2023-04-25T15:37:38Z")

</div>

Hey folks, :wave: I am wondering if I could get some help/feedback! I am giving a talk this Friday to the observational health research community (OHDSI) and am getting the opportunity to share on some of the tools and …

---

## [Standalone "Hello World" Executable size comparison to Node.js](https://discourse.julialang.org/t/standalone-hello-world-executable-size-comparison-to-node-js/97656)

<div class="topic-metadata">

**Author:** [@AMJ](https://discourse.julialang.org/u/AMJ)\
**Replies:** 11\
**Last updated:** [April 25, 2023, 2:48pm UTC](https://discourse.julialang.org/t/standalone-hello-world-executable-size-comparison-to-node-js/97656 "2023-04-25T14:48:45Z")

</div>

I don’t have any experience with other languages, and I was surprised to see “Hello World” produces this big standalone executables in Node.js. Julia is not far off then.

---

## [How to define default plotting attributes for all my recipes using only \`RecipesBase.jl\`?](https://discourse.julialang.org/t/how-to-define-default-plotting-attributes-for-all-my-recipes-using-only-recipesbase-jl/93384)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 1:55pm UTC](https://discourse.julialang.org/t/how-to-define-default-plotting-attributes-for-all-my-recipes-using-only-recipesbase-jl/93384 "2023-04-25T13:55:02Z")

</div>

I have several @recipes, which share the same plotattributes, such as framestyle, grid, legend\_foreground\_color, etc. If Plots.jl is imported, I could just use default, right? But is it possible that I only use RecipesBa…

---

## [Streaming Tables to CSV](https://discourse.julialang.org/t/streaming-tables-to-csv/80849)

<div class="topic-metadata">

**Author:** [@oconnore](https://discourse.julialang.org/u/oconnore)\
**Replies:** 6\
**Last updated:** [April 25, 2023, 1:15pm UTC](https://discourse.julialang.org/t/streaming-tables-to-csv/80849 "2023-04-25T13:15:24Z")

</div>

How can I stream some rows to a CSV file (i.e. I have an iterator that creates rows, and I want those rows to be written to a file without requiring enough memory for all of the rows). It seems like the CSV.jl library i…

---

## [Cannot read file written by Arrow.jl in Python](https://discourse.julialang.org/t/cannot-read-file-written-by-arrow-jl-in-python/97889)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 3\
**Last updated:** [April 25, 2023, 12:36pm UTC](https://discourse.julialang.org/t/cannot-read-file-written-by-arrow-jl-in-python/97889 "2023-04-25T12:36:55Z")

</div>

I’m using a Julia environment with Arrow v2.5.2 and DataFrames v1.5.1, and Python 3.10.2 with pandas 1.5.0 and pyarrow 11.0.0. From the User manual I think I could do: using Arrow, DataFrames m = rand(20,10) open("exa…

---

## [Estimating some parameters of DDEs with callbacks](https://discourse.julialang.org/t/estimating-some-parameters-of-ddes-with-callbacks/97614)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 13\
**Last updated:** [April 25, 2023, 12:00pm UTC](https://discourse.julialang.org/t/estimating-some-parameters-of-ddes-with-callbacks/97614 "2023-04-25T12:00:28Z")

</div>

Hi, I have a delay differential equation model with 3 model parameters and a drug perturbation with one parameter (alpha). I’ve set up the simulation as: using DifferentialEquations using DataFrames, DataFramesMeta usi…

---

## [\[Linux\] only receiving 1365 events when reading from /dev/input](https://discourse.julialang.org/t/linux-only-receiving-1365-events-when-reading-from-dev-input/97886)

<div class="topic-metadata">

**Author:** [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 5:39am UTC](https://discourse.julialang.org/t/linux-only-receiving-1365-events-when-reading-from-dev-input/97886 "2023-04-25T05:39:03Z")

</div>

I’m trying to read keyboard input events from dev/input/eventN, but after reading exactly 1365 events the file is reported as empty and never receives any more data. MWE: dev\_num = 6 # my keyboard is event6, use \`cat /p…

---

## [ForwardDiff through StatsBase's fit(Histogram, ...)](https://discourse.julialang.org/t/forwarddiff-through-statsbases-fit-histogram/97892)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 11:25am UTC](https://discourse.julialang.org/t/forwarddiff-through-statsbases-fit-histogram/97892 "2023-04-25T11:25:23Z")

</div>

I have code that is trying to autodifferentiate through the histogram fitting of StatsBase using ForwardDiff, any tips on how to get this to work? I’m hitting TwicePrecision and it’s trying to convert to Float64. Here’s…

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

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