# Latest

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

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

**Page:** 1433

---

## [ArgumentError: invalid index: "s1" of type String](https://discourse.julialang.org/t/argumenterror-invalid-index-s1-of-type-string/58738)

<div class="topic-metadata">

**Author:** [@GraceMabele](https://discourse.julialang.org/u/GraceMabele)\
**Replies:** 11\
**Last updated:** [April 8, 2021, 4:41pm UTC](https://discourse.julialang.org/t/argumenterror-invalid-index-s1-of-type-string/58738 "2021-04-08T16:41:16Z")

</div>

Hi, Here is a MWE of my problem that is returning the same error. I cannot seem to understand why. using DataStructures using JuMP using TaylorSeries S = \["s1","s2","s3","s4"\] N = \[1:10\] price = OrderedDict( "s1" =\> …

---

## [Translation groupby and agg and join python to julia](https://discourse.julialang.org/t/translation-groupby-and-agg-and-join-python-to-julia/58835)

<div class="topic-metadata">

**Author:** [@Rafael\_Brus](https://discourse.julialang.org/u/Rafael_Brus)\
**Replies:** 4\
**Last updated:** [April 8, 2021, 3:33pm UTC](https://discourse.julialang.org/t/translation-groupby-and-agg-and-join-python-to-julia/58835 "2021-04-08T15:33:49Z")

</div>

How do I translate this python code to julia: V1 = \[“co\_seq\_atend”, “co\_seq\_atend\_prof”, “co\_prontuario”, “no\_status\_atend”, “st\_atend\_prof”, “no\_tipo\_atend\_prof”, “no\_profissional”, “co\_cbo\_2002”, “nu\_cnes”, “nu\_ine”,…

---

## [Zygote.jl: DimensionMismatch: matrix is not square error](https://discourse.julialang.org/t/zygote-jl-dimensionmismatch-matrix-is-not-square-error/58839)

<div class="topic-metadata">

**Author:** [@Richard-Li](https://discourse.julialang.org/u/Richard-Li)\
**Replies:** 2\
**Last updated:** [April 8, 2021, 3:27pm UTC](https://discourse.julialang.org/t/zygote-jl-dimensionmismatch-matrix-is-not-square-error/58839 "2021-04-08T15:27:55Z")

</div>

Hi, I am using Zygote.jl. I’d like to change a matrix from 3x3 to 5x3 like this MWE: using Zygote using LinearAlgebra function test( c ) m = rand(3,3) \* c @show m M = Matrix(1.0I, 5, 3) \* m @show M …

---

## [Unreachable reached when computing the Jacobian with Zygote if an other package is imported before, on Julia \< 1.6](https://discourse.julialang.org/t/unreachable-reached-when-computing-the-jacobian-with-zygote-if-an-other-package-is-imported-before-on-julia-1-6/58828)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [April 8, 2021, 3:10pm UTC](https://discourse.julialang.org/t/unreachable-reached-when-computing-the-jacobian-with-zygote-if-an-other-package-is-imported-before-on-julia-1-6/58828 "2021-04-08T15:10:56Z")

</div>

I am experiencing a strange Julia crash when I import BetaML before computing a gradient operation with Zygote, but if I first do this operation, then I import BetaML (or using BetaML) and then do again the gradient oper…

---

## [Multiple dispatch with and without missing to same function?](https://discourse.julialang.org/t/multiple-dispatch-with-and-without-missing-to-same-function/58821)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 13\
**Last updated:** [April 8, 2021, 3:08pm UTC](https://discourse.julialang.org/t/multiple-dispatch-with-and-without-missing-to-same-function/58821 "2021-04-08T15:08:07Z")

</div>

I have a function which takes data loaded from a file. Normally it’s all Matrix{Float64} but sometimes there are some missing values, Matrix{Union{Missing, Float64}. How would I write a function to take a Number matrix w…

---

## [What is Base.maybeview?](https://discourse.julialang.org/t/what-is-base-maybeview/58820)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 9\
**Last updated:** [April 8, 2021, 2:23pm UTC](https://discourse.julialang.org/t/what-is-base-maybeview/58820 "2021-04-08T14:23:38Z")

</div>

I found usage of Base.maybeview in LSHFunctions. What is it? (no docs). How is it different from view? thanks.

---

## [🎈 PlutoCon 2021!](https://discourse.julialang.org/t/plutocon-2021/56547)

<div class="topic-metadata">

**Author:** [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Replies:** 5\
**Last updated:** [April 8, 2021, 2:18pm UTC](https://discourse.julialang.org/t/plutocon-2021/56547 "2021-04-08T14:18:23Z")

</div>

To celebrate Pluto’s 1 year anniversary, we are hosting a two day mini conference about… Pluto! It will be a place to share your fun notebooks and to learn techniques from other Pluto users and from Pluto’s designers. …

---

## [How do I save (and later load) fitted KernelPCA model using MultivariateStats.jl](https://discourse.julialang.org/t/how-do-i-save-and-later-load-fitted-kernelpca-model-using-multivariatestats-jl/58833)

<div class="topic-metadata">

**Author:** [@Patrick\_Soundy](https://discourse.julialang.org/u/Patrick_Soundy)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 1:52pm UTC](https://discourse.julialang.org/t/how-do-i-save-and-later-load-fitted-kernelpca-model-using-multivariatestats-jl/58833 "2021-04-08T13:52:54Z")

</div>

I’m fitting a simple KPCA to data: ‘’‘KPCAModel = fit(KernelPCA, MyArray; kernel=(x,y)-\>exp(-norm(x-y)^2/(2\*σ^2)), maxoutdim=NumFactors, inverse=true)’‘’ How do I save the model in Julia to load it back to transform ne…

---

## [Google Summer of Code 2021 Application Deadline Fast approaching (April 13th)](https://discourse.julialang.org/t/google-summer-of-code-2021-application-deadline-fast-approaching-april-13th/58832)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 1:52pm UTC](https://discourse.julialang.org/t/google-summer-of-code-2021-application-deadline-fast-approaching-april-13th/58832 "2021-04-08T13:52:44Z")

</div>

Hey all, as you may know, the Julia Language was accepted as a mentoring organization for Google Summer of Code 2021. We are really excited this year given the updated GSoC program which should enable more students than …

---

## [Using FLoops.jl to update array counters](https://discourse.julialang.org/t/using-floops-jl-to-update-array-counters/58805)

<div class="topic-metadata">

**Author:** [@Fathya.Salih](https://discourse.julialang.org/u/Fathya.Salih)\
**Replies:** 2\
**Last updated:** [April 8, 2021, 1:22pm UTC](https://discourse.julialang.org/t/using-floops-jl-to-update-array-counters/58805 "2021-04-08T13:22:57Z")

</div>

Hey, all! I am trying to parallelize a for-loop that updates array and scalar counters. I am able to reduce the scalar counters, but I get this error when I add the array counter. ERROR: LoadError: syntax: invalid synt…

---

## [Plots visualization differences between VSCode and export](https://discourse.julialang.org/t/plots-visualization-differences-between-vscode-and-export/58817)

<div class="topic-metadata">

**Author:** [@felcbd](https://discourse.julialang.org/u/felcbd)\
**Replies:** 4\
**Last updated:** [April 8, 2021, 12:05pm UTC](https://discourse.julialang.org/t/plots-visualization-differences-between-vscode-and-export/58817 "2021-04-08T12:05:14Z")

</div>

Hello everyone, Was doing some plotting to display a Gantt Chart with VegaLite, and I tried the save() function I saw on a basic example for VegaLite usage. But there is some modifications from the save() function, com…

---

## [Chasing a GR bug (non-square figures)](https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 2\
**Last updated:** [April 8, 2021, 11:49am UTC](https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819 "2021-04-08T11:49:42Z")

</div>

I’ve made a bug report at , but since I’m suspecting that this is system dependant I would appreciate if someone else could help me check: From the Repl, julia\> using Plots julia\> gr() julia\> plot(rand(10); size=(80…

---

## [Question about program design with ComponentArrays](https://discourse.julialang.org/t/question-about-program-design-with-componentarrays/58732)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 5\
**Last updated:** [April 8, 2021, 11:42am UTC](https://discourse.julialang.org/t/question-about-program-design-with-componentarrays/58732 "2021-04-08T11:42:25Z")

</div>

I’m retaking a program I did some time ago, trying to speed it up. I am using ComponentArrays because it is very easy to organize data and parameters with it. Consider this: using ComponentArrays using Parameters: @unpa…

---

## [LoadError while precompiling Plots.jl on Ubuntu 18.04](https://discourse.julialang.org/t/loaderror-while-precompiling-plots-jl-on-ubuntu-18-04/58784)

<div class="topic-metadata">

**Author:** [@Anemometer](https://discourse.julialang.org/u/Anemometer)\
**Replies:** 5\
**Last updated:** [April 8, 2021, 11:04am UTC](https://discourse.julialang.org/t/loaderror-while-precompiling-plots-jl-on-ubuntu-18-04/58784 "2021-04-08T11:04:04Z")

</div>

Hello, I have run into some trouble trying to install the Plots.jl package and I couldn’t find any hints on how to proceed besides nuking my .julia folder which I would like to avoid if at all possible. Adding the Plot…

---

## [Accessing struct via Symbol](https://discourse.julialang.org/t/accessing-struct-via-symbol/58809)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 5\
**Last updated:** [April 8, 2021, 11:00am UTC](https://discourse.julialang.org/t/accessing-struct-via-symbol/58809 "2021-04-08T11:00:28Z")

</div>

Dear all, Is there a reason why this works: struct Test1{A, B} a :: A b :: B end test1 = Test1(1., 2.) test1.:a #1 but this does not work? \_a = :a test1.\_a # type Test1 has no field \_a In my case I would like to u…

---

## [Finding the id of all columns containing 1 for a particular row of a DataFrame](https://discourse.julialang.org/t/finding-the-id-of-all-columns-containing-1-for-a-particular-row-of-a-dataframe/58791)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [April 7, 2021, 8:56pm UTC](https://discourse.julialang.org/t/finding-the-id-of-all-columns-containing-1-for-a-particular-row-of-a-dataframe/58791 "2021-04-07T20:56:39Z")

</div>

I have a DataFrame consisting of many columns and rows, and each entry being simply 1’s or 0’s. For a particular row, I now want to identify all the columns that contain 1. So, I do the following for the first row: find…

---

## [Broadcast over a specific dimension of array](https://discourse.julialang.org/t/broadcast-over-a-specific-dimension-of-array/43158)

<div class="topic-metadata">

**Author:** [@white-c](https://discourse.julialang.org/u/white-c)\
**Replies:** 7\
**Last updated:** [April 8, 2021, 10:23am UTC](https://discourse.julialang.org/t/broadcast-over-a-specific-dimension-of-array/43158 "2021-04-08T10:23:28Z")

</div>

Hello, Julians! I have a 3 dimensional complex F64 array. I want to run the inv() over the inner two dimensions and broadcast along the outer dimension. When I try simple broadcasting inv.(A) I get different results tha…

---

## [Mark each scatter point uniquely](https://discourse.julialang.org/t/mark-each-scatter-point-uniquely/58803)

<div class="topic-metadata">

**Author:** [@quazirfan](https://discourse.julialang.org/u/quazirfan)\
**Replies:** 3\
**Last updated:** [April 8, 2021, 7:52am UTC](https://discourse.julialang.org/t/mark-each-scatter-point-uniquely/58803 "2021-04-08T07:52:09Z")

</div>

I am making a scatter plot with 10 points. I need to be able to identify each point individually since they will move and I want to track their movement. Is it possible to mark each points with numbers? Or some unique s…

---

## [Authentication with download](https://discourse.julialang.org/t/authentication-with-download/58790)

<div class="topic-metadata">

**Author:** [@robertdj](https://discourse.julialang.org/u/robertdj)\
**Replies:** 2\
**Last updated:** [April 8, 2021, 8:33am UTC](https://discourse.julialang.org/t/authentication-with-download/58790 "2021-04-08T08:33:43Z")

</div>

I would like to authenticate against an API that use Active Directory. It is possible with curl and I’m hoping that the new Downloads.download can handle this since it’s based on libcurl. But I can’t see from the docs h…

---

## [Fast computation of row-wise Kronecker product (Khatri-Rao product)](https://discourse.julialang.org/t/fast-computation-of-row-wise-kronecker-product-khatri-rao-product/58762)

<div class="topic-metadata">

**Author:** [@Germinator](https://discourse.julialang.org/u/Germinator)\
**Replies:** 5\
**Last updated:** [April 8, 2021, 7:31am UTC](https://discourse.julialang.org/t/fast-computation-of-row-wise-kronecker-product-khatri-rao-product/58762 "2021-04-08T07:31:24Z")

</div>

Hello! I have recently started to migrate to Julia, and decided to port some of my Matlab code. I am struggling to make a performant row-wise Kronecker product (Khatri-Rao product) implementation for two or three matrice…

---

## [Environment variables](https://discourse.julialang.org/t/environment-variables/58760)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 6\
**Last updated:** [April 8, 2021, 7:20am UTC](https://discourse.julialang.org/t/environment-variables/58760 "2021-04-08T07:20:59Z")

</div>

I am on Windows (if that matters). Inside my program i.e. myApp.run() I am checking content of a certain env. variable e.g. env\_var = get(ENV, "XYZ", "8073") From command prompt/terminal in VS Code, before I execute j…

---

## [Calculate deseasonalized anomalies](https://discourse.julialang.org/t/calculate-deseasonalized-anomalies/58753)

<div class="topic-metadata">

**Author:** [@mixstam1453](https://discourse.julialang.org/u/mixstam1453)\
**Replies:** 4\
**Last updated:** [April 8, 2021, 6:47am UTC](https://discourse.julialang.org/t/calculate-deseasonalized-anomalies/58753 "2021-04-08T06:47:00Z")

</div>

Hi to everyone! I am new in Julia and i have monthly values of a climate variable. I calculate the annual cycle but i can’t find the way to compute the anomalies. Here is the part of the code: using DataFrames ; using …

---

## [Julia 1.6.0 packages installation](https://discourse.julialang.org/t/julia-1-6-0-packages-installation/58552)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 10\
**Last updated:** [April 8, 2021, 5:49am UTC](https://discourse.julialang.org/t/julia-1-6-0-packages-installation/58552 "2021-04-08T05:49:30Z")

</div>

How to solve this problem: Some packages have a happy installation and others do not! (@v1.6) pkg\> add Plots Updating registry at \`C:\\Users\\hermesr\\.julia\\registries\\General\` ┌ Warning: could not download https://p…

---

## [Lsp-julia crashes with "Possible infinite loop" when typing in Julia document](https://discourse.julialang.org/t/lsp-julia-crashes-with-possible-infinite-loop-when-typing-in-julia-document/58800)

<div class="topic-metadata">

**Author:** [@kwokhao](https://discourse.julialang.org/u/kwokhao)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 2:53am UTC](https://discourse.julialang.org/t/lsp-julia-crashes-with-possible-infinite-loop-when-typing-in-julia-document/58800 "2021-04-08T02:53:33Z")

</div>

Cross-posted from this Github issue. I set up lsp-julia in emacs to automatically initialize the LanguageServer once I navigate to a Julia file. However, when I try to type the letter d anywhere in the body of the file…

---

## [Weird duplicated entries with different values in SparseMatrixCSC](https://discourse.julialang.org/t/weird-duplicated-entries-with-different-values-in-sparsematrixcsc/58449)

<div class="topic-metadata">

**Author:** [@Richard-Li](https://discourse.julialang.org/u/Richard-Li)\
**Replies:** 9\
**Last updated:** [April 8, 2021, 1:47am UTC](https://discourse.julialang.org/t/weird-duplicated-entries-with-different-values-in-sparsematrixcsc/58449 "2021-04-08T01:47:01Z")

</div>

Hi, I found a very weird thing when using SparseMatrixCSC: K is a SparseMatrixCSC created from some complicated process (Finite element analysis application), here I show part of it: K = spzeros(ndof, ndof) #ndof : nu…

---

## [Running a specific julia environment from a crontab](https://discourse.julialang.org/t/running-a-specific-julia-environment-from-a-crontab/58799)

<div class="topic-metadata">

**Author:** [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)\
**Replies:** 3\
**Last updated:** [April 8, 2021, 1:27am UTC](https://discourse.julialang.org/t/running-a-specific-julia-environment-from-a-crontab/58799 "2021-04-08T01:27:24Z")

</div>

Hi there. My goal is to run a Julia script from crontab. For this I need to be able to activate the correct Julia environment from the command line. I’m not sure how to do this. A possible solution I’ve found is to ad…

---

## [How Do I Most Effectively Use Multiple Dispatch in Data Science Workflows?](https://discourse.julialang.org/t/how-do-i-most-effectively-use-multiple-dispatch-in-data-science-workflows/58772)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 11\
**Last updated:** [April 7, 2021, 10:29pm UTC](https://discourse.julialang.org/t/how-do-i-most-effectively-use-multiple-dispatch-in-data-science-workflows/58772 "2021-04-07T22:29:20Z")

</div>

Hi all, Say if I have two DataFrames: df1 and df2. They have unique values but have the same column names: Cost, Customer, and Product. As I move forward with my data processing, sometimes, I want to harmonize the DataF…

---

## [Existing package to convert LP to standard form?](https://discourse.julialang.org/t/existing-package-to-convert-lp-to-standard-form/19398)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 10\
**Last updated:** [April 7, 2021, 10:27pm UTC](https://discourse.julialang.org/t/existing-package-to-convert-lp-to-standard-form/19398 "2021-04-07T22:27:12Z")

</div>

I’m working towards implementing a new type of solver for MILPs based on ADMM. This solver requires that the problem be specified as an LP in standard form (+ MI constraints). Before I go re-inventing the wheel, are th…

---

## [Types with multiple supertypes](https://discourse.julialang.org/t/types-with-multiple-supertypes/58787)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 4\
**Last updated:** [April 7, 2021, 7:33pm UTC](https://discourse.julialang.org/t/types-with-multiple-supertypes/58787 "2021-04-07T19:33:44Z")

</div>

Hey everybody, I have a model in which I can have different setups. There are in principle 2x2 combinations. Let’s say models can be A1, A2, B1, B2. I now have types that are specialized for each type. Some function be…

---

## [Computational Psychiatry Postdoc Opportunities with the Julia Lab](https://discourse.julialang.org/t/computational-psychiatry-postdoc-opportunities-with-the-julia-lab/58786)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 7:01pm UTC](https://discourse.julialang.org/t/computational-psychiatry-postdoc-opportunities-with-the-julia-lab/58786 "2021-04-07T19:01:39Z")

</div>

LCNeuro and MIT Julia Lab currently have a commitment from Silicon Valley philanthropists to support the development of a software platform for creating, simulating, and validating models of brain circuit dysregulation f…

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

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