# Latest

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

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

**Page:** 1537

---

## [Ssl\_handshake errors with download](https://discourse.julialang.org/t/ssl-handshake-errors-with-download/52507)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 0\
**Last updated:** [December 28, 2020, 12:37pm UTC](https://discourse.julialang.org/t/ssl-handshake-errors-with-download/52507 "2020-12-28T12:37:23Z")

</div>

I’m using download to get a copy of a Google sheet “published” to a url as csv (this is a convinient way of letting users edit their data online via Google sheets, and then I can download their finished data). Sometimes,…

---

## [Convert 2×2 Array{Array{Float64,1},2} into Array{Float64, 3}](https://discourse.julialang.org/t/convert-2x2-array-array-float64-1-2-into-array-float64-3/52502)

<div class="topic-metadata">

**Author:** [@gxyd](https://discourse.julialang.org/u/gxyd)\
**Replies:** 3\
**Last updated:** [December 28, 2020, 11:30am UTC](https://discourse.julialang.org/t/convert-2x2-array-array-float64-1-2-into-array-float64-3/52502 "2020-12-28T11:30:24Z")

</div>

Dear all, How do I convert an object of type Array{Array{Float64,1},2} to an object of type Array{Float64, 2}? For ex. \> t = Array{Array{Float64,1}, 2}(undef, (2, 2)) \> t\[1\] = \[0., 0, 0\]; \> t\[2\] = \[0., 0, 0\]; \> t\[3\] =…

---

## [Any concise way to express simulation equations in Julia (like algebraic modelling language but not necessarily linked to optimisation problems)?](https://discourse.julialang.org/t/any-concise-way-to-express-simulation-equations-in-julia-like-algebraic-modelling-language-but-not-necessarily-linked-to-optimisation-problems/52449)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [December 28, 2020, 10:41am UTC](https://discourse.julialang.org/t/any-concise-way-to-express-simulation-equations-in-julia-like-algebraic-modelling-language-but-not-necessarily-linked-to-optimisation-problems/52449 "2020-12-28T10:41:10Z")

</div>

I know several Algebraic Modelling Languages in the context of optimisation, e.g. GAMS, Pyomo (Python) or JuMP (Julia). These allow you to express your objective function and your constraints with a syntax very concise a…

---

## [Question on mocking of arbitrary function for testing](https://discourse.julialang.org/t/question-on-mocking-of-arbitrary-function-for-testing/52443)

<div class="topic-metadata">

**Author:** [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Replies:** 6\
**Last updated:** [December 28, 2020, 9:46am UTC](https://discourse.julialang.org/t/question-on-mocking-of-arbitrary-function-for-testing/52443 "2020-12-28T09:46:30Z")

</div>

As I understand, Mocking package is mostly used for this. Something like: using Mocking function foo() @mock(bar()) Is there a way to avoid @mock? It looks a bit artificial. My understanding is that it is easy to …

---

## [Unexpected infinite loop when calling a simple function](https://discourse.julialang.org/t/unexpected-infinite-loop-when-calling-a-simple-function/52482)

<div class="topic-metadata">

**Author:** [@Chen](https://discourse.julialang.org/u/Chen)\
**Replies:** 2\
**Last updated:** [December 28, 2020, 9:37am UTC](https://discourse.julialang.org/t/unexpected-infinite-loop-when-calling-a-simple-function/52482 "2020-12-28T09:37:27Z")

</div>

I’m trying to create a function that calls another function. using Weave function knytte( file\_name, doc\_type ) weave( file\_name, doctype = doc\_type ) end knytte( "test.jmd", "md2html" ) The content of “test.jmd”…

---

## [Learning Julia by (ab)using constructor](https://discourse.julialang.org/t/learning-julia-by-ab-using-constructor/52485)

<div class="topic-metadata">

**Author:** [@codyit](https://discourse.julialang.org/u/codyit)\
**Replies:** 6\
**Last updated:** [December 28, 2020, 8:45am UTC](https://discourse.julialang.org/t/learning-julia-by-ab-using-constructor/52485 "2020-12-28T08:45:14Z")

</div>

I’ve just been trying to pick up Julia this morning. And I thought, what’s better than abusing so struct behaves like Python class! Totally understand things are preferably immutable, and methods declaration are extern…

---

## [Win 10 Issue with Pkg/PlatformEngines](https://discourse.julialang.org/t/win-10-issue-with-pkg-platformengines/43272)

<div class="topic-metadata">

**Author:** [@Omega-xyZac](https://discourse.julialang.org/u/Omega-xyZac)\
**Replies:** 21\
**Last updated:** [December 28, 2020, 5:17am UTC](https://discourse.julialang.org/t/win-10-issue-with-pkg-platformengines/43272 "2020-12-28T05:17:46Z")

</div>

I have been trying to find a fix for this issue for awhile. Perhaps this is a bug or my Windows has an issue. I have Powershell/curl on path along with 7z and tar. Am on Win 10 machine. I am able to run powershell and 7z…

---

## [Julia US-East servers down? Here is how to update your packages](https://discourse.julialang.org/t/julia-us-east-servers-down-here-is-how-to-update-your-packages/52496)

<div class="topic-metadata">

**Author:** [@dannofthursday](https://discourse.julialang.org/u/dannofthursday)\
**Replies:** 0\
**Last updated:** [December 28, 2020, 7:13am UTC](https://discourse.julialang.org/t/julia-us-east-servers-down-here-is-how-to-update-your-packages/52496 "2020-12-28T07:13:52Z")

</div>

Newish Julia user. Experiencing the following issue when trying to update packages: Per this thread, the environment variable, JULIA\_PKG\_SERVER, needs to be changed. Here is what I did: Run julia\> ENV\["JULIA\_PKG\_SE…

---

## [Quadgk integration](https://discourse.julialang.org/t/quadgk-integration/52489)

<div class="topic-metadata">

**Author:** [@Nkrause](https://discourse.julialang.org/u/Nkrause)\
**Replies:** 2\
**Last updated:** [December 28, 2020, 2:56am UTC](https://discourse.julialang.org/t/quadgk-integration/52489 "2020-12-28T02:56:21Z")

</div>

Hello, I’ve got a function I’m trying to integrate, it’s a single variable for a position in space (an electric potential at that point). I’d like to pass my function a position, and have it evaluate the integral at that…

---

## [How to check what holds package update?](https://discourse.julialang.org/t/how-to-check-what-holds-package-update/52442)

<div class="topic-metadata">

**Author:** [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Replies:** 5\
**Last updated:** [December 28, 2020, 2:10am UTC](https://discourse.julialang.org/t/how-to-check-what-holds-package-update/52442 "2020-12-28T02:10:40Z")

</div>

I found that DataStructures.jl package is on version 0.17 while up-to-date version is 0.18. How do I find what other package holds the update? Thank you very much,

---

## [My script performance lags Python](https://discourse.julialang.org/t/my-script-performance-lags-python/52249)

<div class="topic-metadata">

**Author:** [@jsundram](https://discourse.julialang.org/u/jsundram)\
**Replies:** 13\
**Last updated:** [December 28, 2020, 12:31am UTC](https://discourse.julialang.org/t/my-script-performance-lags-python/52249 "2020-12-28T00:31:51Z")

</div>

Context: @dpsanders encouraged me to try rewriting a slow Python script of mine in Julia. The code is intended largely as an art project – to do something similar to images that the Percolator app does. I implemented a…

---

## [Properties on expressions including call arguments, constructors or array indices](https://discourse.julialang.org/t/properties-on-expressions-including-call-arguments-constructors-or-array-indices/52450)

<div class="topic-metadata">

**Author:** [@Floris](https://discourse.julialang.org/u/Floris)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 11:04pm UTC](https://discourse.julialang.org/t/properties-on-expressions-including-call-arguments-constructors-or-array-indices/52450 "2020-12-27T23:04:07Z")

</div>

Hi there, I am new to the Julia community, but since a while I’ve been working on a package to enable painless interaction with COMSOL (commercial finite element software). It relies heavily on java’s reflection API to m…

---

## [Fastest way to run a for loop in parallel](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477)

<div class="topic-metadata">

**Author:** [@rcesarpacheco](https://discourse.julialang.org/u/rcesarpacheco)\
**Replies:** 4\
**Last updated:** [December 27, 2020, 10:58pm UTC](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477 "2020-12-27T22:58:02Z")

</div>

I am a new user of Julia and I am trying to run a for loop in parallel using .Threads but I don’t know if this is the fastest way that I can do this. The for loop is: res = zeros(length(posicao),2) Threads.@thr…

---

## [Letting a package use external user-created functions](https://discourse.julialang.org/t/letting-a-package-use-external-user-created-functions/52345)

<div class="topic-metadata">

**Author:** [@Michael\_Wang](https://discourse.julialang.org/u/Michael_Wang)\
**Replies:** 26\
**Last updated:** [December 27, 2020, 9:40pm UTC](https://discourse.julialang.org/t/letting-a-package-use-external-user-created-functions/52345 "2020-12-27T21:40:45Z")

</div>

Suppose I have a simulation package module MySimPackage struct Interaction1 \<: AbstractInteraction stuff end function compute\_interaction(i::Interaction1) compute something end func…

---

## [Sharing python memory](https://discourse.julialang.org/t/sharing-python-memory/52409)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 17\
**Last updated:** [December 27, 2020, 9:22pm UTC](https://discourse.julialang.org/t/sharing-python-memory/52409 "2020-12-27T21:22:39Z")

</div>

so I am going to be populating a python data structure with financial instrument data. I want to use Julia to analyze the information. What is the most effective way to share the data between python and julia. thank y…

---

## [Replace for loop with vectorized call of a function that returns multiple values](https://discourse.julialang.org/t/replace-for-loop-with-vectorized-call-of-a-function-that-returns-multiple-values/52476)

<div class="topic-metadata">

**Author:** [@rcesarpacheco](https://discourse.julialang.org/u/rcesarpacheco)\
**Replies:** 1\
**Last updated:** [December 27, 2020, 8:51pm UTC](https://discourse.julialang.org/t/replace-for-loop-with-vectorized-call-of-a-function-that-returns-multiple-values/52476 "2020-12-27T20:51:35Z")

</div>

I have the following function: problema\_firma\_emprestimo(r,w,r\_emprestimo,posicao,posicao\_banco) , where all inputs are scalars. This function return three different matrix, using return demanda\_k\_emprestimo,demanda\_l\_e…

---

## [Custom function for eigenvectors designed for my sparse matrix can't beat eigen](https://discourse.julialang.org/t/custom-function-for-eigenvectors-designed-for-my-sparse-matrix-cant-beat-eigen/52008)

<div class="topic-metadata">

**Author:** [@physicophilic](https://discourse.julialang.org/u/physicophilic)\
**Replies:** 17\
**Last updated:** [December 27, 2020, 7:54pm UTC](https://discourse.julialang.org/t/custom-function-for-eigenvectors-designed-for-my-sparse-matrix-cant-beat-eigen/52008 "2020-12-27T19:54:04Z")

</div>

I have a matrix of the form Jy = \[\[ 0 -im\*N1 0 0 ....... \] \[im\*N1 0 -im\*N2 0 ..... \] \[0 im\*N2 0 -im\*N3 ....\] ..................................…

---

## [Question about concatenation using for loops](https://discourse.julialang.org/t/question-about-concatenation-using-for-loops/52470)

<div class="topic-metadata">

**Author:** [@Brian\_Becsi](https://discourse.julialang.org/u/Brian_Becsi)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 7:21pm UTC](https://discourse.julialang.org/t/question-about-concatenation-using-for-loops/52470 "2020-12-27T19:21:58Z")

</div>

Hello, I am new to coding in general. I know this is probably a simple question, but I’ve been looking through documentation for about an hour. I have an array of eigenvalues, and I want to return a list of the real ei…

---

## [This struct breaks an interface](https://discourse.julialang.org/t/this-struct-breaks-an-interface/52399)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 8\
**Last updated:** [December 27, 2020, 6:41pm UTC](https://discourse.julialang.org/t/this-struct-breaks-an-interface/52399 "2020-12-27T18:41:09Z")

</div>

I didn’t know how to word the title. But this object makes Juno throw errors. For context. I have some objects which are located all over the place (memory-wise). I want to query them and pass them to Optim. But before …

---

## [Problem using Pardiso in Julia](https://discourse.julialang.org/t/problem-using-pardiso-in-julia/52469)

<div class="topic-metadata">

**Author:** [@rcesarpacheco](https://discourse.julialang.org/u/rcesarpacheco)\
**Replies:** 0\
**Last updated:** [December 27, 2020, 6:06pm UTC](https://discourse.julialang.org/t/problem-using-pardiso-in-julia/52469 "2020-12-27T18:06:46Z")

</div>

Hello, I am trying to use the Pardiso package in Julia together with the Pardiso library. However, I can’t build the package. When I look into the build log, I see this message: Looking in “C:\\Users\\Rodrigo.julia\\packa…

---

## [Automatic Matrix Format Exploration for Large Scale Linear Algebra](https://discourse.julialang.org/t/automatic-matrix-format-exploration-for-large-scale-linear-algebra/52465)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 0\
**Last updated:** [December 27, 2020, 5:39pm UTC](https://discourse.julialang.org/t/automatic-matrix-format-exploration-for-large-scale-linear-algebra/52465 "2020-12-27T17:39:38Z")

</div>

I found a PhD thesis very interesting to automatic deduce the best memory implementation for distributed data - I would say DistributedArrays will have good use for it. The link is here. In general terms, given a Syntax…

---

## [Apply function to arrays of arbitrary dimensions](https://discourse.julialang.org/t/apply-function-to-arrays-of-arbitrary-dimensions/52426)

<div class="topic-metadata">

**Author:** [@duscrin](https://discourse.julialang.org/u/duscrin)\
**Replies:** 3\
**Last updated:** [December 27, 2020, 3:03pm UTC](https://discourse.julialang.org/t/apply-function-to-arrays-of-arbitrary-dimensions/52426 "2020-12-27T15:03:36Z")

</div>

I want to write a function which will do some calculations with vectors and rotation matrices in 3D space (so 3 element, single dimension vectors and 3x3 element matrices of two dimensions). What is the best way to apply…

---

## [Plot graph is zoomed to much](https://discourse.julialang.org/t/plot-graph-is-zoomed-to-much/52431)

<div class="topic-metadata">

**Author:** [@acastrauss](https://discourse.julialang.org/u/acastrauss)\
**Replies:** 0\
**Last updated:** [December 26, 2020, 11:35pm UTC](https://discourse.julialang.org/t/plot-graph-is-zoomed-to-much/52431 "2020-12-26T23:35:50Z")

</div>

I recently installed newest version of Julia, and ever since, when I plot any function my view is zoomed too much (like on the picture). Of course, I can zoom out, but then I would have to zoom in when I write code. Can …

---

## [Advent of Code 2020](https://discourse.julialang.org/t/advent-of-code-2020/51194)

<div class="topic-metadata">

**Author:** [@kwinkunks](https://discourse.julialang.org/u/kwinkunks)\
**Replies:** 4\
**Last updated:** [December 27, 2020, 10:14am UTC](https://discourse.julialang.org/t/advent-of-code-2020/51194 "2020-12-27T10:14:25Z")

</div>

I’m a new Julia user, long time Python user. I’m doing Advent of Code in Julia this year… for now anyway. My repo is here: https://github.com/kwinkunks/aoc20 My Julia is far from idiomatic, but I’m learning a lot from …

---

## [Trouble installing an Excel reader](https://discourse.julialang.org/t/trouble-installing-an-excel-reader/52419)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 12\
**Last updated:** [December 27, 2020, 2:12am UTC](https://discourse.julialang.org/t/trouble-installing-an-excel-reader/52419 "2020-12-27T02:12:22Z")

</div>

I’d like to read in some data from an Excel file, but I am having trouble installing an Excel reader. After issuing the using Pkg command, the following attempts all gave me the same error: Pkg.add("XLSX") Pkg.add("Exc…

---

## [Mandelbrot with Plots.jl](https://discourse.julialang.org/t/mandelbrot-with-plots-jl/52410)

<div class="topic-metadata">

**Author:** [@Ayush\_Rawat](https://discourse.julialang.org/u/Ayush_Rawat)\
**Replies:** 7\
**Last updated:** [December 27, 2020, 1:52am UTC](https://discourse.julialang.org/t/mandelbrot-with-plots-jl/52410 "2020-12-27T01:52:43Z")

</div>

I’m trying to do a crude sketch of the Mandelbrot set to better my understanding of Plots.jl. But the code is taking way too long to execute. Thus I humbly ask for help. My class is as follows (the begin and end I use b…

---

## [Programmatically load packages](https://discourse.julialang.org/t/programmatically-load-packages/52435)

<div class="topic-metadata">

**Author:** [@Chen](https://discourse.julialang.org/u/Chen)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 1:32am UTC](https://discourse.julialang.org/t/programmatically-load-packages/52435 "2020-12-27T01:32:51Z")

</div>

I’m thinking of programmatically load packages. packages = \[ "PackageCompiler", "Revise", "Pkg", "Weave" \] for package in packages using package end It seems that using treats package not as a variable, but as a str…

---

## [Make a LCHab{Float32} color darker](https://discourse.julialang.org/t/make-a-lchab-float32-color-darker/52432)

<div class="topic-metadata">

**Author:** [@BeyondMagic](https://discourse.julialang.org/u/BeyondMagic)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 1:06am UTC](https://discourse.julialang.org/t/make-a-lchab-float32-color-darker/52432 "2020-12-27T01:06:54Z")

</div>

I’ll be direct! I’m trying to make a LCHab{Float32} color made with Colors.jl darker; at first glance, I thought in iterating and giving it a smaller value, however perhaps I’m very dumb for not knowing that I cannot pro…

---

## [Should abstract types be exported?](https://discourse.julialang.org/t/should-abstract-types-be-exported/52359)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 3\
**Last updated:** [December 26, 2020, 8:58pm UTC](https://discourse.julialang.org/t/should-abstract-types-be-exported/52359 "2020-12-26T20:58:03Z")

</div>

My module has a few composite types like: struct myType1 \<: ModFooAbstractType. It seems the intent of abstract types is that they are an interface for functions, not necessarily defined in the same module, like: using…

---

## [How to create a function that returns a vector of interpolated values](https://discourse.julialang.org/t/how-to-create-a-function-that-returns-a-vector-of-interpolated-values/52424)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 2\
**Last updated:** [December 26, 2020, 10:27pm UTC](https://discourse.julialang.org/t/how-to-create-a-function-that-returns-a-vector-of-interpolated-values/52424 "2020-12-26T22:27:29Z")

</div>

I currently trying to generate a function which will allow me to evaluate multiple linear interpolation functions at a single point and generate a vector of resulting values. The x values are the same for each function …

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

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