# Latest

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

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

**Page:** 1747

---

## [Latex typesetting in Plots with plotly backend?](https://discourse.julialang.org/t/latex-typesetting-in-plots-with-plotly-backend/35545)

<div class="topic-metadata">

**Author:** [@brunopjacob](https://discourse.julialang.org/u/brunopjacob)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 8:12am UTC](https://discourse.julialang.org/t/latex-typesetting-in-plots-with-plotly-backend/35545 "2020-05-15T08:12:12Z")

</div>

I am using Plots.jl and plotly for making plots, but I would like to have my legend, title and labels typed in latex. Using LaTeXStrings and the syntax L"…" works for gr and pyplot backends, but not for plotly. Does anyo…

---

## [Flux: Scalar getindex error](https://discourse.julialang.org/t/flux-scalar-getindex-error/39451)

<div class="topic-metadata">

**Author:** [@Ching\_Lam\_Choi](https://discourse.julialang.org/u/Ching_Lam_Choi)\
**Replies:** 13\
**Last updated:** [May 15, 2020, 2:17pm UTC](https://discourse.julialang.org/t/flux-scalar-getindex-error/39451 "2020-05-15T14:17:22Z")

</div>

I am trying to do optimisation using Flux’s logitbinarycrossentropy function on a fully-convolutional network on GPU: Flux.train!(loss, params(UNet\_model), train\_batch, optimiser) Where loss is defined as: loss(x, y) …

---

## [Show PDF in Julia Notebook & general advises for for jupyterlab extensions](https://discourse.julialang.org/t/show-pdf-in-julia-notebook-general-advises-for-for-jupyterlab-extensions/39466)

<div class="topic-metadata">

**Author:** [@koehlerson](https://discourse.julialang.org/u/koehlerson)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 11:27am UTC](https://discourse.julialang.org/t/show-pdf-in-julia-notebook-general-advises-for-for-jupyterlab-extensions/39466 "2020-05-15T11:27:02Z")

</div>

Hey there, I prepared a JupyterHub Server for a class and I converted old exercise material from matlab into beautiful julia notebooks. Unfortunately, I haven’t found any possibility to view PDF images in the notebook. …

---

## [Getting a list of file names](https://discourse.julialang.org/t/getting-a-list-of-file-names/39492)

<div class="topic-metadata">

**Author:** [@eslb82](https://discourse.julialang.org/u/eslb82)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 11:26am UTC](https://discourse.julialang.org/t/getting-a-list-of-file-names/39492 "2020-05-15T11:26:28Z")

</div>

I’ve been asked to convert some code from Matlab to Julia, and I am stuck right at the beginning with some Regex issues I want the equivalent of file\_name = dir(‘A\*.mmode’) file\_name = {file\_name.name} In Matlab, thi…

---

## [How to specify the element type of the vector that is returned](https://discourse.julialang.org/t/how-to-specify-the-element-type-of-the-vector-that-is-returned/39498)

<div class="topic-metadata">

**Author:** [@A.U.M](https://discourse.julialang.org/u/A.U.M)\
**Replies:** 11\
**Last updated:** [May 15, 2020, 11:15am UTC](https://discourse.julialang.org/t/how-to-specify-the-element-type-of-the-vector-that-is-returned/39498 "2020-05-15T11:15:48Z")

</div>

Hello, I want to Modify this macro @collect such that I can specify the element type of the vector that is returned. any ideas? macro collect(expr::Expr) quote let v = Vector() function $(esc…

---

## [Functions usage](https://discourse.julialang.org/t/functions-usage/39500)

<div class="topic-metadata">

**Author:** [@optimist](https://discourse.julialang.org/u/optimist)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 9:42am UTC](https://discourse.julialang.org/t/functions-usage/39500 "2020-05-15T09:42:19Z")

</div>

Hello, I am using functions to read data, apply a certain function and then use a function to write results. I have not been able to figure out the correct way of passing one function as an argument to another function, …

---

## [Can one make a constant with a parametric type?](https://discourse.julialang.org/t/can-one-make-a-constant-with-a-parametric-type/39444)

<div class="topic-metadata">

**Author:** [@nben](https://discourse.julialang.org/u/nben)\
**Replies:** 12\
**Last updated:** [May 15, 2020, 8:30am UTC](https://discourse.julialang.org/t/can-one-make-a-constant-with-a-parametric-type/39444 "2020-05-15T08:30:57Z")

</div>

Is it possible to make a type-parameterized constant? An example of when this is useful is with immutable containers. If you have an ImmutableVector{T} class, ideally ImmutableVector{T}() === ImmutableVector{T}()—that is…

---

## [Build requirements: Distro package lists](https://discourse.julialang.org/t/build-requirements-distro-package-lists/30781)

<div class="topic-metadata">

**Author:** [@taqtiqa-mark](https://discourse.julialang.org/u/taqtiqa-mark)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 12:48am UTC](https://discourse.julialang.org/t/build-requirements-distro-package-lists/30781 "2020-05-15T00:48:07Z")

</div>

Hi, Would appreciate any help on the following: Context: Writing the julia-install script to build (and install) versions of Julia (\>= v1.0.0) I have the build test scaffolding in place to allow builds of as many dist…

---

## [Call to \`Distributed.remotecall\_fetch\` never returns?](https://discourse.julialang.org/t/call-to-distributed-remotecall-fetch-never-returns/39408)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 12:15am UTC](https://discourse.julialang.org/t/call-to-distributed-remotecall-fetch-never-returns/39408 "2020-05-15T00:15:40Z")

</div>

I am writing a Julia script for a scientific experiment and I want to put a time limit in calls made by the script. To solve this I tried to use this small package from @ararslan. The package works by creating a new work…

---

## [Non critical type-instability?](https://discourse.julialang.org/t/non-critical-type-instability/39486)

<div class="topic-metadata">

**Author:** [@Bigorneau](https://discourse.julialang.org/u/Bigorneau)\
**Replies:** 9\
**Last updated:** [May 14, 2020, 11:01pm UTC](https://discourse.julialang.org/t/non-critical-type-instability/39486 "2020-05-14T23:01:10Z")

</div>

Suppose the following struct A{T} v::Vector{T} end Base.convert(::Type{A{T}}, a::A{S}) where {T,S} = A(convert(Vector{T}, a.v)) Base.promote\_rule(::Type{A{T}}, ::Type{A{S}}) where {T,S} = A{promote\_type(T,S)} functi…

---

## [Truncated basis ApproxFun](https://discourse.julialang.org/t/truncated-basis-approxfun/39495)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 10:57pm UTC](https://discourse.julialang.org/t/truncated-basis-approxfun/39495 "2020-05-14T22:57:13Z")

</div>

Hello, I would like to use ApproxFun.jl for a truncated FFT. Is it possible to create direct and inverse Fourier transforms spanned by a sparse basis? This is what I have in mind: using ApproxFun S = Fourier() n = …

---

## [Creating struct to initialize array of arrays with function to push elements into that array](https://discourse.julialang.org/t/creating-struct-to-initialize-array-of-arrays-with-function-to-push-elements-into-that-array/39485)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 12\
**Last updated:** [May 14, 2020, 10:07pm UTC](https://discourse.julialang.org/t/creating-struct-to-initialize-array-of-arrays-with-function-to-push-elements-into-that-array/39485 "2020-05-14T22:07:35Z")

</div>

I want to create a function to push data into struct array. Here’s my code: mutable struct graph{T} data::AbstractArray{Array{T,1},1} # addEdge(x,y)=push!(data\[x\],y) that doesn't work end # Creating method to assig…

---

## [QR-like factorization preserving type?](https://discourse.julialang.org/t/qr-like-factorization-preserving-type/38129)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 12\
**Last updated:** [May 14, 2020, 9:17pm UTC](https://discourse.julialang.org/t/qr-like-factorization-preserving-type/38129 "2020-05-14T21:17:04Z")

</div>

Is there a factorization in the LinearAlgebra system which works similar to QR factorization in factoring A into A= T\*R where T is a square, full rank matrix while R is an upper triangular matrix? In particular, R shoul…

---

## [Editing axis labels in Makie recipe errors](https://discourse.julialang.org/t/editing-axis-labels-in-makie-recipe-errors/39490)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 8:40pm UTC](https://discourse.julialang.org/t/editing-axis-labels-in-makie-recipe-errors/39490 "2020-05-14T20:40:46Z")

</div>

Hi, I came up with the following process for plotting a type of plot I want to include in a new package as a recipe: heights = cumsum(KmerAnalysis.\_find\_plottable\_subset(spec); dims = 2) s = barplot(\[Point2f0(i - 1, j) …

---

## [Julia 1.4 fails to add local package](https://discourse.julialang.org/t/julia-1-4-fails-to-add-local-package/39326)

<div class="topic-metadata">

**Author:** [@alkoedl](https://discourse.julialang.org/u/alkoedl)\
**Replies:** 8\
**Last updated:** [May 14, 2020, 8:18pm UTC](https://discourse.julialang.org/t/julia-1-4-fails-to-add-local-package/39326 "2020-05-14T20:18:38Z")

</div>

With Julia 1.3.1 I can add a Julia package which is hosted on my local git server with IP 10.20.30.40 by doing pkg\> add "user@10.20.30.40:PackageName.jl" In Julia 1.4.0 and 1.4.1 the above throws the error ERROR: Path…

---

## [Permanent position as (Senior) Research Software Developer at UCL](https://discourse.julialang.org/t/permanent-position-as-senior-research-software-developer-at-ucl/39401)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 10\
**Last updated:** [May 14, 2020, 7:54pm UTC](https://discourse.julialang.org/t/permanent-position-as-senior-research-software-developer-at-ucl/39401 "2020-05-14T19:54:23Z")

</div>

My group at UCL is recruiting a new permanent generalist research software developer (also known as research software engineer). Even though we usually employ a range of programming languages in our projects, the job de…

---

## [Loading only what you need](https://discourse.julialang.org/t/loading-only-what-you-need/39465)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 6\
**Last updated:** [May 14, 2020, 7:53pm UTC](https://discourse.julialang.org/t/loading-only-what-you-need/39465 "2020-05-14T19:53:00Z")

</div>

I was looking at SpecialFunctions.jl which contains a bunch of functions which are fairly independent and thinking: if I just want to only use one or two specific functions, what’s the overhead vs just copy-pasting that …

---

## [Solving a second order coupled BVP with boundaries at infinity using DifferentialEquations.jl](https://discourse.julialang.org/t/solving-a-second-order-coupled-bvp-with-boundaries-at-infinity-using-differentialequations-jl/38168)

<div class="topic-metadata">

**Author:** [@JonathanLoz](https://discourse.julialang.org/u/JonathanLoz)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 7:32pm UTC](https://discourse.julialang.org/t/solving-a-second-order-coupled-bvp-with-boundaries-at-infinity-using-differentialequations-jl/38168 "2020-05-14T19:32:16Z")

</div>

I’m trying to solve the following coupled differential equations in Julia by using DifferentialEquations.jl and BoundaryValueDiffEq.jl \\begin{align} \\frac{d^2f}{du^2}+\\frac{1}{u}\\frac{df}{du}-\\frac{n^2}{u^2}(1-a)^2f-\\f…

---

## [\[ANN\] Turing.jl 0.12.0 release](https://discourse.julialang.org/t/ann-turing-jl-0-12-0-release/38927)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 6:31pm UTC](https://discourse.julialang.org/t/ann-turing-jl-0-12-0-release/38927 "2020-05-14T18:31:30Z")

</div>

Hey folks. Turing 0.12.0 is out, and it comes with a lovely set of changes and updates. There are some deprecations and API changes, so please read carefully if 1) you use custom distributions or 2) you use the paralle…

---

## [Production Package Installation Process - Install with user 'a', Access from user 'b'](https://discourse.julialang.org/t/production-package-installation-process-install-with-user-a-access-from-user-b/39422)

<div class="topic-metadata">

**Author:** [@eyedia](https://discourse.julialang.org/u/eyedia)\
**Replies:** 9\
**Last updated:** [May 14, 2020, 4:05pm UTC](https://discourse.julialang.org/t/production-package-installation-process-install-with-user-a-access-from-user-b/39422 "2020-05-14T16:05:58Z")

</div>

Here is the steps on production environment (Very standard) Deployment process \[one time task\]: Copy source code and install all packages → this is done by sudo user, lets say “sshuser” Run time our packages are execut…

---

## [Remote julia with gateway ssh](https://discourse.julialang.org/t/remote-julia-with-gateway-ssh/39457)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [May 14, 2020, 2:57pm UTC](https://discourse.julialang.org/t/remote-julia-with-gateway-ssh/39457 "2020-05-14T14:57:39Z")

</div>

Hello, I would like to connect to a computer in my university network with Juno to use a remote session. Currently I’m able to do it using a Ubuntu submachine on my local Windows. The thing is I have to go through a gat…

---

## [Calculate λ with known cdf](https://discourse.julialang.org/t/calculate-with-known-cdf/39463)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 1:19pm UTC](https://discourse.julialang.org/t/calculate-with-known-cdf/39463 "2020-05-14T13:19:55Z")

</div>

X follows Poisson distribution, X = Poisson(λ) , how to calculate λ if we know the probability of x being 3 or less is 0.82, that is cdf(X,3) = 0.82 . is there any syntax or solver?

---

## [RGB image operations: addition works, multiplication doesn't?](https://discourse.julialang.org/t/rgb-image-operations-addition-works-multiplication-doesnt/39383)

<div class="topic-metadata">

**Author:** [@Klaas\_Pauly](https://discourse.julialang.org/u/Klaas_Pauly)\
**Replies:** 7\
**Last updated:** [May 14, 2020, 12:38pm UTC](https://discourse.julialang.org/t/rgb-image-operations-addition-works-multiplication-doesnt/39383 "2020-05-14T12:38:12Z")

</div>

Hi all I’m new to Julia, working on a script to perform flat field correction on images (as an introductory project, coming from python). using TestImages, Images, Statistics img = testimage("mandrill") Now, looking a…

---

## [Some clarity on modules and incremental compilation/loading times](https://discourse.julialang.org/t/some-clarity-on-modules-and-incremental-compilation-loading-times/39449)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 6\
**Last updated:** [May 14, 2020, 12:20pm UTC](https://discourse.julialang.org/t/some-clarity-on-modules-and-incremental-compilation-loading-times/39449 "2020-05-14T12:20:52Z")

</div>

Hi all, I’ve read a bunch concerning modules and such, but haven’t managed to identify the best practice for my situation. My package currently has something like this: module Example include("file1.jl") # Some methods…

---

## [Is it possible for the MAT package to export multiple data sets using a single call of the \`write\` command?](https://discourse.julialang.org/t/is-it-possible-for-the-mat-package-to-export-multiple-data-sets-using-a-single-call-of-the-write-command/9716)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 11:04am UTC](https://discourse.julialang.org/t/is-it-possible-for-the-mat-package-to-export-multiple-data-sets-using-a-single-call-of-the-write-command/9716 "2020-05-14T11:04:02Z")

</div>

I was expecting to have something like: write(file, "varname1", variable1, "varname2", variable2) Or even export all the data in the workspace in one batch?

---

## [Code that works fine locally causes an error on a cluster](https://discourse.julialang.org/t/code-that-works-fine-locally-causes-an-error-on-a-cluster/39452)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 10:54am UTC](https://discourse.julialang.org/t/code-that-works-fine-locally-causes-an-error-on-a-cluster/39452 "2020-05-14T10:54:06Z")

</div>

Hi, so I have a function in my code to calculate the ROC AUC following an experiment, this has worked fine for me and continues to work fine locally but on our cluster I get the following error: ERROR: LoadError: On wor…

---

## [Flux convolutional layer not type stable](https://discourse.julialang.org/t/flux-convolutional-layer-not-type-stable/39454)

<div class="topic-metadata">

**Author:** [@LeoKoo](https://discourse.julialang.org/u/LeoKoo)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 9:55am UTC](https://discourse.julialang.org/t/flux-convolutional-layer-not-type-stable/39454 "2020-05-14T09:55:18Z")

</div>

In my spare time I am trying to implement YOLOv3 using Flux. I believe I’ve successfully defined the model, leaving me to find a way to translate the YOLOv3 pretrained weights into Flux. However, I have noticed, using ra…

---

## [Yolo darknet](https://discourse.julialang.org/t/yolo-darknet/21454)

<div class="topic-metadata">

**Author:** [@yash](https://discourse.julialang.org/u/yash)\
**Replies:** 6\
**Last updated:** [March 10, 2019, 12:24am UTC](https://discourse.julialang.org/t/yolo-darknet/21454 "2019-03-10T00:24:55Z")

</div>

YOLO stands for “You only look once” is currently is state-of-the-art for real time object recognition. As compared other algorithm like R CNN , mask RCNN and other Computer vision methods it is very fast to detect mult…

---

## [Incompatibitly with latest versions of DataFrames and CSV](https://discourse.julialang.org/t/incompatibitly-with-latest-versions-of-dataframes-and-csv/39443)

<div class="topic-metadata">

**Author:** [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 7:31am UTC](https://discourse.julialang.org/t/incompatibitly-with-latest-versions-of-dataframes-and-csv/39443 "2020-05-14T07:31:41Z")

</div>

I seem to be stuck in a cycle, trying to install the latest versions of DataFrames and CSV. Can anyone suggest a way out, or how to further diagnose the issue? (v1.4) pkg\> add DataFrames@0.21 Resolving package versio…

---

## [How to enable type inference on own types similar to what julia supports for nothing and missing?](https://discourse.julialang.org/t/how-to-enable-type-inference-on-own-types-similar-to-what-julia-supports-for-nothing-and-missing/39418)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 4:44am UTC](https://discourse.julialang.org/t/how-to-enable-type-inference-on-own-types-similar-to-what-julia-supports-for-nothing-and-missing/39418 "2020-05-14T04:44:25Z")

</div>

I try to understand when to use Union types versus constructing custom type hierarchies. One peculiarity is how nothing / missing behave like you would hope for julia\> f(x) = isodd(x) ? nothing : Some(x) julia\> f.(\[1,2…

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

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