# Latest

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

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

**Page:** 835

---

## [Why is using broadcasting with a constructor slower outside of function?](https://discourse.julialang.org/t/why-is-using-broadcasting-with-a-constructor-slower-outside-of-function/91802)

<div class="topic-metadata">

**Author:** [@Titas22](https://discourse.julialang.org/u/Titas22)\
**Replies:** 1\
**Last updated:** [December 19, 2022, 7:25am UTC](https://discourse.julialang.org/t/why-is-using-broadcasting-with-a-constructor-slower-outside-of-function/91802 "2022-12-19T07:25:31Z")

</div>

Hi, I’ve noticed that using broadcasting takes longer than using broadcasting in a script is slower if not done in the function. This seems to be mostly compilation time, and running the same thing again it runs faster …

---

## [Using GitHub.jl with GitHub Actions errors due to auth failure](https://discourse.julialang.org/t/using-github-jl-with-github-actions-errors-due-to-auth-failure/91746)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 3\
**Last updated:** [December 19, 2022, 7:20am UTC](https://discourse.julialang.org/t/using-github-jl-with-github-actions-errors-due-to-auth-failure/91746 "2022-12-19T07:20:00Z")

</div>

Hey folks, I am trying to get a repo setup to automate sending invites to an org through GitHub.jl, everything works fine locally, but when I move it to a GitHub action, all of a sudden GitHub.jl cannot authenticate desp…

---

## [VSCode debugging super slow and then crashes](https://discourse.julialang.org/t/vscode-debugging-super-slow-and-then-crashes/48144)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 7\
**Last updated:** [December 19, 2022, 7:04am UTC](https://discourse.julialang.org/t/vscode-debugging-super-slow-and-then-crashes/48144 "2022-12-19T07:04:04Z")

</div>

I’ve been using the debugger with some success in VSCode, but today it was incredibly slow. Like 30 seconds to 2 minutes to step from one line to the next, even when the lines in question didn’t seem to be doing much, e…

---

## [Method error in function](https://discourse.julialang.org/t/method-error-in-function/91831)

<div class="topic-metadata">

**Author:** [@hamza\_malik](https://discourse.julialang.org/u/hamza_malik)\
**Replies:** 0\
**Last updated:** [December 19, 2022, 6:16am UTC](https://discourse.julialang.org/t/method-error-in-function/91831 "2022-12-19T06:16:49Z")

</div>

I am running the following code in Julia. code: function lsmc\_am\_put(S, K, r, σ, t, N, P) Δt = t / N R = exp(r \* Δt) T = typeof(S \* exp(-σ^2 \* Δt / 2 + σ \* √Δt \* 0.1) / R) X = Array{T}(undef, N+1, P) …

---

## [Variable accessibility within loops](https://discourse.julialang.org/t/variable-accessibility-within-loops/91830)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 1\
**Last updated:** [December 19, 2022, 5:32am UTC](https://discourse.julialang.org/t/variable-accessibility-within-loops/91830 "2022-12-19T05:32:49Z")

</div>

Hello, The following code runs for iteration 1, printing the “mindi” variable. However, it throws an error for iteration 2. It says mindi is undefined. Why is the variable inaccessible for the second iteration? maxite…

---

## [Argmax, returned the first one](https://discourse.julialang.org/t/argmax-returned-the-first-one/91825)

<div class="topic-metadata">

**Author:** [@maxchendt](https://discourse.julialang.org/u/maxchendt)\
**Replies:** 1\
**Last updated:** [December 19, 2022, 3:41am UTC](https://discourse.julialang.org/t/argmax-returned-the-first-one/91825 "2022-12-19T03:41:06Z")

</div>

in Base.argmax argmax(r::AbstractRange) Ranges can have multiple maximal elements. In that case \`argmax\` will return a maximal index, but \*\*not necessarily\*\* the first one. also argmax(itr) Return the index or ke…

---

## [K-Medoids clustering using BetaML.jl package](https://discourse.julialang.org/t/k-medoids-clustering-using-betaml-jl-package/91757)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [December 18, 2022, 8:56pm UTC](https://discourse.julialang.org/t/k-medoids-clustering-using-betaml-jl-package/91757 "2022-12-18T20:56:11Z")

</div>

Why does K-Medoids algorithm not work using BetaML.jl package? For example (from docs), using BetaML X = \[1.1 10.1; 0.9 9.8; 10.0 1.1; 12.1 0.8; 0.8 9.8\] mod = KMedoidsClusterer(n\_classes=2) #Throws error: KMedoidsClu…

---

## [Summarizing grouped DataFrame where a group is entirely missing](https://discourse.julialang.org/t/summarizing-grouped-dataframe-where-a-group-is-entirely-missing/90920)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 22\
**Last updated:** [December 18, 2022, 8:41pm UTC](https://discourse.julialang.org/t/summarizing-grouped-dataframe-where-a-group-is-entirely-missing/90920 "2022-12-18T20:41:43Z")

</div>

Dear community, when I want to summarize a grouped DataFrame e.g. with median and a group contains only missing, I get an error, because skipmissing returns an empty array and median(Float64\[\]) throws an error. The cod…

---

## [Interpolation/smoothing/decimating of unevenly spaced data](https://discourse.julialang.org/t/interpolation-smoothing-decimating-of-unevenly-spaced-data/91810)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 12\
**Last updated:** [December 18, 2022, 6:59pm UTC](https://discourse.julialang.org/t/interpolation-smoothing-decimating-of-unevenly-spaced-data/91810 "2022-12-18T18:59:22Z")

</div>

I have experimental data on two channels p1(t), p2(t), both taken on different and unevenly spaced time points (approx. each second, with jitter and some data lacking). The data size is some 10^5 points each. I need f(t)…

---

## [What do you use to embed Julia code in LaTeX?](https://discourse.julialang.org/t/what-do-you-use-to-embed-julia-code-in-latex/23992)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 56\
**Last updated:** [December 18, 2022, 2:04pm UTC](https://discourse.julialang.org/t/what-do-you-use-to-embed-julia-code-in-latex/23992 "2022-12-18T14:04:37Z")

</div>

I wonder if anyone here has interesting tips or tricks for embedding Julia code in LaTeX, e.g. fancy color schemes, running code inline for presentations, automatic display of figures with captions, etc.

---

## [How to Determine or Approximate a Functions from Scatter Plots?](https://discourse.julialang.org/t/how-to-determine-or-approximate-a-functions-from-scatter-plots/91769)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 9\
**Last updated:** [December 18, 2022, 1:23pm UTC](https://discourse.julialang.org/t/how-to-determine-or-approximate-a-functions-from-scatter-plots/91769 "2022-12-18T13:23:17Z")

</div>

Hi all, I am using this code to plot a lot of data and connect the scatter plot: using Plots, LaTeXStrings, Plots.PlotMeasures gr() using Plots x = \[10/60, 20/60, 30/60, 40/60, 50/60, 60/60, 70/60, 80/60, 80/60, 90/6…

---

## [Compiling to exe](https://discourse.julialang.org/t/compiling-to-exe/86531)

<div class="topic-metadata">

**Author:** [@Jon\_Marcum](https://discourse.julialang.org/u/Jon_Marcum)\
**Replies:** 34\
**Last updated:** [December 18, 2022, 1:14pm UTC](https://discourse.julialang.org/t/compiling-to-exe/86531 "2022-12-18T13:14:51Z")

</div>

I am having a really tuff time trying to figure out how to generate a redistributable executable with julia. Can you point me in the right direction on a the main webpage to where this is explained in detail?

---

## [Inner constructor error](https://discourse.julialang.org/t/inner-constructor-error/91811)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 2\
**Last updated:** [December 18, 2022, 1:03pm UTC](https://discourse.julialang.org/t/inner-constructor-error/91811 "2022-12-18T13:03:31Z")

</div>

Hi I’m trying to create a test inner constructor to get scalar fields from a vector input. I find the following code works if I don’t provide the statement “new()” at the end, but in that case the instantiated object on…

---

## [Output to multiple target columns via transform in DataFrames Minilanguage](https://discourse.julialang.org/t/output-to-multiple-target-columns-via-transform-in-dataframes-minilanguage/91631)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 20\
**Last updated:** [December 18, 2022, 12:40pm UTC](https://discourse.julialang.org/t/output-to-multiple-target-columns-via-transform-in-dataframes-minilanguage/91631 "2022-12-18T12:40:30Z")

</div>

Suppose I have some function fun that takes in multiple columns of a GroupedDataFrame and outputs a series of calculations with additional parameters. I would like to output these calculations to new columns of the Grou…

---

## [How to Plot Trapezoidal and Simpson's rule plot with given curve or function?](https://discourse.julialang.org/t/how-to-plot-trapezoidal-and-simpsons-rule-plot-with-given-curve-or-function/91767)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 6\
**Last updated:** [December 18, 2022, 12:30pm UTC](https://discourse.julialang.org/t/how-to-plot-trapezoidal-and-simpsons-rule-plot-with-given-curve-or-function/91767 "2022-12-18T12:30:36Z")

</div>

Hi all, I want to know how to plot the partitions and the trapezoids when I have the input of the function only and the number of interval? This is the images that I want to achieve I have this code for starter, bu…

---

## [How to combine PlutoUI widgets into new widgets?](https://discourse.julialang.org/t/how-to-combine-plutoui-widgets-into-new-widgets/91809)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 1\
**Last updated:** [December 18, 2022, 11:52am UTC](https://discourse.julialang.org/t/how-to-combine-plutoui-widgets-into-new-widgets/91809 "2022-12-18T11:52:19Z")

</div>

I came across this tutorial, but it seems that the code is no longer working in the latest stable version of Pluto/PlutoUI: https://julialang.zulipchat.com/user\_uploads/7178/aOlGtPBiSsdksGKrLJsi4aHf/PlutoUI-composition.…

---

## [How to Make Table with Computation Result in Julia (Using DataFrames Package or similar ones)](https://discourse.julialang.org/t/how-to-make-table-with-computation-result-in-julia-using-dataframes-package-or-similar-ones/91808)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [December 18, 2022, 11:20am UTC](https://discourse.julialang.org/t/how-to-make-table-with-computation-result-in-julia-using-dataframes-package-or-similar-ones/91808 "2022-12-18T11:20:22Z")

</div>

Hi all, I have recently modify the code to calculate all methods to approximate definite integral, my question is how to create a table with the resulting computation for different partitions (4, 8, 16). This is the co…

---

## [Difficulty & Unique Issues Getting Julia](https://discourse.julialang.org/t/difficulty-unique-issues-getting-julia/91450)

<div class="topic-metadata">

**Author:** [@Derek\_Stevens](https://discourse.julialang.org/u/Derek_Stevens)\
**Replies:** 9\
**Last updated:** [December 18, 2022, 11:19am UTC](https://discourse.julialang.org/t/difficulty-unique-issues-getting-julia/91450 "2022-12-18T11:19:39Z")

</div>

Hi All totally annoying & newbie question here, I’m trying to install Julia onto a Mac M1 anaconda environment, and, as per usual with my installation attempts, I’m getting errors installing. Specifically I’m getting th…

---

## [Word for !isnan](https://discourse.julialang.org/t/word-for-isnan/91803)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [December 18, 2022, 11:13am UTC](https://discourse.julialang.org/t/word-for-isnan/91803 "2022-12-18T11:13:29Z")

</div>

Is there a a technical (but not necessarily Julia) word for values that aren’t nan? (Edited)

---

## [How to constrain the type parameters for this function](https://discourse.julialang.org/t/how-to-constrain-the-type-parameters-for-this-function/91801)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 6\
**Last updated:** [December 18, 2022, 2:36am UTC](https://discourse.julialang.org/t/how-to-constrain-the-type-parameters-for-this-function/91801 "2022-12-18T02:36:19Z")

</div>

given an example function function foo(a,b) ... end a would accept vector of real numbers, such as Vector{Int64}, Vector{Float64}, ... b should be Integer while elements of a are Integers, and Integer or Float while…

---

## [Preventing Loss of Image Quality When Using \`imresize\`?](https://discourse.julialang.org/t/preventing-loss-of-image-quality-when-using-imresize/91793)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [December 17, 2022, 9:57pm UTC](https://discourse.julialang.org/t/preventing-loss-of-image-quality-when-using-imresize/91793 "2022-12-17T21:57:25Z")

</div>

Hi folks, I am trying to shrink an image using Images and Interpolations. Whenever I shrink the image, the image is very blurry or the quality is just not so great. Here is what I am doing: using Images using Interpola…

---

## [Is there any plot package that supports multithreading now?](https://discourse.julialang.org/t/is-there-any-plot-package-that-supports-multithreading-now/91787)

<div class="topic-metadata">

**Author:** [@YiboXia](https://discourse.julialang.org/u/YiboXia)\
**Replies:** 2\
**Last updated:** [December 17, 2022, 7:04pm UTC](https://discourse.julialang.org/t/is-there-any-plot-package-that-supports-multithreading-now/91787 "2022-12-17T19:04:51Z")

</div>

Hi guys! I have now parallelized all codes about computation except plotting. I am trying to find a way to boost the plotting. Is there any plot package that supports multithreading now? and I also want to know if Maki…

---

## [Error: expected equal sign after key](https://discourse.julialang.org/t/error-expected-equal-sign-after-key/91786)

<div class="topic-metadata">

**Author:** [@MarawanEmara](https://discourse.julialang.org/u/MarawanEmara)\
**Replies:** 1\
**Last updated:** [December 17, 2022, 6:01pm UTC](https://discourse.julialang.org/t/error-expected-equal-sign-after-key/91786 "2022-12-17T18:01:31Z")

</div>

Hello. I am attempting to run /test/tutorial.jl from GitHub - LouisBouvier/WarcraftShortestPaths.jl. I have done everything including the decompression of the data and activating the environment using Pkg.activate(“.”),…

---

## [Why can't I use Vector{Int64} with functions expecting Vector{Integer}?](https://discourse.julialang.org/t/why-cant-i-use-vector-int64-with-functions-expecting-vector-integer/91779)

<div class="topic-metadata">

**Author:** [@Titas22](https://discourse.julialang.org/u/Titas22)\
**Replies:** 4\
**Last updated:** [December 17, 2022, 5:59pm UTC](https://discourse.julialang.org/t/why-cant-i-use-vector-int64-with-functions-expecting-vector-integer/91779 "2022-12-17T17:59:47Z")

</div>

Hi, I was trying to define a function that would work on all integer types, and could not get it to work when the input is matrix or vector. functions taking in single value of Int64 or Integer work fine. But if I call…

---

## [Design Q: Order of arguments: input data and algorithm type](https://discourse.julialang.org/t/design-q-order-of-arguments-input-data-and-algorithm-type/91768)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [December 17, 2022, 4:17pm UTC](https://discourse.julialang.org/t/design-q-order-of-arguments-input-data-and-algorithm-type/91768 "2022-12-17T16:17:34Z")

</div>

Hey all, (wasn’t sure in which category to post it) We are doing a lot of refactoring across many JuliaDynamics packages at the moment. A question that always comes up in the refactoring concerns the order of arguments…

---

## [Operators and things](https://discourse.julialang.org/t/operators-and-things/91760)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [December 17, 2022, 3:42pm UTC](https://discourse.julialang.org/t/operators-and-things/91760 "2022-12-17T15:42:04Z")

</div>

It looks like if on wants to define a new operator, the choice of the operator symbol is limited: This comes from the documentation (PDF). I wonder why it is not possible to define an operator with a name? For inst…

---

## [A macro for pretty geometric algebra equations?](https://discourse.julialang.org/t/a-macro-for-pretty-geometric-algebra-equations/91664)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 15\
**Last updated:** [December 17, 2022, 1:21pm UTC](https://discourse.julialang.org/t/a-macro-for-pretty-geometric-algebra-equations/91664 "2022-12-17T13:21:32Z")

</div>

The following slide is from Steven De Keninck’s presentation at SIBGAPI, an international conference annually promoted by the Special Interest Group on Computer Graphics and Image Processing (CEGRAPI) of the Brazilian Co…

---

## [\[ANN\] ReadStatTables.jl v0.2.2 is faster than all related packages for reading Stata files](https://discourse.julialang.org/t/ann-readstattables-jl-v0-2-2-is-faster-than-all-related-packages-for-reading-stata-files/91764)

<div class="topic-metadata">

**Author:** [@Norman](https://discourse.julialang.org/u/Norman)\
**Replies:** 2\
**Last updated:** [December 17, 2022, 12:43pm UTC](https://discourse.julialang.org/t/ann-readstattables-jl-v0-2-2-is-faster-than-all-related-packages-for-reading-stata-files/91764 "2022-12-17T12:43:24Z")

</div>

ReadStatTables.jl is a package for reading data files from Stata, SAS and SPSS into Julia tables. Substantial improvement has been made for this package recently. Since the v0.2.0 rewrite, it no longer relies on ReadStat…

---

## [Obtaining the type of the state object returned by Iterate](https://discourse.julialang.org/t/obtaining-the-type-of-the-state-object-returned-by-iterate/59190)

<div class="topic-metadata">

**Author:** [@Olof\_Salberger](https://discourse.julialang.org/u/Olof_Salberger)\
**Replies:** 4\
**Last updated:** [December 17, 2022, 12:15pm UTC](https://discourse.julialang.org/t/obtaining-the-type-of-the-state-object-returned-by-iterate/59190 "2022-12-17T12:15:35Z")

</div>

An issue I’ve run into is that if you have a container type T, in general it isn’t possible to obtain the type of state returned by iterate in the same way as you can get eltype(T) since there is no (let’s call it iterat…

---

## [Pluto.jl webcam available?](https://discourse.julialang.org/t/pluto-jl-webcam-available/44077)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 4\
**Last updated:** [December 17, 2022, 11:22am UTC](https://discourse.julialang.org/t/pluto-jl-webcam-available/44077 "2022-12-17T11:22:35Z")

</div>

@fonsp I have just wtched the JuliaCon presentation. Great! Loved the ‘random’ Skype call. I should steal this idea. May I ask about the webcam interface? Is it possible to trial this now? Sorry to Mikolaj - your handl…

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

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