# Latest

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

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

**Page:** 1810

---

## [Getting all digits from a BigInt](https://discourse.julialang.org/t/getting-all-digits-from-a-bigint/35528)

<div class="topic-metadata">

**Author:** [@dmoura](https://discourse.julialang.org/u/dmoura)\
**Replies:** 3\
**Last updated:** [March 4, 2020, 5:54pm UTC](https://discourse.julialang.org/t/getting-all-digits-from-a-bigint/35528 "2020-03-04T17:54:23Z")

</div>

I am trying to collect and then sum all the digits from a BigInt. Example: sum all digits of 2^1000000 Intuitively, my first solution was using the digits function: @time sum(digits(BigInt(2)^1000000)) 29.189925 seco…

---

## [Populate a Dataframe from an array](https://discourse.julialang.org/t/populate-a-dataframe-from-an-array/35526)

<div class="topic-metadata">

**Author:** [@Luigi\_Bottecchia](https://discourse.julialang.org/u/Luigi_Bottecchia)\
**Replies:** 4\
**Last updated:** [March 4, 2020, 3:36pm UTC](https://discourse.julialang.org/t/populate-a-dataframe-from-an-array/35526 "2020-03-04T15:36:03Z")

</div>

Hi all! I’m learning Julia and these are my first steps. I have a struct that looks like this: struct Region elements::Array{res\_tech} demand::Matrix{Float64} end where res\_tech is another struct that is: stru…

---

## [Solving and ODE system starting from different initial points](https://discourse.julialang.org/t/solving-and-ode-system-starting-from-different-initial-points/35480)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 6\
**Last updated:** [March 4, 2020, 3:35pm UTC](https://discourse.julialang.org/t/solving-and-ode-system-starting-from-different-initial-points/35480 "2020-03-04T15:35:20Z")

</div>

Hello, I have a simple system of which i would like to build the phase portrait. I thought of creating a mesh of interesting points and solve the problem for each of them. This is what i naively tried until now but it…

---

## [V1.3.1 no gain using multithread](https://discourse.julialang.org/t/v1-3-1-no-gain-using-multithread/35401)

<div class="topic-metadata">

**Author:** [@wizebt](https://discourse.julialang.org/u/wizebt)\
**Replies:** 33\
**Last updated:** [March 4, 2020, 3:04pm UTC](https://discourse.julialang.org/t/v1-3-1-no-gain-using-multithread/35401 "2020-03-04T15:04:04Z")

</div>

Hi desperately trying to understand what is blocking scaling when using multithreading in a simple for loop. Taken from a real linear interpolation function I’m using. I need to enable multithreading to substantialy redu…

---

## [\[DataFrames Question\]: 0.20 performance benchmarks](https://discourse.julialang.org/t/dataframes-question-0-20-performance-benchmarks/34044)

<div class="topic-metadata">

**Author:** [@anandj](https://discourse.julialang.org/u/anandj)\
**Replies:** 1\
**Last updated:** [March 4, 2020, 2:51pm UTC](https://discourse.julialang.org/t/dataframes-question-0-20-performance-benchmarks/34044 "2020-03-04T14:51:56Z")

</div>

I was looking at the 0.20 release notes and noticed that performance was mentioned 5 times. I was wondering if anyone has done general benchmarking versus the prior version. Thanks

---

## [Is there an idiomatic way to iterate over all binary strings of a given length?](https://discourse.julialang.org/t/is-there-an-idiomatic-way-to-iterate-over-all-binary-strings-of-a-given-length/35487)

<div class="topic-metadata">

**Author:** [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Replies:** 16\
**Last updated:** [March 4, 2020, 2:34pm UTC](https://discourse.julialang.org/t/is-there-an-idiomatic-way-to-iterate-over-all-binary-strings-of-a-given-length/35487 "2020-03-04T14:34:07Z")

</div>

I would like to iterate over all binary strings of length n, for some smallish integer n. Is there an idiomatic Julia way to do that?

---

## [Julia PyPlot equivalent to R's points](https://discourse.julialang.org/t/julia-pyplot-equivalent-to-rs-points/35518)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [March 4, 2020, 2:21pm UTC](https://discourse.julialang.org/t/julia-pyplot-equivalent-to-rs-points/35518 "2020-03-04T14:21:51Z")

</div>

Hello, I have a plot with made with PyPlot I would like to customize adding levels of data. The base of the plot is this (the R’s equivalent to the high-level drawing): This was obtained with the call: myPlot = plot(…

---

## [Dense Layers, softmax, relu](https://discourse.julialang.org/t/dense-layers-softmax-relu/35520)

<div class="topic-metadata">

**Author:** [@samantp](https://discourse.julialang.org/u/samantp)\
**Replies:** 4\
**Last updated:** [March 4, 2020, 2:19pm UTC](https://discourse.julialang.org/t/dense-layers-softmax-relu/35520 "2020-03-04T14:19:30Z")

</div>

I am running through the 60 minute blitz in flux’s model zoo and was looking for some clarity on functions that I havn’t seen before. I am on line 205 and I am struggling to understand what the Dense function does, as we…

---

## [Thread collision on data?](https://discourse.julialang.org/t/thread-collision-on-data/35514)

<div class="topic-metadata">

**Author:** [@dataPulverizer](https://discourse.julialang.org/u/dataPulverizer)\
**Replies:** 3\
**Last updated:** [March 4, 2020, 12:26pm UTC](https://discourse.julialang.org/t/thread-collision-on-data/35514 "2020-03-04T12:26:10Z")

</div>

I’m trying to do a map-reduce style coding but I’m not getting exactly the same output with serial and parallel code and suspect that there is thread collision on data. I am trying to collate results indexing a data stru…

---

## [Slow parallel fractals](https://discourse.julialang.org/t/slow-parallel-fractals/35479)

<div class="topic-metadata">

**Author:** [@eaubanel](https://discourse.julialang.org/u/eaubanel)\
**Replies:** 7\
**Last updated:** [March 4, 2020, 12:25pm UTC](https://discourse.julialang.org/t/slow-parallel-fractals/35479 "2020-03-04T12:25:20Z")

</div>

Trying @threads and @distributed with my favourite parallel test case. Can’t figure out why @threads is so slow and allocates so much memory and why @distributed is so slow. function genFractal(α, n=100) niter = 255…

---

## [VegaLite: facet plot with running average layer](https://discourse.julialang.org/t/vegalite-facet-plot-with-running-average-layer/35463)

<div class="topic-metadata">

**Author:** [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Replies:** 3\
**Last updated:** [March 4, 2020, 12:19pm UTC](https://discourse.julialang.org/t/vegalite-facet-plot-with-running-average-layer/35463 "2020-03-04T12:19:05Z")

</div>

I have a dataset with continuous values and would like to plot those values together with their running averages in a layered plot. Works well in this simple case: using Random, DataFrames, Queryverse Random.seed!(1234)…

---

## [Communicating julia and python for deep learning](https://discourse.julialang.org/t/communicating-julia-and-python-for-deep-learning/35510)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 1\
**Last updated:** [March 4, 2020, 12:13pm UTC](https://discourse.julialang.org/t/communicating-julia-and-python-for-deep-learning/35510 "2020-03-04T12:13:37Z")

</div>

Hi all, I was learning to make normal python code communicate with julia. But, I don’t know how this will happen for deep learning. For example, opencv in python can be communicated with julia using using PyCall cv2 = …

---

## [\-0 and 0 are not equivalent in the eye of isequal() while applied in find\*() functions](https://discourse.julialang.org/t/0-and-0-are-not-equivalent-in-the-eye-of-isequal-while-applied-in-find-functions/35513)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 12:13pm UTC](https://discourse.julialang.org/t/0-and-0-are-not-equivalent-in-the-eye-of-isequal-while-applied-in-find-functions/35513 "2020-03-04T12:13:02Z")

</div>

a=\[0.0, -0.0, -0.0, -3.0, 1.0, -0.0\] b=findall(isequal(0),a) #can only identify 0 c=findall(isequal(-0),a) #only for -0 bc=findall(isequal(-0)||isequal(0),a) #how can I pick all 0 in order in bc instead of #concatenna…

---

## ["The applicable method may be too new" - Inference by loading saved BSON Flux model](https://discourse.julialang.org/t/the-applicable-method-may-be-too-new-inference-by-loading-saved-bson-flux-model/33913)

<div class="topic-metadata">

**Author:** [@jchen975](https://discourse.julialang.org/u/jchen975)\
**Replies:** 1\
**Last updated:** [March 4, 2020, 11:47am UTC](https://discourse.julialang.org/t/the-applicable-method-may-be-too-new-inference-by-loading-saved-bson-flux-model/33913 "2020-03-04T11:47:37Z")

</div>

Hi, I was trying to do inference with a previously trained Flux CNN that was saved with BSON with the following: 38 @load model\_name model 39 model = model |\> gpu 40 data = data |\> gpu 41 42 println(type…

---

## [Providing Artifacts basics](https://discourse.julialang.org/t/providing-artifacts-basics/35459)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 12\
**Last updated:** [March 4, 2020, 11:40am UTC](https://discourse.julialang.org/t/providing-artifacts-basics/35459 "2020-03-04T11:40:05Z")

</div>

What is the recommended way to download and extract some binaries and build a simple Julia wrapper package around it? I read the excellent blog post on the artifact system, but it is still unclear how to proceed. In part…

---

## [Current best practices for resource acquizition and cleanup?](https://discourse.julialang.org/t/current-best-practices-for-resource-acquizition-and-cleanup/35509)

<div class="topic-metadata">

**Author:** [@AdamR](https://discourse.julialang.org/u/AdamR)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 10:16am UTC](https://discourse.julialang.org/t/current-best-practices-for-resource-acquizition-and-cleanup/35509 "2020-03-04T10:16:43Z")

</div>

I took me by surprise that with DBInterface.execute(db, sql) as q # do stuff with q end does not deterministically finalize (destruct) q. After digging deeper (e.g. https://github.com/JuliaLang/julia/is…

---

## [How to export/use a type alias?](https://discourse.julialang.org/t/how-to-export-use-a-type-alias/35485)

<div class="topic-metadata">

**Author:** [@leiteiro](https://discourse.julialang.org/u/leiteiro)\
**Replies:** 4\
**Last updated:** [March 4, 2020, 10:10am UTC](https://discourse.julialang.org/t/how-to-export-use-a-type-alias/35485 "2020-03-04T10:10:52Z")

</div>

This is the situation: module A export myType const myType = Array{BigInt,1} isa(\[BigInt(1)\], myType) |\> println end module B using A isa(\[BigInt(1)\], myType) |\> println end In module A the type alias myType is define…

---

## [Killed julia process with threads](https://discourse.julialang.org/t/killed-julia-process-with-threads/35508)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 9:22am UTC](https://discourse.julialang.org/t/killed-julia-process-with-threads/35508 "2020-03-04T09:22:20Z")

</div>

I am calculating slices of a multivariate function, with and without threads (here, commented out): function calculate\_slice(f, x, i, xl, xu; n = 50) z = range(xl, xu; length = n) fz = zeros(n) #=Threads.@th…

---

## [Newcomer contributor in JuliaGeo and co. - Help me get started!](https://discourse.julialang.org/t/newcomer-contributor-in-juliageo-and-co-help-me-get-started/32480)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 28\
**Last updated:** [March 4, 2020, 9:15am UTC](https://discourse.julialang.org/t/newcomer-contributor-in-juliageo-and-co-help-me-get-started/32480 "2020-03-04T09:15:07Z")

</div>

Hello everyone! I am George, lead dev/maintainer of JuliaDynamics and JuliaMusic. I just started my first postdoc position in the Max Planck Institute for Meteorology. My topic will be about spatiotemporal correlations a…

---

## [LoadError: DimensionMismatch](https://discourse.julialang.org/t/loaderror-dimensionmismatch/35507)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 3\
**Last updated:** [March 4, 2020, 8:53am UTC](https://discourse.julialang.org/t/loaderror-dimensionmismatch/35507 "2020-03-04T08:53:04Z")

</div>

Hi everyone, I was trying to rewrite the following python code: import numpy as np import cv2 import matplotlib.pyplot as plt img = cv2.imread('/home/julia\_Hands\_on/cat3.jpg') img\_tinted = img \* \[1, 0.95, 0.9\] print(…

---

## [How to save Set to file?](https://discourse.julialang.org/t/how-to-save-set-to-file/35506)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 8:35am UTC](https://discourse.julialang.org/t/how-to-save-set-to-file/35506 "2020-03-04T08:35:05Z")

</div>

How to save Set ? julia\> Sunikalne Set(\[“WYMYŚLA”, “PRZEPRZĘGAJĄCE”\]) julia\> typeof(Sunikalne) Set{String} julia\> eltype(Sunikalne) String julia\> write(“Sunikalne.txt”,Sunikalne) ERROR: MethodError: no method mat…

---

## [Segmentation fault when updating packages](https://discourse.julialang.org/t/segmentation-fault-when-updating-packages/23766)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 9\
**Last updated:** [March 4, 2020, 8:24am UTC](https://discourse.julialang.org/t/segmentation-fault-when-updating-packages/23766 "2020-03-04T08:24:30Z")

</div>

Hello, I’ve occasionally had this error pop up using Atom+Juno and doing something in pkg the problem is that it’s not easily reproducible afaict. signal (11): Segmentation fault: 11 in expression starting at /Users/tl…

---

## [Subplot in Julia](https://discourse.julialang.org/t/subplot-in-julia/35505)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 1\
**Last updated:** [March 4, 2020, 7:07am UTC](https://discourse.julialang.org/t/subplot-in-julia/35505 "2020-03-04T07:07:10Z")

</div>

Hi all, I’m trying to rewrite the following python code to julia. import numpy as np import cv2 import matplotlib.pyplot as plt img = cv2.imread('/home/julia\_Hands\_on/cat3.jpg') img\_tinted = img \* \[1, 0.95, 0.9\] # S…

---

## [MbedTLS unsatisfiable requirements](https://discourse.julialang.org/t/mbedtls-unsatisfiable-requirements/35495)

<div class="topic-metadata">

**Author:** [@joshua\_jones](https://discourse.julialang.org/u/joshua_jones)\
**Replies:** 4\
**Last updated:** [March 4, 2020, 6:36am UTC](https://discourse.julialang.org/t/mbedtls-unsatisfiable-requirements/35495 "2020-03-04T06:36:32Z")

</div>

Using Pkg.update() on SeisIO.jl updates MbedTLS to a version that breaks Travis-CI tests in all Julia versions, and Appveyor tests in some Julia versions (e.g. compare this Appveyor build to this Travis-CI build). The on…

---

## [Python-Julia communication](https://discourse.julialang.org/t/python-julia-communication/35502)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 4\
**Last updated:** [March 4, 2020, 6:05am UTC](https://discourse.julialang.org/t/python-julia-communication/35502 "2020-03-04T06:05:26Z")

</div>

Hi all, I have the following python code: import cv2 img = cv2.imread("/home/g2-test/julia\_Hands\_on/cat3.jpg") cv2.imshow("original image", img) img2 = cv2.cvtColor(img, cv2.COLOR\_BGR2GRAY) cv2.imshow("gray scale imag…

---

## [Confused by pkg\> test behavior](https://discourse.julialang.org/t/confused-by-pkg-test-behavior/35500)

<div class="topic-metadata">

**Author:** [@pdubya](https://discourse.julialang.org/u/pdubya)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 4:19am UTC](https://discourse.julialang.org/t/confused-by-pkg-test-behavior/35500 "2020-03-04T04:19:29Z")

</div>

I’ve set up a basic package following the description in the pkg docs. When I run pkg\> test I get errors about missing packages that are dependencies of the target package. (Hello) pkg\> test Updating registry at \`~/.…

---

## [Extend \`last\` to also work with arrays](https://discourse.julialang.org/t/extend-last-to-also-work-with-arrays/35100)

<div class="topic-metadata">

**Author:** [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Replies:** 6\
**Last updated:** [March 4, 2020, 1:37am UTC](https://discourse.julialang.org/t/extend-last-to-also-work-with-arrays/35100 "2020-03-04T01:37:59Z")

</div>

It works with strings, but not with arrays, currently this would fail last(\[1, 2, 3, 4, 5\], 2)

---

## [Update julia 0.6.1 -\> 0.6.2 in anaconda](https://discourse.julialang.org/t/update-julia-0-6-1-0-6-2-in-anaconda/8669)

<div class="topic-metadata">

**Author:** [@iArchimedes](https://discourse.julialang.org/u/iArchimedes)\
**Replies:** 7\
**Last updated:** [March 4, 2020, 12:24am UTC](https://discourse.julialang.org/t/update-julia-0-6-1-0-6-2-in-anaconda/8669 "2020-03-04T00:24:22Z")

</div>

I am completely new to julia so please bear with me! I am using julia with anaconda. Its version is 0.6.1. Pkg.update() seems to update all the installed packages. How should I upgrade to the next version (which now is 0…

---

## [Help setting up Julia on a cluster](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 28\
**Last updated:** [March 4, 2020, 12:10am UTC](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519 "2020-03-04T00:10:12Z")

</div>

I am trying Julia for the first time on a HPC cluster at my university. Julia v0.6 is already installed, I have a few questions: How to install packages on a custom folder in the cluster other than .julia/v0.6, and wit…

---

## [ClusterManagers.jl hangs on pbs](https://discourse.julialang.org/t/clustermanagers-jl-hangs-on-pbs/11056)

<div class="topic-metadata">

**Author:** [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Replies:** 9\
**Last updated:** [March 3, 2020, 11:37pm UTC](https://discourse.julialang.org/t/clustermanagers-jl-hangs-on-pbs/11056 "2020-03-03T23:37:57Z")

</div>

I am trying to run several jobs on a PBS cluster using ClusterManagers.jl. using ClusterManagers addprocs\_pbs(4,queue="batch") The job seems to hang: job id is 24, waiting for job to start ...........................…

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

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