# Latest

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

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

**Page:** 1847

---

## [\[ANN\] PrettyTables.jl now has LaTeX backend](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 22\
**Last updated:** [January 12, 2020, 10:47pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990 "2020-01-12T22:47:39Z")

</div>

Hi! After a while, I finally added an initial version o LaTeX backend to PrettyTables.jl. It is not published yet. Thus you will have to use dev. I want some feedback about it. Unfortunately there is not a documentatio…

---

## [Delete\_function?](https://discourse.julialang.org/t/delete-function/33278)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 3\
**Last updated:** [January 12, 2020, 9:59pm UTC](https://discourse.julialang.org/t/delete-function/33278 "2020-01-12T21:59:49Z")

</div>

Is there an extension of Base.delete\_method that deletes all registered methods belonging to a function?

---

## [Julia recomended directory for install](https://discourse.julialang.org/t/julia-recomended-directory-for-install/33275)

<div class="topic-metadata">

**Author:** [@nevermind](https://discourse.julialang.org/u/nevermind)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 9:52pm UTC](https://discourse.julialang.org/t/julia-recomended-directory-for-install/33275 "2020-01-12T21:52:05Z")

</div>

I have just obtained the Julia code 1.3… and have un-tarred it. Now I am curious as to a recommended directory for installation. Am running Linux Mint Debian Edition LMDE, latest version. suggestions and why?

---

## [Error, install ZMQ, Julia1.3.1](https://discourse.julialang.org/t/error-install-zmq-julia1-3-1/33188)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 1\
**Last updated:** [January 12, 2020, 9:50pm UTC](https://discourse.julialang.org/t/error-install-zmq-julia1-3-1/33188 "2020-01-12T21:50:34Z")

</div>

I got the following error while installing ZMQ.jl. Could anyone help? System information. Julia Version 1.3.1 Commit 2d5741174c (2019-12-30 21:36 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R) C…

---

## [Scoping rules for try - catch - finally](https://discourse.julialang.org/t/scoping-rules-for-try-catch-finally/32617)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 21\
**Last updated:** [January 12, 2020, 9:40pm UTC](https://discourse.julialang.org/t/scoping-rules-for-try-catch-finally/32617 "2020-01-12T21:40:26Z")

</div>

I understand that try-catch-finally construct introduces ist own local scope (soft local scope according to https://michaelhatherly.github.io/julia-docs/en/latest/manual/variables-and-scoping.html ). Now I want to do som…

---

## [Why doesn't this type substitution work?](https://discourse.julialang.org/t/why-doesnt-this-type-substitution-work/33273)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 1\
**Last updated:** [January 12, 2020, 7:26pm UTC](https://discourse.julialang.org/t/why-doesnt-this-type-substitution-work/33273 "2020-01-12T19:26:39Z")

</div>

abstract type MM{T,U,V} end function f(args...) typename = (vtypedecl{T, U, V} = MM{T, U, CV} where CV \<: V) typename{args...} end julia\> f(Int,Number,Float64) ERROR: UndefVarError: V not defined …

---

## [Is it possible to define a type that takes a variable number of type parameters](https://discourse.julialang.org/t/is-it-possible-to-define-a-type-that-takes-a-variable-number-of-type-parameters/33264)

<div class="topic-metadata">

**Author:** [@jkroso](https://discourse.julialang.org/u/jkroso)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 6:39pm UTC](https://discourse.julialang.org/t/is-it-possible-to-define-a-type-that-takes-a-variable-number-of-type-parameters/33264 "2020-01-12T18:39:48Z")

</div>

AFAIK there are two types in Julia that can take a variable number of type parameters: Union and Tuple but they both seem to be defined in C. Are there any implemented in Julia or can it not be done?

---

## [Nonparametric estimation of spatial segregation in a multivariate point process](https://discourse.julialang.org/t/nonparametric-estimation-of-spatial-segregation-in-a-multivariate-point-process/33248)

<div class="topic-metadata">

**Author:** [@danriggins](https://discourse.julialang.org/u/danriggins)\
**Replies:** 7\
**Last updated:** [January 12, 2020, 4:32pm UTC](https://discourse.julialang.org/t/nonparametric-estimation-of-spatial-segregation-in-a-multivariate-point-process/33248 "2020-01-12T16:32:29Z")

</div>

Hi all, I’ve been trying to use the methods from this paper to estimate spatial segregation between crashes involving pedestrians versus those not in Indianapolis. The authors made this R package to facilitate the necess…

---

## [Error Installing RDatasets](https://discourse.julialang.org/t/error-installing-rdatasets/26158)

<div class="topic-metadata">

**Author:** [@jerry\_johnson](https://discourse.julialang.org/u/jerry_johnson)\
**Replies:** 10\
**Last updated:** [January 12, 2020, 2:25pm UTC](https://discourse.julialang.org/t/error-installing-rdatasets/26158 "2020-01-12T14:25:59Z")

</div>

Julia Version 1.1.1 (2019-05-16) Ubuntu 18.04 on Linux x86\_64 The RDatasets installer is having trouble writing the deps.jl files for CodecZlib and EzXML packages. (v1.1) pkg\> add RDatasets results in … Building Ez…

---

## [Flux 0.10.0 does not update function definitions in Jupyter](https://discourse.julialang.org/t/flux-0-10-0-does-not-update-function-definitions-in-jupyter/33261)

<div class="topic-metadata">

**Author:** [@RM314](https://discourse.julialang.org/u/RM314)\
**Replies:** 1\
**Last updated:** [January 12, 2020, 10:39am UTC](https://discourse.julialang.org/t/flux-0-10-0-does-not-update-function-definitions-in-jupyter/33261 "2020-01-12T10:39:42Z")

</div>

I stumbled onto this behaviour recently and I’m unsure if it’s intentional, or what to do about it. If I update a function definition, invocations of gradient() seem to use the old definition even as the rest of the note…

---

## [404 for https://julialang.org/downloads/platform.html](https://discourse.julialang.org/t/404-for-https-julialang-org-downloads-platform-html/33263)

<div class="topic-metadata">

**Author:** [@mark](https://discourse.julialang.org/u/mark)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 10:10am UTC](https://discourse.julialang.org/t/404-for-https-julialang-org-downloads-platform-html/33263 "2020-01-12T10:10:20Z")

</div>

On the download page, Download Julia there’s a link to https://julialang.org/downloads/platform.html but this gives a 404.

---

## [Simulate v0.2.0, a Julia package for discrete event simulation](https://discourse.julialang.org/t/simulate-v0-2-0-a-julia-package-for-discrete-event-simulation/31822)

<div class="topic-metadata">

**Author:** [@pbayer](https://discourse.julialang.org/u/pbayer)\
**Replies:** 12\
**Last updated:** [January 12, 2020, 6:23am UTC](https://discourse.julialang.org/t/simulate-v0-2-0-a-julia-package-for-discrete-event-simulation/31822 "2020-01-12T06:23:14Z")

</div>

Simulate.jl provides three schemes for modeling and simulating discrete event systems (DES): 1) event scheduling, 2) interacting processes and 3) continuous sampling. It introduces a clock and allows to schedule arbitrar…

---

## [DIfferentialEquations with the driving function defined on a fixed grid](https://discourse.julialang.org/t/differentialequations-with-the-driving-function-defined-on-a-fixed-grid/33160)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 7:05am UTC](https://discourse.julialang.org/t/differentialequations-with-the-driving-function-defined-on-a-fixed-grid/33160 "2020-01-12T07:05:52Z")

</div>

Hello, I want to use DifferentialEquations.jl to solve a differential equation whose driving function is defined on a fixed grid. One of thе solutions would be to pass the grid and the driving function arrays as paramet…

---

## [Cannot run Zygote in Julia](https://discourse.julialang.org/t/cannot-run-zygote-in-julia/33124)

<div class="topic-metadata">

**Author:** [@jiaqi19s](https://discourse.julialang.org/u/jiaqi19s)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 6:27am UTC](https://discourse.julialang.org/t/cannot-run-zygote-in-julia/33124 "2020-01-12T06:27:08Z")

</div>

When I run using Zygote, it stuck at pre-compiling without any error msg. Here is what shows in REPL. (v1.3) pkg\> add Zygote Resolving package versions… Installed CommonSubexpressions ─ v0.2.0 Installed MKL\_jll ────…

---

## [Printing 10x10 matrix on Jupyter Notebook](https://discourse.julialang.org/t/printing-10x10-matrix-on-jupyter-notebook/33258)

<div class="topic-metadata">

**Author:** [@Dervis](https://discourse.julialang.org/u/Dervis)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 4:53am UTC](https://discourse.julialang.org/t/printing-10x10-matrix-on-jupyter-notebook/33258 "2020-01-12T04:53:37Z")

</div>

Hello, Anoyone knows how to plot 10x10 large matrix on jupyter notebook without missing any values in it? My solution matrix, “sol”, is 10x10x2 matrix. I would like to print it as two 10x10 matrices. When I do “println…

---

## [Please help with the very simplest 4-line Autodiff example: Flux0.9](https://discourse.julialang.org/t/please-help-with-the-very-simplest-4-line-autodiff-example-flux0-9/33257)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 1\
**Last updated:** [January 12, 2020, 4:33am UTC](https://discourse.julialang.org/t/please-help-with-the-very-simplest-4-line-autodiff-example-flux0-9/33257 "2020-01-12T04:33:57Z")

</div>

This is with Flux 0.9, Julia1.3 Meta comment: Julia looks amazing. I keep coming back to it, but everything I try does not seem to work. Bad beginner luck. 1a) This example I want to work. It should find \[0,0\] as the…

---

## [Is there a difference between these 2 pieces of code?](https://discourse.julialang.org/t/is-there-a-difference-between-these-2-pieces-of-code/33255)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 3:46am UTC](https://discourse.julialang.org/t/is-there-a-difference-between-these-2-pieces-of-code/33255 "2020-01-12T03:46:55Z")

</div>

struct MM abstract type TT end export TT MM() = new() end vs abstract type TT end export TT struct MM end Thanks?

---

## [Better syntax for collecting into array including both end points](https://discourse.julialang.org/t/better-syntax-for-collecting-into-array-including-both-end-points/33246)

<div class="topic-metadata">

**Author:** [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Replies:** 6\
**Last updated:** [January 12, 2020, 2:27am UTC](https://discourse.julialang.org/t/better-syntax-for-collecting-into-array-including-both-end-points/33246 "2020-01-12T02:27:58Z")

</div>

The following code shows two ways of collecting data into an array. MyArray0 may not include YrEnd depending on YrStep. MyArray1 always includes YrEnd regardless of YrStep. Question, is there a better or more elegant …

---

## [Substitute the value of a variable intro the string](https://discourse.julialang.org/t/substitute-the-value-of-a-variable-intro-the-string/33254)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 2:13am UTC](https://discourse.julialang.org/t/substitute-the-value-of-a-variable-intro-the-string/33254 "2020-01-12T02:13:26Z")

</div>

I have a variable: X I have a text: " … $X…" from a text file. What I can do, to substitute the value of variable X into the text? I know how it can be done directly in the code: text = " bla bla bla $x … ", But if th…

---

## [Inconsistency in TypeError message?](https://discourse.julialang.org/t/inconsistency-in-typeerror-message/33256)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 0\
**Last updated:** [January 12, 2020, 1:05am UTC](https://discourse.julialang.org/t/inconsistency-in-typeerror-message/33256 "2020-01-12T01:05:53Z")

</div>

I like the second error because it’s clear to me that which keyword argument was passed with wrong type… julia\> function foo(a, b; x::Bool = true, y::String = "abc") println("hello") x ? a + b : y …

---

## [How to optimize the following code?](https://discourse.julialang.org/t/how-to-optimize-the-following-code/33209)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 7\
**Last updated:** [January 11, 2020, 11:55pm UTC](https://discourse.julialang.org/t/how-to-optimize-the-following-code/33209 "2020-01-11T23:55:35Z")

</div>

I recently watched this video which ended in a comparison between Python+Numba vs Julia (starting around 1h:06m): The author used multithreading to run the same function 10\_000 times and concluded that Juli…

---

## [LANL Quantum Computing Summer School Fellowship](https://discourse.julialang.org/t/lanl-quantum-computing-summer-school-fellowship/31116)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 4\
**Last updated:** [January 11, 2020, 11:42pm UTC](https://discourse.julialang.org/t/lanl-quantum-computing-summer-school-fellowship/31116 "2020-01-11T23:42:11Z")

</div>

Applications are now open for Los Alamos National Laboratory’s Quantum Computing Summer School (QCSS 2020). This school provides a unique opportunity for undergrads, masters, and PhD students to have hands-on experien…

---

## [How to speed up \`Statistics.median\` along a given dimension?](https://discourse.julialang.org/t/how-to-speed-up-statistics-median-along-a-given-dimension/33220)

<div class="topic-metadata">

**Author:** [@bensetterholm](https://discourse.julialang.org/u/bensetterholm)\
**Replies:** 9\
**Last updated:** [January 11, 2020, 9:06pm UTC](https://discourse.julialang.org/t/how-to-speed-up-statistics-median-along-a-given-dimension/33220 "2020-01-11T21:06:51Z")

</div>

I am in the process of translating a Python function into Julia. I was expecting the latter to be faster than the former, but to my surprise the Python function outperformed my Julia version each time. Using the Profil…

---

## [Noob question: JuliaWebAPI - does not accept keyword arguments](https://discourse.julialang.org/t/noob-question-juliawebapi-does-not-accept-keyword-arguments/33228)

<div class="topic-metadata">

**Author:** [@digeratus](https://discourse.julialang.org/u/digeratus)\
**Replies:** 7\
**Last updated:** [January 11, 2020, 7:53pm UTC](https://discourse.julialang.org/t/noob-question-juliawebapi-does-not-accept-keyword-arguments/33228 "2020-01-11T19:53:36Z")

</div>

Hello Julia Community!!! Can’t tell you how much I’m enjoying Julia’s core concepts and implementation. I’m hoping this becomes my main language. Ok, so I created a little prototype using JuliaWebAPI and its GitHub doc…

---

## [Given S = Set{Vector{Int}}, how do I get a reference to the original object in S?](https://discourse.julialang.org/t/given-s-set-vector-int-how-do-i-get-a-reference-to-the-original-object-in-s/33241)

<div class="topic-metadata">

**Author:** [@rrhiemstra](https://discourse.julialang.org/u/rrhiemstra)\
**Replies:** 8\
**Last updated:** [January 11, 2020, 5:54pm UTC](https://discourse.julialang.org/t/given-s-set-vector-int-how-do-i-get-a-reference-to-the-original-object-in-s/33241 "2020-01-11T17:54:14Z")

</div>

Given a set S = Set{Vector{Int}}(s\_1,…,s\_n) and a vector v such that v == s\_k but not v===s\_k, how do I return the original object s\_k from S?

---

## [Huge performance drop using @spawn](https://discourse.julialang.org/t/huge-performance-drop-using-spawn/33242)

<div class="topic-metadata">

**Author:** [@wizebt](https://discourse.julialang.org/u/wizebt)\
**Replies:** 3\
**Last updated:** [January 11, 2020, 5:27pm UTC](https://discourse.julialang.org/t/huge-performance-drop-using-spawn/33242 "2020-01-11T17:27:13Z")

</div>

Using Jeff’s article https://julialang.org/blog/2019/07/multithreading using julia\> VERSION v"1.3.1" I simply tried the first example with JULIA\_NUM\_THREADS=4 on a 12 core machine with 64GB RAM import Base.Threads.@…

---

## [New Package: GadJet.jl](https://discourse.julialang.org/t/new-package-gadjet-jl/33238)

<div class="topic-metadata">

**Author:** [@Ludwig](https://discourse.julialang.org/u/Ludwig)\
**Replies:** 0\
**Last updated:** [January 11, 2020, 3:41pm UTC](https://discourse.julialang.org/t/new-package-gadjet-jl/33238 "2020-01-11T15:41:06Z")

</div>

Hey everyone, I would like to announce the release of my package GadJet.jl - a package to work with simulation data from the cosmological SPH code Gadget (version 2 and 3). You can read the binary data, write initial …

---

## [Precompiling PolynomialZeros](https://discourse.julialang.org/t/precompiling-polynomialzeros/33232)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 2\
**Last updated:** [January 11, 2020, 2:52pm UTC](https://discourse.julialang.org/t/precompiling-polynomialzeros/33232 "2020-01-11T14:52:59Z")

</div>

Hello everyone. I use Julia 1.3.1. I tried to add package PolynomialZeros but I get the error messages: \[Info: Precompiling PolynomialZeros \[11d3f387-6b1b-5124-abbd-847758a5de3c\] ERROR: LoadError: LoadError: UndefVarE…

---

## [Morphing algorithm in Julia?](https://discourse.julialang.org/t/morphing-algorithm-in-julia/33235)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 12:03pm UTC](https://discourse.julialang.org/t/morphing-algorithm-in-julia/33235 "2020-01-11T12:03:37Z")

</div>

Hi, I wonder if it already exists a Julia tool to generate pretty transitions between different images. If not, I could try to translate existing implementations from other languages. Any hint or starting points ? La…

---

## [Output type of binary operations involving StaticArrays](https://discourse.julialang.org/t/output-type-of-binary-operations-involving-staticarrays/33187)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 11\
**Last updated:** [January 11, 2020, 10:38am UTC](https://discourse.julialang.org/t/output-type-of-binary-operations-involving-staticarrays/33187 "2020-01-11T10:38:21Z")

</div>

binary operations on a StaticArray and Array give outputs with quite-inconsistent types. For example, intuitively SVector .+ Vector should give a SVector rather than a Vector? julia\> using StaticArrays julia\> typeof(SV…

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

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