# Latest

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

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

**Page:** 1365

---

## [Scope and Inlining](https://discourse.julialang.org/t/scope-and-inlining/62694)

<div class="topic-metadata">

**Author:** [@MaximilianJHuber](https://discourse.julialang.org/u/MaximilianJHuber)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 7:15pm UTC](https://discourse.julialang.org/t/scope-and-inlining/62694 "2021-06-10T19:15:28Z")

</div>

I stumbled across a case of bad practice that resulted in an error, but I am not sure why. function g(y) function f(x) f = x \* y return f end f(y) f(y) end g(0.2) I really should not d…

---

## [Does Julia have the Python equivalent of ValueError?](https://discourse.julialang.org/t/does-julia-have-the-python-equivalent-of-valueerror/62684)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 11\
**Last updated:** [June 10, 2021, 6:39pm UTC](https://discourse.julialang.org/t/does-julia-have-the-python-equivalent-of-valueerror/62684 "2021-06-10T18:39:04Z")

</div>

In Python, a specific exception exists called ValueError: Raised when an operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more preci…

---

## [Workbooks.jl / Julia and spreadsheets](https://discourse.julialang.org/t/workbooks-jl-julia-and-spreadsheets/62475)

<div class="topic-metadata">

**Author:** [@felix](https://discourse.julialang.org/u/felix)\
**Replies:** 15\
**Last updated:** [June 10, 2021, 6:22pm UTC](https://discourse.julialang.org/t/workbooks-jl-julia-and-spreadsheets/62475 "2021-06-10T18:22:11Z")

</div>

Part I Hello, long-time lurker here. This has been sitting with me for a long time, and now I’m not sure how to start. I think the core idea of this post is this manifesto (in the paraphrased words of someone smarter tha…

---

## [An embarrassingly parallel problem: threads or MPI?](https://discourse.julialang.org/t/an-embarrassingly-parallel-problem-threads-or-mpi/48049)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 14\
**Last updated:** [June 10, 2021, 6:10pm UTC](https://discourse.julialang.org/t/an-embarrassingly-parallel-problem-threads-or-mpi/48049 "2021-06-10T18:10:31Z")

</div>

Monte Carlo is one of the archetypal embarrassingly parallel problems. I have been wondering for some time what’s the fastest way to do Monte Carlo in Julia, for problems where each replication has enough cost to make pa…

---

## [Debugging in Jupyter](https://discourse.julialang.org/t/debugging-in-jupyter/62686)

<div class="topic-metadata">

**Author:** [@cwindolf](https://discourse.julialang.org/u/cwindolf)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 4:28pm UTC](https://discourse.julialang.org/t/debugging-in-jupyter/62686 "2021-06-10T16:28:52Z")

</div>

I’m writing up an algorithm in a function in a Jupyter notebook, and it does some matrix multiplication. At some point, I have missed a transpose or something, and multiplied two matrices whose sizes don’t match. So, whe…

---

## [\[ANN\] Announcing RangeHelpers.jl](https://discourse.julialang.org/t/ann-announcing-rangehelpers-jl/62681)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 4\
**Last updated:** [June 10, 2021, 4:09pm UTC](https://discourse.julialang.org/t/ann-announcing-rangehelpers-jl/62681 "2021-06-10T16:09:44Z")

</div>

Ever needed a range with startpoint 10, endpoint 121.7 and a step of 25? Well that is mathematically not possible, so you need to compromise. There are lots of options, you could relax the startpoint, endpoint or step.…

---

## [Computing sparse orthogonal projections](https://discourse.julialang.org/t/computing-sparse-orthogonal-projections/62652)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 4:01pm UTC](https://discourse.julialang.org/t/computing-sparse-orthogonal-projections/62652 "2021-06-10T16:01:44Z")

</div>

Follow up question: since this is part of my implementation of the projection matrix A\*inv(A'A)\*A' do you see a fast way to stay within SparseMatrixCSC? Working implementation but not sparse project(A::SparseMatrixCSC,…

---

## [Overuse of memory leads to computer freeze](https://discourse.julialang.org/t/overuse-of-memory-leads-to-computer-freeze/62671)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 10\
**Last updated:** [June 10, 2021, 3:26pm UTC](https://discourse.julialang.org/t/overuse-of-memory-leads-to-computer-freeze/62671 "2021-06-10T15:26:07Z")

</div>

I have a memory issue. On my small laptop (8Gb RAM) when I build overly big matrices I get a nice OutOfMemory error, the function is stopped and all is well. However on my desktop (~48Gb RAM) overly big matrices will ta…

---

## [Concatenation arguments](https://discourse.julialang.org/t/concatenation-arguments/62676)

<div class="topic-metadata">

**Author:** [@JeanFrancois](https://discourse.julialang.org/u/JeanFrancois)\
**Replies:** 1\
**Last updated:** [June 10, 2021, 3:09pm UTC](https://discourse.julialang.org/t/concatenation-arguments/62676 "2021-06-10T15:09:26Z")

</div>

I do not understand the difference between : # applying hcat to a vector hcat( \[hcat(Gray.(Float64.(rand(10)))) for \_ in 1:10\] ) and # applying hcat to a list of arguments, using the splat operator begin vecs = \[hc…

---

## [Plotting data on a map in Julia](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [June 10, 2021, 2:45pm UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655 "2021-06-10T14:45:40Z")

</div>

Is there any way to plot data with latitude/longitude on a map in Julia? I am used to folium in Python and ggmap in R: https://github.com/python-visualization/folium https://github.com/dkahle/ggmap but I am trying to…

---

## [PyCall setup for pickle consistency between machines](https://discourse.julialang.org/t/pycall-setup-for-pickle-consistency-between-machines/62679)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 2:16pm UTC](https://discourse.julialang.org/t/pycall-setup-for-pickle-consistency-between-machines/62679 "2021-06-10T14:16:15Z")

</div>

I have a pickled file with 2 arrays. The first array is a floating point array, the second is a UInt8 array. On one machine pickle.load(F) twice loads both arrays, while on the other it does not. Instead I get ERROR: Py…

---

## [Adding file to vector claims in is a char, but typeof(file) is string](https://discourse.julialang.org/t/adding-file-to-vector-claims-in-is-a-char-but-typeof-file-is-string/62678)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 1:57pm UTC](https://discourse.julialang.org/t/adding-file-to-vector-claims-in-is-a-char-but-typeof-file-is-string/62678 "2021-06-10T13:57:58Z")

</div>

I have this code filenames = Vector{String}() for file in readdir() println(typeof(file)) append!(filenames,file) end which generates an error: MethodError: Cannot \`convert\` an object of type Char to an object…

---

## [Testing changes to stdlib without remaking the whole of Julia](https://discourse.julialang.org/t/testing-changes-to-stdlib-without-remaking-the-whole-of-julia/11998)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 9\
**Last updated:** [June 10, 2021, 11:32am UTC](https://discourse.julialang.org/t/testing-changes-to-stdlib-without-remaking-the-whole-of-julia/11998 "2021-06-10T11:32:17Z")

</div>

If I make a change in stdlib/, should I make the whole Julia, or is it possible to run the unit tests for the particular library without remaking everything? I could not figure out how.

---

## [Strange behavior of CuDeviceArrays](https://discourse.julialang.org/t/strange-behavior-of-cudevicearrays/62568)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 7\
**Last updated:** [June 10, 2021, 11:22am UTC](https://discourse.julialang.org/t/strange-behavior-of-cudevicearrays/62568 "2021-06-10T11:22:05Z")

</div>

I am playing around with passing of custom structures containing arrays into CUDA kernels. In order to be able to access these structure’s arrays inside the kernels, I convert them to CuDeviceArrays using cudaconvert fu…

---

## [Is it worth trying to speed up setindex for arrays of numbers where an array is overwritten with another?](https://discourse.julialang.org/t/is-it-worth-trying-to-speed-up-setindex-for-arrays-of-numbers-where-an-array-is-overwritten-with-another/62665)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 10:05am UTC](https://discourse.julialang.org/t/is-it-worth-trying-to-speed-up-setindex-for-arrays-of-numbers-where-an-array-is-overwritten-with-another/62665 "2021-06-10T10:05:39Z")

</div>

Arrays of numbers (often bitstype) are fairly common in numerical work, eg Array{Float64}. I’m thinking of an operation such as julia\> a = ones(1000, 1000); julia\> b = copy(a); julia\> @btime $a\[:,:\] = $b; 1.877 ms …

---

## [How to save a 24 bit wav file?](https://discourse.julialang.org/t/how-to-save-a-24-bit-wav-file/62583)

<div class="topic-metadata">

**Author:** [@D\_A](https://discourse.julialang.org/u/D_A)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 10:49am UTC](https://discourse.julialang.org/t/how-to-save-a-24-bit-wav-file/62583 "2021-06-10T10:49:14Z")

</div>

Hello, After opening a wav file (24 bit depth) with the LibSndFile library (and not WAV because I get InexactError when reading some files that are opened well with LibSndFile), the data is in 32 bit format (Q0f31 (alia…

---

## [Unclear dimension error message](https://discourse.julialang.org/t/unclear-dimension-error-message/62659)

<div class="topic-metadata">

**Author:** [@shawngiese](https://discourse.julialang.org/u/shawngiese)\
**Replies:** 2\
**Last updated:** [June 10, 2021, 9:01am UTC](https://discourse.julialang.org/t/unclear-dimension-error-message/62659 "2021-06-10T09:01:18Z")

</div>

Hi, new user trying to use flux for a convolution network. I get the error: DimensionMismatch("A has dimensions (1024,64) but B has dimensions (1024,64)") But I do not understand what that means. Are the dimensions sup…

---

## [Discussion: Parallel reductions using semidirect products](https://discourse.julialang.org/t/discussion-parallel-reductions-using-semidirect-products/62654)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 2:55am UTC](https://discourse.julialang.org/t/discussion-parallel-reductions-using-semidirect-products/62654 "2021-06-10T02:55:38Z")

</div>

Hi, I just wrote a discussion on Parallel reductions using semidirect products: Solutions to many parallel programming problems can be reduced to a well-designed monoid. As such, interesting parallel solution sometimes…

---

## [Auckland Julia meetup #4, Thursday June 10](https://discourse.julialang.org/t/auckland-julia-meetup-4-thursday-june-10/62363)

<div class="topic-metadata">

**Author:** [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Replies:** 4\
**Last updated:** [June 10, 2021, 6:29am UTC](https://discourse.julialang.org/t/auckland-julia-meetup-4-thursday-june-10/62363 "2021-06-10T06:29:17Z")

</div>

Tēnā koutou, We’re happy to announce the fourth Auckland Julia meetup, taking place next Thursday, 2021-06-10T06:30:00Z (UTC), at the GridAKL Tech Café (John Lysaght building) in the Wynyard Quarter, Auckland. The meet…

---

## [Selecting best DAG from the family of DAGs based on AIC score](https://discourse.julialang.org/t/selecting-best-dag-from-the-family-of-dags-based-on-aic-score/62611)

<div class="topic-metadata">

**Author:** [@ashwanimalviya](https://discourse.julialang.org/u/ashwanimalviya)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 6:11am UTC](https://discourse.julialang.org/t/selecting-best-dag-from-the-family-of-dags-based-on-aic-score/62611 "2021-06-10T06:11:46Z")

</div>

Thank you @Jeff Erlich for your suggestion to post my question on discourse. I would like to say to the Julia community here, I have posted a question(In the link) and have one more block regarding this Slack issue. I h…

---

## [Can't install Julia on work PC. No Github access or General Registry. Solutions?](https://discourse.julialang.org/t/cant-install-julia-on-work-pc-no-github-access-or-general-registry-solutions/62653)

<div class="topic-metadata">

**Author:** [@liviomaya](https://discourse.julialang.org/u/liviomaya)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 5:08am UTC](https://discourse.julialang.org/t/cant-install-julia-on-work-pc-no-github-access-or-general-registry-solutions/62653 "2021-06-10T05:08:41Z")

</div>

I love using Julia and want to use it on work. But my company blocks access to most Github repositories. Moreover, when I install Julia, I do not even get the general registry - probably some other website blocked. And e…

---

## [Implementing iterative algorithms using Base.Iterators concepts](https://discourse.julialang.org/t/implementing-iterative-algorithms-using-base-iterators-concepts/62575)

<div class="topic-metadata">

**Author:** [@imcinerney](https://discourse.julialang.org/u/imcinerney)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 4:24am UTC](https://discourse.julialang.org/t/implementing-iterative-algorithms-using-base-iterators-concepts/62575 "2021-06-10T04:24:24Z")

</div>

I was noticing that some packages implement their iterative algorithms using the Base.Iterators methods by defining the algorithm iteration inside an iterate function and then using that to iterate it. Others implement e…

---

## [Automate allocation](https://discourse.julialang.org/t/automate-allocation/56161)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 14\
**Last updated:** [June 9, 2021, 6:18pm UTC](https://discourse.julialang.org/t/automate-allocation/56161 "2021-06-09T18:18:55Z")

</div>

Is it possible to automate this: #I currently have: y\_TX, m\_TX, ŷ\_TX, ATT\_TX, ATT\_co, se\_i\_TX, se\_t\_TX = \[\], \[\], \[\], \[\], \[\], \[\], \[\] # I want something like: y\_TX, m\_TX, ŷ\_TX, ATT\_TX, ATT\_co, se\_i\_TX, se\_t\_TX = \[\]

---

## [Discourse Cleanup](https://discourse.julialang.org/t/discourse-cleanup/62650)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 2:15am UTC](https://discourse.julialang.org/t/discourse-cleanup/62650 "2021-06-10T02:15:36Z")

</div>

Hey folks, I was just cleaning up some old categories (Helpdesk-bridged and JuliaBox). Sorry for the spam if you were paying attention to the feed. If you see any old or outdated categories, please ping me and I’ll get …

---

## [Sparse linear algebra question lu(::SparseMatrixCSC)](https://discourse.julialang.org/t/sparse-linear-algebra-question-lu-sparsematrixcsc/62625)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 1\
**Last updated:** [June 9, 2021, 2:44pm UTC](https://discourse.julialang.org/t/sparse-linear-algebra-question-lu-sparsematrixcsc/62625 "2021-06-09T14:44:07Z")

</div>

I got this strange error using SparseArrays M = sprand(3,16,0.5) lu(M) lu(M’) ERROR: MethodError: no method matching lu!(::SparseMatrixCSC{Float64, Int64}, ::Val{true}; check=true) Does anybody know why?

---

## [Issue with Package Builder in JuliaBox](https://discourse.julialang.org/t/issue-with-package-builder-in-juliabox/11188)

<div class="topic-metadata">

**Author:** [@reesepathak](https://discourse.julialang.org/u/reesepathak)\
**Replies:** 0\
**Last updated:** [May 27, 2018, 8:31pm UTC](https://discourse.julialang.org/t/issue-with-package-builder-in-juliabox/11188 "2018-05-27T20:31:25Z")

</div>

I am not sure if this is the right place to ask this question, but when I attempt to add my package (GitHub - reesepathak/EmpiricalRiskMinimization.jl: Empirical Risk Minimization in Julia.) through PackageBuilder, it fa…

---

## [Package Builder issue](https://discourse.julialang.org/t/package-builder-issue/11189)

<div class="topic-metadata">

**Author:** [@reesepathak](https://discourse.julialang.org/u/reesepathak)\
**Replies:** 0\
**Last updated:** [May 27, 2018, 8:32pm UTC](https://discourse.julialang.org/t/package-builder-issue/11189 "2018-05-27T20:32:08Z")

</div>

When I run Package Builder in JuliaBox to install my unregistered package (https://github.com/reesepathak/EmpiricalRiskMinimization.jl) I get errors. Here’s the end of the JuliaBox stderr WARNING: mysql\_connect is depr…

---

## [Kernel dying](https://discourse.julialang.org/t/kernel-dying/13627)

<div class="topic-metadata">

**Author:** [@leclere](https://discourse.julialang.org/u/leclere)\
**Replies:** 0\
**Last updated:** [August 17, 2018, 1:56pm UTC](https://discourse.julialang.org/t/kernel-dying/13627 "2018-08-17T13:56:12Z")

</div>

Hello, I have been having some difficulties using JuliaBox recently : my kernels crash on login or first run. I have no definite pattern but it has happened : on chrome (on Linux), connecting from github and gmail, b…

---

## [Dead Kernel error JuliaBox.com](https://discourse.julialang.org/t/dead-kernel-error-juliabox-com/14163)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [August 27, 2018, 11:58pm UTC](https://discourse.julialang.org/t/dead-kernel-error-juliabox-com/14163 "2018-08-27T23:58:10Z")

</div>

I am using Juliabox.com and when I start a notebook (using v0.6.2 my only option), it shows a popup saying Kernel Retarting The kernel appears to have died. It will restart automatically. I can’t seem to use Juliabo…

---

## [JuliaBox - Package availability on remote machine](https://discourse.julialang.org/t/juliabox-package-availability-on-remote-machine/15221)

<div class="topic-metadata">

**Author:** [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Replies:** 0\
**Last updated:** [September 20, 2018, 10:26am UTC](https://discourse.julialang.org/t/juliabox-package-availability-on-remote-machine/15221 "2018-09-20T10:26:30Z")

</div>

Before describing the issue, I just wanted to comment that I not sure whether it is specific to JuliaBox (locally on my laptop things work fine). I am using Julia 1.0 on JuliaBox. To add a package I type Pkg.add("Static…

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

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