# Latest

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

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

**Page:** 1754

---

## [Showing shaded areas in StatPlots](https://discourse.julialang.org/t/showing-shaded-areas-in-statplots/24803)

<div class="topic-metadata">

**Author:** [@nik.ltin](https://discourse.julialang.org/u/nik.ltin)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 7:40am UTC](https://discourse.julialang.org/t/showing-shaded-areas-in-statplots/24803 "2020-05-08T07:40:16Z")

</div>

Hi everyone. I have a time-series dataset which I’ve plotted in Julia using StatPlots.jl, and now would like to impose these grey bars on the plot to emphasize certain periods of time (such as wars/recessions etc.), I’ve…

---

## [Merits or demerits of installing methods: official, debian or snap?](https://discourse.julialang.org/t/merits-or-demerits-of-installing-methods-official-debian-or-snap/39000)

<div class="topic-metadata">

**Author:** [@suiato](https://discourse.julialang.org/u/suiato)\
**Replies:** 4\
**Last updated:** [May 8, 2020, 6:09am UTC](https://discourse.julialang.org/t/merits-or-demerits-of-installing-methods-official-debian-or-snap/39000 "2020-05-08T06:09:37Z")

</div>

I’m thinking of installing Julia on Ubuntu 20.04, and wonder which method to use: apt-get install julia snap install julia --classic tar xvzf (downloaded official tgz file) What are the merits or demerits of each met…

---

## [JuliaCN annual (virtual) workshop 2020](https://discourse.julialang.org/t/juliacn-annual-virtual-workshop-2020/38860)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 4:51am UTC](https://discourse.julialang.org/t/juliacn-annual-virtual-workshop-2020/38860 "2020-05-08T04:51:01Z")

</div>

I’m pleased to announce JuliaCN’s annual workshop. Like many other events this year, it will be virtual this year as well. We are planning to host this workshop through live streaming on Bilibili from 2020/08/18 to 2020/…

---

## [Set performance question](https://discourse.julialang.org/t/set-performance-question/38989)

<div class="topic-metadata">

**Author:** [@Charles\_Parker](https://discourse.julialang.org/u/Charles_Parker)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 1:37am UTC](https://discourse.julialang.org/t/set-performance-question/38989 "2020-05-08T01:37:44Z")

</div>

The Packt book Julia 1.0 Programming Complete Reference Guide has an example on page 95 which I assumed was a misprint. x = Set(collect(1:100)) @time 2 in x 0.003186 seconds … x2 = Set(collect(1:1000000)) @time 2 i…

---

## [How to set the length of fft](https://discourse.julialang.org/t/how-to-set-the-length-of-fft/38885)

<div class="topic-metadata">

**Author:** [@Andy.Yang](https://discourse.julialang.org/u/Andy.Yang)\
**Replies:** 26\
**Last updated:** [May 8, 2020, 1:03am UTC](https://discourse.julialang.org/t/how-to-set-the-length-of-fft/38885 "2020-05-08T01:03:35Z")

</div>

Hi, I can’t find how to set the length of FFTW.fft, just like python or matlab. Maybe this’s a naive question, but it troubles me a littele. Thanks for your time.

---

## [Limiting the maximum number of parallel threads with @spawn, as with @threads](https://discourse.julialang.org/t/limiting-the-maximum-number-of-parallel-threads-with-spawn-as-with-threads/38986)

<div class="topic-metadata">

**Author:** [@gipert](https://discourse.julialang.org/u/gipert)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 12:46am UTC](https://discourse.julialang.org/t/limiting-the-maximum-number-of-parallel-threads-with-spawn-as-with-threads/38986 "2020-05-08T00:46:41Z")

</div>

I would like to write a parallel for loop over files in a directory tree, open them and do some long computation. I started writing something like this: @threads for (root, dirs, files) in walkdir(path) open\_and\_proce…

---

## [Solve Constrained Nonlinear System (?)](https://discourse.julialang.org/t/solve-constrained-nonlinear-system/38921)

<div class="topic-metadata">

**Author:** [@duncanam](https://discourse.julialang.org/u/duncanam)\
**Replies:** 9\
**Last updated:** [May 7, 2020, 10:04pm UTC](https://discourse.julialang.org/t/solve-constrained-nonlinear-system/38921 "2020-05-07T22:04:05Z")

</div>

I’m a little sad, because it seems like we don’t have any packages for solving nonlinear equations (not odes, not pdes) on a domain range. An equivalent function in the MATLAB world is vpasolve() in which I can feed it a…

---

## [Is it possible to make this function faster?](https://discourse.julialang.org/t/is-it-possible-to-make-this-function-faster/38434)

<div class="topic-metadata">

**Author:** [@alvrg](https://discourse.julialang.org/u/alvrg)\
**Replies:** 11\
**Last updated:** [May 7, 2020, 9:32pm UTC](https://discourse.julialang.org/t/is-it-possible-to-make-this-function-faster/38434 "2020-05-07T21:32:45Z")

</div>

Hi all: I have a function foo that iterates through a ComplexF64 vector A. For each element A\[i\], it computes all distances |A\[i\] - A\[j\]| in the complex plane and then stores in B\[i\] the ratio of the minimum distance by…

---

## [Running for loop in parallel and appending result to vector](https://discourse.julialang.org/t/running-for-loop-in-parallel-and-appending-result-to-vector/20487)

<div class="topic-metadata">

**Author:** [@gregory](https://discourse.julialang.org/u/gregory)\
**Replies:** 19\
**Last updated:** [May 7, 2020, 8:49pm UTC](https://discourse.julialang.org/t/running-for-loop-in-parallel-and-appending-result-to-vector/20487 "2020-05-07T20:49:32Z")

</div>

I have the following snippet of code where I am looping over and would like to append/push to curetime or progressiontime based on conditions met. As I want to increase the size of the loop it would be helpful to run thi…

---

## [Multi-Threading Bug on Windows: setting Threads.nthreads() = 6 for using BlackBoxOptim](https://discourse.julialang.org/t/multi-threading-bug-on-windows-setting-threads-nthreads-6-for-using-blackboxoptim/38922)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 9\
**Last updated:** [May 7, 2020, 8:48pm UTC](https://discourse.julialang.org/t/multi-threading-bug-on-windows-setting-threads-nthreads-6-for-using-blackboxoptim/38922 "2020-05-07T20:48:34Z")

</div>

Hallo, I am trying to take advantage of Multithreaded and Parallel Function Evaluation of BlackBoxOptim.jl which requires Threads.nthreads() \> 2 by using Julia 1.4.1 BlackBoxOptim.jl Nevertheless on Windows 10 I am no…

---

## [Help with first non-trivial Turing example](https://discourse.julialang.org/t/help-with-first-non-trivial-turing-example/38964)

<div class="topic-metadata">

**Author:** [@bdeonovic](https://discourse.julialang.org/u/bdeonovic)\
**Replies:** 17\
**Last updated:** [May 7, 2020, 8:29pm UTC](https://discourse.julialang.org/t/help-with-first-non-trivial-turing-example/38964 "2020-05-07T20:29:10Z")

</div>

I’d like some help with writing my first example in Turing.jl. I’m not even sure if this model is possible to be expressed in the Turing modeling framework. Below is the code I have so far and the current error: # Impor…

---

## [Background running of Julia on ubuntu](https://discourse.julialang.org/t/background-running-of-julia-on-ubuntu/38925)

<div class="topic-metadata">

**Author:** [@Jing\_Zhang](https://discourse.julialang.org/u/Jing_Zhang)\
**Replies:** 17\
**Last updated:** [May 7, 2020, 7:53pm UTC](https://discourse.julialang.org/t/background-running-of-julia-on-ubuntu/38925 "2020-05-07T19:53:54Z")

</div>

Dear Julia users, I am on a ubuntu machine. I want to run my Julia codes “main.jl” in background. What commend to realize this? Something like “nohup Julia command main.jl &”? Thanks a lot!

---

## [Linux install problems - CXXABI\_1.3.9 not found](https://discourse.julialang.org/t/linux-install-problems-cxxabi-1-3-9-not-found/38897)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 7\
**Last updated:** [May 7, 2020, 7:48pm UTC](https://discourse.julialang.org/t/linux-install-problems-cxxabi-1-3-9-not-found/38897 "2020-05-07T19:48:47Z")

</div>

I just did clean installations of Julia and Atom on a CentOS 7 box. I installed Julia in my home directory, but used the system yum setup to install Atom, following instructions in the Flight Manual. I then follow inst…

---

## [Request Julia Support for GitHub Codespaces - Spread the word!](https://discourse.julialang.org/t/request-julia-support-for-github-codespaces-spread-the-word/38974)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 7:13pm UTC](https://discourse.julialang.org/t/request-julia-support-for-github-codespaces-spread-the-word/38974 "2020-05-07T19:13:16Z")

</div>

Hey all, it would be awesome to get Julia supported in GitHub’s new Codespaces out of the box (it’s an online IDE where you can edit and program right in a repo). If you are interested, sign up for the beta and request …

---

## ["Unsatisfiable requirements" when local packages use local packages (fixed in v1.4)](https://discourse.julialang.org/t/unsatisfiable-requirements-when-local-packages-use-local-packages-fixed-in-v1-4/36807)

<div class="topic-metadata">

**Author:** [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Replies:** 12\
**Last updated:** [May 7, 2020, 6:54pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-local-packages-use-local-packages-fixed-in-v1-4/36807 "2020-05-07T18:54:08Z")

</div>

I have a project with a few local packages. Some packages use dev path/to/Package to use another package, but this only works for one level. That is, if activate PkgB and do dev path/to/PkgA, then if we activate PkgC and…

---

## [Plot range not working as excpected](https://discourse.julialang.org/t/plot-range-not-working-as-excpected/38978)

<div class="topic-metadata">

**Author:** [@Eris](https://discourse.julialang.org/u/Eris)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 6:44pm UTC](https://discourse.julialang.org/t/plot-range-not-working-as-excpected/38978 "2020-05-07T18:44:14Z")

</div>

I’m plotting a divergent function and I want the graph to reflect a certain value of y. For example the function y=-log(1-x) approaches infinity at x=1 however the output shows that it stops before y=10 using Plots f(…

---

## [Outdated documentation](https://discourse.julialang.org/t/outdated-documentation/38972)

<div class="topic-metadata">

**Author:** [@Laszlo\_Nagy](https://discourse.julialang.org/u/Laszlo_Nagy)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 5:33pm UTC](https://discourse.julialang.org/t/outdated-documentation/38972 "2020-05-07T17:33:05Z")

</div>

The example at the end of Constructors · The Julia Language does not work for me as shown. I’m using Julia 1.4. According to the documentation this object construction should throw a MethodError, but it doesn’t: juli…

---

## [Solver Cplex](https://discourse.julialang.org/t/solver-cplex/38915)

<div class="topic-metadata">

**Author:** [@lausilvag](https://discourse.julialang.org/u/lausilvag)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 4:12pm UTC](https://discourse.julialang.org/t/solver-cplex/38915 "2020-05-07T16:12:29Z")

</div>

Hi!! Our binary programming problem has an objective function B. \* x, where B is an mxn matrix and x is an mxn variable matrix. Some of the B values will not exist in the problem to be solved. Question: How can I assi…

---

## [Using a machine file on a cluster but also propagating environment to the remote workers](https://discourse.julialang.org/t/using-a-machine-file-on-a-cluster-but-also-propagating-environment-to-the-remote-workers/38948)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 15\
**Last updated:** [May 7, 2020, 3:49pm UTC](https://discourse.julialang.org/t/using-a-machine-file-on-a-cluster-but-also-propagating-environment-to-the-remote-workers/38948 "2020-05-07T15:49:36Z")

</div>

Hi, I am trying to run some distributed code on a slurm cluster using an sbatch file as below: #!/bin/bash #SBATCH --nodes=1 #SBATCH --tasks-per-node=28 #SBATCH --mem-per-cpu=4571 #SBATCH --time=24:00:00 #SBATCH -o slur…

---

## [Understanding type parameters](https://discourse.julialang.org/t/understanding-type-parameters/38910)

<div class="topic-metadata">

**Author:** [@Laszlo\_Nagy](https://discourse.julialang.org/u/Laszlo_Nagy)\
**Replies:** 6\
**Last updated:** [May 7, 2020, 3:37pm UTC](https://discourse.julialang.org/t/understanding-type-parameters/38910 "2020-05-07T15:37:34Z")

</div>

Please help me understand this. # unparametrized type julia\> struct Point1 x:: Int64 y:: Int64 end julia\> Point1(1,2) Point1(1, 2) # OK # parametrized type julia\> struct Point2{T} …

---

## [I recive error when add pkg in julia](https://discourse.julialang.org/t/i-recive-error-when-add-pkg-in-julia/38959)

<div class="topic-metadata">

**Author:** [@Jasmine](https://discourse.julialang.org/u/Jasmine)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 2:30pm UTC](https://discourse.julialang.org/t/i-recive-error-when-add-pkg-in-julia/38959 "2020-05-07T14:30:40Z")

</div>

---

## [Cannot subtype of Distribution](https://discourse.julialang.org/t/cannot-subtype-of-distribution/38954)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 2:05pm UTC](https://discourse.julialang.org/t/cannot-subtype-of-distribution/38954 "2020-05-07T14:05:27Z")

</div>

I don’t get why I cannot create custom Distribution subtypes: using Distributions julia\> struct Foo \<: ContinuousUnivariateDistribution end julia\> Foo isa Distribution false julia\> Foo isa ContinuousUnivariateD…

---

## [Can anyone help me to add TensorFlow?](https://discourse.julialang.org/t/can-anyone-help-me-to-add-tensorflow/38957)

<div class="topic-metadata">

**Author:** [@Narasimman17](https://discourse.julialang.org/u/Narasimman17)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 2:02pm UTC](https://discourse.julialang.org/t/can-anyone-help-me-to-add-tensorflow/38957 "2020-05-07T14:02:01Z")

</div>

Can anyone help me with this issue? I guess the python version I have and the TensorFlow version that I’m trying to install is incompatible.

---

## [Inexact error when plotting, possibly due to small value changes?](https://discourse.julialang.org/t/inexact-error-when-plotting-possibly-due-to-small-value-changes/38953)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 1:36pm UTC](https://discourse.julialang.org/t/inexact-error-when-plotting-possibly-due-to-small-value-changes/38953 "2020-05-07T13:36:02Z")

</div>

Please see the following MWE below for an issue I am currently facing, I have raised an issue on the Plots.jl repo as well but thought I would ask the community in case people have seen similar bugs, I noted some similar…

---

## [Struggling with publishing a package](https://discourse.julialang.org/t/struggling-with-publishing-a-package/38952)

<div class="topic-metadata">

**Author:** [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 1:24pm UTC](https://discourse.julialang.org/t/struggling-with-publishing-a-package/38952 "2020-05-07T13:24:18Z")

</div>

I try to register a package via JuliaHub. Whatever I do every time I get the message Tag with a different commit already exists for the version mentioned in (Julia)Project.toml. The package in question is AppliSales whi…

---

## [Read CSV and change rows later](https://discourse.julialang.org/t/read-csv-and-change-rows-later/38883)

<div class="topic-metadata">

**Author:** [@stej](https://discourse.julialang.org/u/stej)\
**Replies:** 12\
**Last updated:** [May 7, 2020, 12:58pm UTC](https://discourse.julialang.org/t/read-csv-and-change-rows-later/38883 "2020-05-07T12:58:06Z")

</div>

Hi all, I’m trying a trivial task. Read CSV and for each row - if a value in given column is not missing, process the column. Something like this: batches = CSV.File( file; header = tr…

---

## [Trying to resolve a BVProblem](https://discourse.julialang.org/t/trying-to-resolve-a-bvproblem/38950)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 12:45pm UTC](https://discourse.julialang.org/t/trying-to-resolve-a-bvproblem/38950 "2020-05-07T12:45:04Z")

</div>

Hello dear all, I am currently trying to resolve a BVProblem. Thus I came back to an example given in the Boundary Value Problems section. If I use the code as follows: using BoundaryValueDiffEq using OrdinaryDiffEq, …

---

## [Can I have some kind of a memory leak when an exception is being thrown?](https://discourse.julialang.org/t/can-i-have-some-kind-of-a-memory-leak-when-an-exception-is-being-thrown/38939)

<div class="topic-metadata">

**Author:** [@Paveloom](https://discourse.julialang.org/u/Paveloom)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:15am UTC](https://discourse.julialang.org/t/can-i-have-some-kind-of-a-memory-leak-when-an-exception-is-being-thrown/38939 "2020-05-07T11:15:34Z")

</div>

For example, suppose I have a struct with some array variables, and I read data in it from a file, variable by variable. What if I throw a custom exception (without catching) after unsuccessful attempt of reading the thi…

---

## [Julia or Python: Which is faster for Deep Learning](https://discourse.julialang.org/t/julia-or-python-which-is-faster-for-deep-learning/38935)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 11:11am UTC](https://discourse.julialang.org/t/julia-or-python-which-is-faster-for-deep-learning/38935 "2020-05-07T11:11:04Z")

</div>

Hi everyone. Is there any difference in the time taken by a julia code and python code to complete 100 epochs? For example, suppose I’m trying to do mnist classification for 100 epochs. I wrote the code in python using…

---

## [Deleting variables in quadratic constraints in JuMP](https://discourse.julialang.org/t/deleting-variables-in-quadratic-constraints-in-jump/38929)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 10:43am UTC](https://discourse.julialang.org/t/deleting-variables-in-quadratic-constraints-in-jump/38929 "2020-05-07T10:43:36Z")

</div>

It appears that when a variable is deleted in JuMP and it is part of a quadratic term, the entire term is dropped: julia\> using JuMP; m = Model(); @variable(m, x\[1:2\]); julia\> @constraint(m, c, 2 \* x\[1\] \* x\[2\] == 0) c …

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

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