# Latest

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

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

**Page:** 1323

---

## [PyJulia multithreading segfaults](https://discourse.julialang.org/t/pyjulia-multithreading-segfaults/65111)

<div class="topic-metadata">

**Author:** [@andrewkhardy](https://discourse.julialang.org/u/andrewkhardy)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 8:28am UTC](https://discourse.julialang.org/t/pyjulia-multithreading-segfaults/65111 "2021-07-23T08:28:30Z")

</div>

I am wondering if the Julia community has any suggestions for importing code from Julia to Python in some manner other than the PyJulia package or suggestions on how to properly use that package as the GitHub seems to be…

---

## [Is BinaryBuilder supposed to work on Windows?](https://discourse.julialang.org/t/is-binarybuilder-supposed-to-work-on-windows/65145)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 5\
**Last updated:** [July 23, 2021, 8:01am UTC](https://discourse.julialang.org/t/is-binarybuilder-supposed-to-work-on-windows/65145 "2021-07-23T08:01:38Z")

</div>

Made my first try but didn’t go very far (not to mention that it didn’t accept the source location from local disk) You have the following contents in your working directory: - imgtexture IOError: could not spawn \`do…

---

## [\[show and tell\] Blog post on interval arithmetic in Pluto.jl](https://discourse.julialang.org/t/show-and-tell-blog-post-on-interval-arithmetic-in-pluto-jl/65070)

<div class="topic-metadata">

**Author:** [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Replies:** 9\
**Last updated:** [July 23, 2021, 7:07am UTC](https://discourse.julialang.org/t/show-and-tell-blog-post-on-interval-arithmetic-in-pluto-jl/65070 "2021-07-23T07:07:30Z")

</div>

I just wrote a blog post entirely in Julia and Pluto.jl! It’s the story of how I flew too close to the sun implementing my own interval arithmetic library, and lessons learned along the way. It’s got some math, some twis…

---

## [Sudden stop of parallel optimization with JuMP and Juniper](https://discourse.julialang.org/t/sudden-stop-of-parallel-optimization-with-jump-and-juniper/65031)

<div class="topic-metadata">

**Author:** [@jairorua](https://discourse.julialang.org/u/jairorua)\
**Replies:** 8\
**Last updated:** [July 23, 2021, 7:06am UTC](https://discourse.julialang.org/t/sudden-stop-of-parallel-optimization-with-jump-and-juniper/65031 "2021-07-23T07:06:14Z")

</div>

I have an MINLP problem that I model and solve in parallel in JuMP using Juniper with Cbc and IPOPT as mip and nlp solvers, respectively. I cannot provide an MWE, but my code works fine with shorter simulations (this mig…

---

## [Calling Julia from Matlab - the smoothest path to sneak Julia into a company](https://discourse.julialang.org/t/calling-julia-from-matlab-the-smoothest-path-to-sneak-julia-into-a-company/64845)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 10\
**Last updated:** [July 23, 2021, 6:41am UTC](https://discourse.julialang.org/t/calling-julia-from-matlab-the-smoothest-path-to-sneak-julia-into-a-company/64845 "2021-07-23T06:41:50Z")

</div>

I would have loved to see such an announcement. The search on this topic is frustrating, the developments appear to have ended in 2018. I see these possible routes One like in Mex.jl and others, using a mexjulia.cpp…

---

## [ANN: JuMP-dev 2021](https://discourse.julialang.org/t/ann-jump-dev-2021/60406)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 5\
**Last updated:** [July 23, 2021, 6:19am UTC](https://discourse.julialang.org/t/ann-jump-dev-2021/60406 "2021-07-23T06:19:21Z")

</div>

Dear all, We are pleased to announce that JuMP-dev 2021 will be co-located with JuliaCon 2021! The purpose of JuMP-dev is to bring together students, researchers, and practitioners with interests in the software aspect…

---

## [Julia v1.7.0-beta3 is now available](https://discourse.julialang.org/t/julia-v1-7-0-beta3-is-now-available/64319)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 8\
**Last updated:** [July 23, 2021, 6:18am UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-is-now-available/64319 "2021-07-23T06:18:34Z")

</div>

The Julia developers are pleased to announce that the third beta release for Julia v1.7.0 is now available. You can download binaries at https://julialang.org/downloads in the “upcoming release” section for macOS (x86-6…

---

## [Turing.jl: UniformDraw distribution?](https://discourse.julialang.org/t/turing-jl-uniformdraw-distribution/65123)

<div class="topic-metadata">

**Author:** [@Hakan\_Kjellerstrand](https://discourse.julialang.org/u/Hakan_Kjellerstrand)\
**Replies:** 2\
**Last updated:** [July 23, 2021, 4:55am UTC](https://discourse.julialang.org/t/turing-jl-uniformdraw-distribution/65123 "2021-07-23T04:55:20Z")

</div>

Is there a “UniformDraw” distribution in Turing.jl / Distributions.jl, i.e. given an array of element, the distribution selects one of the elements randomly. Example: x = \[1,10,32,100\] val ~ UniformDraw(x) val is then…

---

## [Juliacon21-gpu\_workshop notebook \`could not load library "libcuda.so.1"\`](https://discourse.julialang.org/t/juliacon21-gpu-workshop-notebook-could-not-load-library-libcuda-so-1/65014)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 11\
**Last updated:** [July 23, 2021, 12:39am UTC](https://discourse.julialang.org/t/juliacon21-gpu-workshop-notebook-could-not-load-library-libcuda-so-1/65014 "2021-07-23T00:39:06Z")

</div>

I am trying to get started on the JuliaCon GPU tutorial. I have tried everything I can think of I’m on Ubuntu 20.04.2 LTS. If I use CUDA from the repl, it is successful. If I try it from a jupyter notebook, launched f…

---

## [Julia in HPC and Data Science](https://discourse.julialang.org/t/julia-in-hpc-and-data-science/65147)

<div class="topic-metadata">

**Author:** [@ppalmes](https://discourse.julialang.org/u/ppalmes)\
**Replies:** 0\
**Last updated:** [July 23, 2021, 12:23am UTC](https://discourse.julialang.org/t/julia-in-hpc-and-data-science/65147 "2021-07-23T00:23:08Z")

</div>

---

## [Live Julia for HPC, Data Science, and AutoML Pipeline Optimization](https://discourse.julialang.org/t/live-julia-for-hpc-data-science-and-automl-pipeline-optimization/65146)

<div class="topic-metadata">

**Author:** [@ppalmes](https://discourse.julialang.org/u/ppalmes)\
**Replies:** 0\
**Last updated:** [July 23, 2021, 12:18am UTC](https://discourse.julialang.org/t/live-julia-for-hpc-data-science-and-automl-pipeline-optimization/65146 "2021-07-23T00:18:31Z")

</div>

---

## [Question regarding size of variable with JuMP and Ipopt](https://discourse.julialang.org/t/question-regarding-size-of-variable-with-jump-and-ipopt/65128)

<div class="topic-metadata">

**Author:** [@ylish](https://discourse.julialang.org/u/ylish)\
**Replies:** 11\
**Last updated:** [July 22, 2021, 11:55pm UTC](https://discourse.julialang.org/t/question-regarding-size-of-variable-with-jump-and-ipopt/65128 "2021-07-22T23:55:58Z")

</div>

Hello everybody, I am new to JuMP and optimization using Julia and I am wondering if someone could explain to me why the following occurs. If I run the toy problem below with size\_overall = 100 it takes some time, call …

---

## [Using nlsolve inside Turing.jl- ForwardDiff.Dual type error](https://discourse.julialang.org/t/using-nlsolve-inside-turing-jl-forwarddiff-dual-type-error/64986)

<div class="topic-metadata">

**Author:** [@stefan\_petrov\_123](https://discourse.julialang.org/u/stefan_petrov_123)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 11:45pm UTC](https://discourse.julialang.org/t/using-nlsolve-inside-turing-jl-forwarddiff-dual-type-error/64986 "2021-07-22T23:45:46Z")

</div>

Hi, I’m trying to assess if Turing is a good fit for a particular dynamic pricing-type problem I have, and I’m wondering if it’s possible to use nlsolve inside. I’m sure it is, but I can’t figure it out. The code bello…

---

## [Understanding Exceptional Cases and Exception Handling and If Statements](https://discourse.julialang.org/t/understanding-exceptional-cases-and-exception-handling-and-if-statements/63035)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 6\
**Last updated:** [July 22, 2021, 11:09pm UTC](https://discourse.julialang.org/t/understanding-exceptional-cases-and-exception-handling-and-if-statements/63035 "2021-07-22T23:09:33Z")

</div>

This isn’t a Julia related program, but rather a programming problem in general. Suppose you’re designing the validation system for a school that issues ID cards to it’s students. One rule is that you don’t want student…

---

## [Displaying (and formatting) optimal regression curve equation](https://discourse.julialang.org/t/displaying-and-formatting-optimal-regression-curve-equation/65143)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 0\
**Last updated:** [July 22, 2021, 10:50pm UTC](https://discourse.julialang.org/t/displaying-and-formatting-optimal-regression-curve-equation/65143 "2021-07-22T22:50:45Z")

</div>

Hello Everyone: Is there a way to display and format the regression curve equation when plotting? Step 1: using Lathe.preprocess: TrainTestSplit train, test =TestTrainSplit(MagicalCreatures, .80) Step 2: Informing …

---

## [Makie: overlaying scatter plot onto heatmap in Pluto](https://discourse.julialang.org/t/makie-overlaying-scatter-plot-onto-heatmap-in-pluto/65141)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 10:48pm UTC](https://discourse.julialang.org/t/makie-overlaying-scatter-plot-onto-heatmap-in-pluto/65141 "2021-07-22T22:48:19Z")

</div>

I am working inside a Pluto notebook with WGLMakie and I have 3D volumes that I scrolling through using a PlutoUI.Slider and heatmap(volume\[:, :, b\]) where b is a Slider element. I have a label (segmentation) that I want…

---

## [MethodError: No Method Matching Learning Curve](https://discourse.julialang.org/t/methoderror-no-method-matching-learning-curve/65046)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 10:33pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-learning-curve/65046 "2021-07-22T22:33:32Z")

</div>

Hello Everyone: I am attempting to run: curve\_clf = MLJ.learning\_curve(r\_clf, feat, targ, range=r\_clf, resampling=MLJ.Holdout(fraction\_train=0.8), measure=MLJ.cross\_entropy) But am encounte…

---

## [LightHouse.jl Implementation](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 10:29pm UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051 "2021-07-22T22:29:50Z")

</div>

Good Day: II am attempting to create an ROC\_CURVE with Lighthouse.jl. I am attempting to generate one with the MLJ.@load\_boston dataset. My general questions are: How do I designate class? names(df)? Should I: cl…

---

## [What's logic/rationale behind \`parse(Int, some\_str)\` vs allowing \`Int(some\_str)\`?](https://discourse.julialang.org/t/whats-logic-rationale-behind-parse-int-some-str-vs-allowing-int-some-str/64249)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 13\
**Last updated:** [July 22, 2021, 10:29pm UTC](https://discourse.julialang.org/t/whats-logic-rationale-behind-parse-int-some-str-vs-allowing-int-some-str/64249 "2021-07-22T22:29:02Z")

</div>

I am sure there is a rationale. But we face some issues at work as we developed some casting action but “casting” from int to string is not allowed. So I bought up this example in Julia. So I am not sure what’s the rat…

---

## [Best Reference for teaching Julia to Data Scientists](https://discourse.julialang.org/t/best-reference-for-teaching-julia-to-data-scientists/65082)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 10:15pm UTC](https://discourse.julialang.org/t/best-reference-for-teaching-julia-to-data-scientists/65082 "2021-07-22T22:15:13Z")

</div>

I will be teaching a semester long upper-level undergraduate course on Julia for Data Science this fall. Is there a particular text anyone would recommend I use with my course? Sincerely, Dale S. Rothman

---

## [Use JuliaMono to fix misaligned benchmarktools histograms](https://discourse.julialang.org/t/use-juliamono-to-fix-misaligned-benchmarktools-histograms/65054)

<div class="topic-metadata">

**Author:** [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Replies:** 14\
**Last updated:** [July 22, 2021, 10:14pm UTC](https://discourse.julialang.org/t/use-juliamono-to-fix-misaligned-benchmarktools-histograms/65054 "2021-07-22T22:14:44Z")

</div>

I’ve recently noticed that the new histograms from BenchmarkTools (very pretty in the console!) are not pretty at all when pasted here on discourse: Most notably, the histogram is often misaligned, rows are squished …

---

## [Making RNG's fast](https://discourse.julialang.org/t/making-rngs-fast/65129)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 4\
**Last updated:** [July 22, 2021, 9:28pm UTC](https://discourse.julialang.org/t/making-rngs-fast/65129 "2021-07-22T21:28:16Z")

</div>

I am playing around with RNG’s, specifically this one: function squares(ctr::UInt64, key::UInt64)::UInt32 y = x = ctr \* key; z = y + key x = x\*x + y; x = (x\>\>32) | (x\<\<32) # round 1 x = x\*x + z; x = (…

---

## [SIMD Complex Numbers](https://discourse.julialang.org/t/simd-complex-numbers/65038)

<div class="topic-metadata">

**Author:** [@danny.s](https://discourse.julialang.org/u/danny.s)\
**Replies:** 19\
**Last updated:** [July 22, 2021, 9:24pm UTC](https://discourse.julialang.org/t/simd-complex-numbers/65038 "2021-07-22T21:24:16Z")

</div>

Hi, I hope this hasn’t been discussed before, but has SIMD support for complex numbers been considered? There are several libraries in C/C++ taking advantage of this. There’s an example of implementation here and vector…

---

## [Parsing big integer as string](https://discourse.julialang.org/t/parsing-big-integer-as-string/65135)

<div class="topic-metadata">

**Author:** [@daviddoij](https://discourse.julialang.org/u/daviddoij)\
**Replies:** 6\
**Last updated:** [July 22, 2021, 8:01pm UTC](https://discourse.julialang.org/t/parsing-big-integer-as-string/65135 "2021-07-22T20:01:16Z")

</div>

Hi there, I’m trying to solve project euler #13 in julia. I have to give the first 10 digits of a humongous integer. To obtain that integer, I have to read line by line a file with really big integers and summing them …

---

## [Maintaining separate Atom install for Juno?](https://discourse.julialang.org/t/maintaining-separate-atom-install-for-juno/30663)

<div class="topic-metadata">

**Author:** [@djoshea](https://discourse.julialang.org/u/djoshea)\
**Replies:** 7\
**Last updated:** [July 22, 2021, 7:39pm UTC](https://discourse.julialang.org/t/maintaining-separate-atom-install-for-juno/30663 "2021-07-22T19:39:03Z")

</div>

Apologies if this has been asked and answered already, wasn’t sure quite what to search for. I’ve gotten Juno successfully up and running in Atom, but since I use Atom regularly in other non-Julia contexts, I find the J…

---

## [Should I use HDF5 to speed up reading image data repeatedly?](https://discourse.julialang.org/t/should-i-use-hdf5-to-speed-up-reading-image-data-repeatedly/57576)

<div class="topic-metadata">

**Author:** [@kimlaberinto](https://discourse.julialang.org/u/kimlaberinto)\
**Replies:** 12\
**Last updated:** [July 22, 2021, 6:45pm UTC](https://discourse.julialang.org/t/should-i-use-hdf5-to-speed-up-reading-image-data-repeatedly/57576 "2021-07-22T18:45:46Z")

</div>

Hi all, I’m trying to speed-up the following piece of code for an art project. I have a collection of png images. All of them together is 25GB+ And in a loop, I need to keep copying an arbitrary pixel in one of the pn…

---

## [Equivalent to matlab diff(x)](https://discourse.julialang.org/t/equivalent-to-matlab-diff-x/64763)

<div class="topic-metadata">

**Author:** [@sekarsum](https://discourse.julialang.org/u/sekarsum)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 6:14pm UTC](https://discourse.julialang.org/t/equivalent-to-matlab-diff-x/64763 "2021-07-22T18:14:19Z")

</div>

I’m trying to find a function in a package or atleast a way to structure the code in order to to take the difference between each element in an array. for example x= (1 1 2 3 5 8 13 21) Note diff(x) is matlab’s y = d…

---

## [Operations with time duration](https://discourse.julialang.org/t/operations-with-time-duration/64983)

<div class="topic-metadata">

**Author:** [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Replies:** 20\
**Last updated:** [July 22, 2021, 4:43pm UTC](https://discourse.julialang.org/t/operations-with-time-duration/64983 "2021-07-22T16:43:11Z")

</div>

I am relatively new to Julia. I don’t see a way to do the following in Julia in an easy way, like en excel… t = 1h5m2s average per Km = t/5 = 13m0s400ms Any help?

---

## [IJulia & PyCall: output buffering](https://discourse.julialang.org/t/ijulia-pycall-output-buffering/26438)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 12\
**Last updated:** [July 22, 2021, 4:50pm UTC](https://discourse.julialang.org/t/ijulia-pycall-output-buffering/26438 "2021-07-22T16:50:18Z")

</div>

I noticed that all output from PyCall is buffered in IJulia till the cell finishes evaluating, which is often extremely inconvenient: one cannot easily track progress of a python computation, if it uses stdout for that. …

---

## [What is the order of element in collect(s::Set)?](https://discourse.julialang.org/t/what-is-the-order-of-element-in-collect-s-set/65094)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 7\
**Last updated:** [July 22, 2021, 3:36pm UTC](https://discourse.julialang.org/t/what-is-the-order-of-element-in-collect-s-set/65094 "2021-07-22T15:36:47Z")

</div>

Does anyone know what governs this? Is it safe to assume that the order is fixed as is multiple call to collect(s) gives the same Array (based on my limited experimentation)?

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

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