# Latest

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

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

**Page:** 1149

---

## [Repeated indext at optimization problem in JuMP](https://discourse.julialang.org/t/repeated-indext-at-optimization-problem-in-jump/74295)

<div class="topic-metadata">

**Author:** [@Yuri\_Mizusawa](https://discourse.julialang.org/u/Yuri_Mizusawa)\
**Replies:** 4\
**Last updated:** [January 18, 2022, 11:04pm UTC](https://discourse.julialang.org/t/repeated-indext-at-optimization-problem-in-jump/74295 "2022-01-18T23:04:56Z")

</div>

Hi, I getting an error that says " Repeated index 1. Index sets must have unique elements." My problem has to be the following structure: x(1,0,0)+x(1,0,4)+x(1,4,0)+x(1,4,4)+x(2,0,0)+x(2,4,0)+x(2,6,0) Max I reduced o…

---

## [Variables used in string interpolations are not recognized as used by vscode extension](https://discourse.julialang.org/t/variables-used-in-string-interpolations-are-not-recognized-as-used-by-vscode-extension/54753)

<div class="topic-metadata">

**Author:** [@Telcrome](https://discourse.julialang.org/u/Telcrome)\
**Replies:** 0\
**Last updated:** [February 6, 2021, 7:54pm UTC](https://discourse.julialang.org/t/variables-used-in-string-interpolations-are-not-recognized-as-used-by-vscode-extension/54753 "2021-02-06T19:54:48Z")

</div>

When defining this function in the vscode extension function ping(website::String, count::Int)::String return read(\`ping $(website) -c $(count)\`, String); end The extension does not recognize the usage of the argum…

---

## [Dash JSON3 error](https://discourse.julialang.org/t/dash-json3-error/74829)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 8:29pm UTC](https://discourse.julialang.org/t/dash-json3-error/74829 "2022-01-18T20:29:48Z")

</div>

I recently updated to Julia 1.7.1 and along with it some packages. My previously working Dash app now crashes with the following error when I want to plot something: ┌ Error: error handling request │ exception = │ …

---

## [How to bind to the hotkey ctrl + backspace in the REPL?](https://discourse.julialang.org/t/how-to-bind-to-the-hotkey-ctrl-backspace-in-the-repl/74836)

<div class="topic-metadata">

**Author:** [@akriegman](https://discourse.julialang.org/u/akriegman)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 10:18pm UTC](https://discourse.julialang.org/t/how-to-bind-to-the-hotkey-ctrl-backspace-in-the-repl/74836 "2022-01-18T22:18:54Z")

</div>

Following the directions in the documentation, I added the following into my startup.jl in order to make ctrl + backspace delete the previous word and ctrl + delete delete the next word: using REPL using REPL.LineEdit …

---

## [\`undefined reference\` and \`bad reloc address\` errors while using BinaryBuilder](https://discourse.julialang.org/t/undefined-reference-and-bad-reloc-address-errors-while-using-binarybuilder/74828)

<div class="topic-metadata">

**Author:** [@danielmatz](https://discourse.julialang.org/u/danielmatz)\
**Replies:** 3\
**Last updated:** [January 18, 2022, 9:45pm UTC](https://discourse.julialang.org/t/undefined-reference-and-bad-reloc-address-errors-while-using-binarybuilder/74828 "2022-01-18T21:45:18Z")

</div>

I’m trying to use BinaryBuilder for a private package, but I am getting some errors that I don’t understand. I can’t share the code, but I’m hoping that something in the error message or in my build\_tarballs.jl or makefi…

---

## [Windows development without admin privileges](https://discourse.julialang.org/t/windows-development-without-admin-privileges/74820)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 8\
**Last updated:** [January 18, 2022, 9:34pm UTC](https://discourse.julialang.org/t/windows-development-without-admin-privileges/74820 "2022-01-18T21:34:20Z")

</div>

I am not admin of the windows computer I am using. I can’t install visual studio, or any software unless it is zipped and portable. I would not be able to use Julia if it did not have a zip version. Let me know if you f…

---

## [How to animate a plot with subplots](https://discourse.julialang.org/t/how-to-animate-a-plot-with-subplots/74831)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 5\
**Last updated:** [January 18, 2022, 9:27pm UTC](https://discourse.julialang.org/t/how-to-animate-a-plot-with-subplots/74831 "2022-01-18T21:27:44Z")

</div>

I’d like to make an animation of a figure with two subplots. using Plots x\_data = range(0.0,stop=2π, length=1000) y\_data = sin.(x\_data) .+ 0.1.\*randn(1000,100) @gif for i ∈ 1:100 fig = plot(layout = grid(2,1), leg…

---

## [Stray Julia processes (with high cpu usages)](https://discourse.julialang.org/t/stray-julia-processes-with-high-cpu-usages/33303)

<div class="topic-metadata">

**Author:** [@goedman](https://discourse.julialang.org/u/goedman)\
**Replies:** 16\
**Last updated:** [January 18, 2022, 9:08pm UTC](https://discourse.julialang.org/t/stray-julia-processes-with-high-cpu-usages/33303 "2022-01-18T21:08:27Z")

</div>

Post High CPU Usage on Startup - VSCode OSX triggered my post. As the link mentions, the post was about "high-cpu-usage-on-startup-vscode-osx”. I responded but didn’t want to hijack that thread so deleted my post and dec…

---

## [Macros for Gtk.jl MIA](https://discourse.julialang.org/t/macros-for-gtk-jl-mia/74824)

<div class="topic-metadata">

**Author:** [@das](https://discourse.julialang.org/u/das)\
**Replies:** 5\
**Last updated:** [January 18, 2022, 8:58pm UTC](https://discourse.julialang.org/t/macros-for-gtk-jl-mia/74824 "2022-01-18T20:58:21Z")

</div>

I can’t find the macros for Gtk. Does anyone know where they are, how to download, install and invoke them. Without them, few of the examples will work. Many thanks.

---

## [Refresh token in background](https://discourse.julialang.org/t/refresh-token-in-background/74830)

<div class="topic-metadata">

**Author:** [@robertdj](https://discourse.julialang.org/u/robertdj)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 8:40pm UTC](https://discourse.julialang.org/t/refresh-token-in-background/74830 "2022-01-18T20:40:27Z")

</div>

I access a REST API that rely on a temporary token. The token is short lived, but does come with a refresh token. I store it in a struct like mutable struct MyToken AccessToken::String RefreshToken::String E…

---

## [Why do \`$\`s in BenchmarkTools change allocations so dramatically?](https://discourse.julialang.org/t/why-do-s-in-benchmarktools-change-allocations-so-dramatically/74779)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 14\
**Last updated:** [January 18, 2022, 7:38pm UTC](https://discourse.julialang.org/t/why-do-s-in-benchmarktools-change-allocations-so-dramatically/74779 "2022-01-18T19:38:27Z")

</div>

EDIT: PLEASE IGNORE THIS ENTIRE THREAD. I will start another one. Weird. I have a copy of vectors. using LinearAlgebra using BenchmarkTools N = 10 U1 = rand(N) U0 = rand(N) @btime copyto!(U1, U0) @btime $U1 .= $U0…

---

## [Find definition in julia](https://discourse.julialang.org/t/find-definition-in-julia/74827)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 7:04pm UTC](https://discourse.julialang.org/t/find-definition-in-julia/74827 "2022-01-18T19:04:24Z")

</div>

For function calls, I can find the definition with @less @edit @which and others. But for other kinds of names bound to values, is it possible to find the definition? Vscode sometimes does it with “jump to definition”, …

---

## [Weird Exception access violation - seems related to @warn](https://discourse.julialang.org/t/weird-exception-access-violation-seems-related-to-warn/74825)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 6:54pm UTC](https://discourse.julialang.org/t/weird-exception-access-violation-seems-related-to-warn/74825 "2022-01-18T18:54:31Z")

</div>

I am getting the below error with the full error message below. I do not have an easy MWE to reproduce it. I get it for one particular day of data. I am using Version 1.7.1 (2021-12-22) It seems to throw at the warning …

---

## [Seeking Julia mentors and projects for GSoC 2022](https://discourse.julialang.org/t/seeking-julia-mentors-and-projects-for-gsoc-2022/74328)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 7\
**Last updated:** [January 18, 2022, 6:57pm UTC](https://discourse.julialang.org/t/seeking-julia-mentors-and-projects-for-gsoc-2022/74328 "2022-01-18T18:57:04Z")

</div>

Hey all, It is that time of year again, Google Summer of Code time! While we are a long way from the summer, preparation is already underway. We are putting out this call for mentors to support a student (or multiple st…

---

## [Combine Makie with GMT.jl](https://discourse.julialang.org/t/combine-makie-with-gmt-jl/74347)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 9\
**Last updated:** [January 18, 2022, 6:45pm UTC](https://discourse.julialang.org/t/combine-makie-with-gmt-jl/74347 "2022-01-18T18:45:22Z")

</div>

Short story: I want to plot graphs on top of a map. Can I use GMT.jl to draw the region of interest and plot over it using GraphMakie.jl ? Long story: GraphMakie.jl Let’s say I want to plot the Abilene network. I ha…

---

## [Error in the code for calculating the final variogram, error in hermitian matrices](https://discourse.julialang.org/t/error-in-the-code-for-calculating-the-final-variogram-error-in-hermitian-matrices/74336)

<div class="topic-metadata">

**Author:** [@jaquetdiamantino](https://discourse.julialang.org/u/jaquetdiamantino)\
**Replies:** 8\
**Last updated:** [January 18, 2022, 6:23pm UTC](https://discourse.julialang.org/t/error-in-the-code-for-calculating-the-final-variogram-error-in-hermitian-matrices/74336 "2022-01-18T18:23:28Z")

</div>

I’m new to Julia and I’m trying to create a notebook that works with different geostatic methods, when I finish the code for calculating the final variogram this error appears: begin # Elipsoides de anisotropia (θ segu…

---

## [Override the error message for avector\[0\]?](https://discourse.julialang.org/t/override-the-error-message-for-avector-0/74306)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 16\
**Last updated:** [January 18, 2022, 6:22pm UTC](https://discourse.julialang.org/t/override-the-error-message-for-avector-0/74306 "2022-01-18T18:22:03Z")

</div>

Proposal: override the error message for avector\[0\] with a message that specify explicitly that array indexing starts at 1 in Julia ?? I know: “If we do it for this, why not for …” but it is such a common error for peop…

---

## [Message about "Triggering TagBot for merged registry pull request"](https://discourse.julialang.org/t/message-about-triggering-tagbot-for-merged-registry-pull-request/60301)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 2\
**Last updated:** [January 18, 2022, 5:23pm UTC](https://discourse.julialang.org/t/message-about-triggering-tagbot-for-merged-registry-pull-request/60301 "2022-01-18T17:23:10Z")

</div>

Hi everyone, I have a registered package: (it’s an economics thing…) I get the following message from TagBot: Triggering TagBot for merged registry pull request This extra notification is being sent because I ex…

---

## [Is there a way to speed up this matrix (with only 1 & 0) multiplication & power operation?](https://discourse.julialang.org/t/is-there-a-way-to-speed-up-this-matrix-with-only-1-0-multiplication-power-operation/74747)

<div class="topic-metadata">

**Author:** [@Endeavour](https://discourse.julialang.org/u/Endeavour)\
**Replies:** 20\
**Last updated:** [January 18, 2022, 5:00pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-speed-up-this-matrix-with-only-1-0-multiplication-power-operation/74747 "2022-01-18T17:00:56Z")

</div>

I have a matrix (cost\_mat\[~600,~600\]) with only 1 & 0 as its elements. You can think that each element of the matrix is individually put as 1 (with probability p) or 0. I need to find out (cost\_mat^N) where N(~600) is a …

---

## [What method call do I use to invoke a prediction based on a trained model?](https://discourse.julialang.org/t/what-method-call-do-i-use-to-invoke-a-prediction-based-on-a-trained-model/74812)

<div class="topic-metadata">

**Author:** [@bauhaus9](https://discourse.julialang.org/u/bauhaus9)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 4:21pm UTC](https://discourse.julialang.org/t/what-method-call-do-i-use-to-invoke-a-prediction-based-on-a-trained-model/74812 "2022-01-18T16:21:03Z")

</div>

I’ve been going through a (canned video) neural network course that uses Flux and it instructs me how to load the training and test data (from the bundled MNIST data) and how to use the Flux Chain command to create all o…

---

## [Plots: string interpolation in labels?](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [January 18, 2022, 3:22pm UTC](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799 "2022-01-18T15:22:35Z")

</div>

I’m solving a differential equation several times where I vary a parameter, say Kp = linspace(1,5,5). The result is a vector of vectors (time series), say vec is a vector (1D array) of vectors (time series). I then want…

---

## [OpenBLAS malloc](https://discourse.julialang.org/t/openblas-malloc/74804)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 5\
**Last updated:** [January 18, 2022, 2:23pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804 "2022-01-18T14:23:15Z")

</div>

I got this: OpenBLAS: malloc failed in dsyrk\_thread\_UT julia\> versioninfo() Julia Version 1.7.0 Commit 3bf9d17731 (2021-11-30 12:12 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R) Core(TM) i5-620…

---

## [Perform multiple replacements on a string in a single pass](https://discourse.julialang.org/t/perform-multiple-replacements-on-a-string-in-a-single-pass/43247)

<div class="topic-metadata">

**Author:** [@nstgc](https://discourse.julialang.org/u/nstgc)\
**Replies:** 19\
**Last updated:** [January 18, 2022, 2:13pm UTC](https://discourse.julialang.org/t/perform-multiple-replacements-on-a-string-in-a-single-pass/43247 "2022-01-18T14:13:17Z")

</div>

I have a couple of scripts which perform multiple replacements on the same string. It seems as though this can be sped up by searching for all potential matches. For example, something like julia\>replace("123",\[r"1" =\> …

---

## [Using Julia's clipboard() function with numerical data in columns](https://discourse.julialang.org/t/using-julias-clipboard-function-with-numerical-data-in-columns/59223)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 13\
**Last updated:** [January 18, 2022, 1:47pm UTC](https://discourse.julialang.org/t/using-julias-clipboard-function-with-numerical-data-in-columns/59223 "2022-01-18T13:47:43Z")

</div>

When copying to clipboard numeric columnar data similar to (but in larger sizes): 675.7 2962 636.6 2961 565.9 2964 517.5 2956 from a Win10 text editor to the REPL via Julia’s clipboard() function, the following str…

---

## [Plots color based on discrete value](https://discourse.julialang.org/t/plots-color-based-on-discrete-value/72472)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 4\
**Last updated:** [January 18, 2022, 10:40am UTC](https://discourse.julialang.org/t/plots-color-based-on-discrete-value/72472 "2022-01-18T10:40:38Z")

</div>

data = DataFrame(x=1:5,y=1:5,color=\["a","a","b","a","c"\]) using StatsPlots @df data scatter(:x,:y) How can add color to the plot using the discrete value of column :color automatically? In ggplot I can do something lik…

---

## [Interpolation inside string inside quote](https://discourse.julialang.org/t/interpolation-inside-string-inside-quote/74791)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 10:27am UTC](https://discourse.julialang.org/t/interpolation-inside-string-inside-quote/74791 "2022-01-18T10:27:09Z")

</div>

macro test() name="foo" quote "a string containing $name" end end On running this macro I would expect to receive “a string containing foo”. However all I get is UndefVarError: name not defined. How could I t…

---

## [Building a chatbot with Julia, recommend starting points](https://discourse.julialang.org/t/building-a-chatbot-with-julia-recommend-starting-points/74717)

<div class="topic-metadata">

**Author:** [@tatsumaru](https://discourse.julialang.org/u/tatsumaru)\
**Replies:** 6\
**Last updated:** [January 18, 2022, 10:13am UTC](https://discourse.julialang.org/t/building-a-chatbot-with-julia-recommend-starting-points/74717 "2022-01-18T10:13:23Z")

</div>

Hello everyone, I am new to programming and decided to pick Julia as my first programming language. My goal is to build an online chatbot which is aimed at interfacing with a specific website which doesn’t have an API a…

---

## [Shift series annotations in a plot for readability](https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 2\
**Last updated:** [January 18, 2022, 9:14am UTC](https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787 "2022-01-18T09:14:19Z")

</div>

Using Plots, series annotations are displayed exactly on top of the data points; this does not please my eye. Example: using Plots plot(\[1,2,3\], \[3,1,2\], series\_annotations=\["a", "b", "c"\]) Is there a way to shift th…

---

## [Preferred books for the first steps with Julia?](https://discourse.julialang.org/t/preferred-books-for-the-first-steps-with-julia/74384)

<div class="topic-metadata">

**Author:** [@Minumsand](https://discourse.julialang.org/u/Minumsand)\
**Replies:** 15\
**Last updated:** [January 18, 2022, 9:13am UTC](https://discourse.julialang.org/t/preferred-books-for-the-first-steps-with-julia/74384 "2022-01-18T09:13:27Z")

</div>

Dear Juliafriends I’m totally new to Julia, in other words a beginner, but I’m interested to get more details for becoming familiar with Julia. @TheCedarPrince kindly recommended JuliaAcademy to learn more, a good oppo…

---

## [Several questions about KernelAbstractions](https://discourse.julialang.org/t/several-questions-about-kernelabstractions/74740)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 6\
**Last updated:** [January 18, 2022, 7:54am UTC](https://discourse.julialang.org/t/several-questions-about-kernelabstractions/74740 "2022-01-18T07:54:55Z")

</div>

Hello, I have several questions about KernelAbstractions package: What is the current status of KernelAbstractions in the Julia GPU ecosystem? Is it being seen as an exploration package to try out some possible direc…

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

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