# Latest

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

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

**Page:** 1533

---

## [Nearest Neighbour Interpolation with Interpolations.jl](https://discourse.julialang.org/t/nearest-neighbour-interpolation-with-interpolations-jl/52741)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 3\
**Last updated:** [January 2, 2021, 10:23pm UTC](https://discourse.julialang.org/t/nearest-neighbour-interpolation-with-interpolations-jl/52741 "2021-01-02T22:23:15Z")

</div>

I’ve been using the Interpolations.jl package quite happily for a while now. I almost exclusively make use of the convienience constructors for both linear and cubic (mostly 1d) interpolation. I’ve only just recently com…

---

## [Spdiagm allocation madness](https://discourse.julialang.org/t/spdiagm-allocation-madness/52703)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 2\
**Last updated:** [January 2, 2021, 10:07pm UTC](https://discourse.julialang.org/t/spdiagm-allocation-madness/52703 "2021-01-02T22:07:14Z")

</div>

I am seeing surprisingly large allocations from spdiagm. The compute times are ok for what I need to do, so perhaps this is a case where large allocations do not harm. Here’s the story. I compute the discrete negative…

---

## [Symmetric vs symmetric](https://discourse.julialang.org/t/symmetric-vs-symmetric/52743)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 2\
**Last updated:** [January 2, 2021, 6:51pm UTC](https://discourse.julialang.org/t/symmetric-vs-symmetric/52743 "2021-01-02T18:51:54Z")

</div>

At present we have the Symmetric type in LinearAlgebra which wraps an AbstractMatrix. This seems like a sensible strategy when dealing with dense Matrixs, and things like that. However, (to pick a single example) wrappin…

---

## [Showing plots within DataFrames.jl + Plots.jl](https://discourse.julialang.org/t/showing-plots-within-dataframes-jl-plots-jl/52708)

<div class="topic-metadata">

**Author:** [@delnatan](https://discourse.julialang.org/u/delnatan)\
**Replies:** 4\
**Last updated:** [January 2, 2021, 6:17pm UTC](https://discourse.julialang.org/t/showing-plots-within-dataframes-jl-plots-jl/52708 "2021-01-02T18:17:43Z")

</div>

Hi everyone! I was playing around with Pluto.jl and found that you can display individual plots stored in a column within a DataFrame. This is pretty cool! For example: using Plots using DataFrames arrplots = \[ plot…

---

## [Julia on MyBinder with pyplot](https://discourse.julialang.org/t/julia-on-mybinder-with-pyplot/40125)

<div class="topic-metadata">

**Author:** [@corbat](https://discourse.julialang.org/u/corbat)\
**Replies:** 1\
**Last updated:** [January 2, 2021, 6:00pm UTC](https://discourse.julialang.org/t/julia-on-mybinder-with-pyplot/40125 "2021-01-02T18:00:17Z")

</div>

Hi, I hope this is the correct place to ask this question. I’m trying to set up a binder at mybinder.org to run some Julia notebooks. So far this worked very well using Project.toml and Manifest.toml. The only thing I …

---

## [IntelOpenMP Windows installation issue](https://discourse.julialang.org/t/intelopenmp-windows-installation-issue/52724)

<div class="topic-metadata">

**Author:** [@youfangcao](https://discourse.julialang.org/u/youfangcao)\
**Replies:** 2\
**Last updated:** [January 2, 2021, 4:38pm UTC](https://discourse.julialang.org/t/intelopenmp-windows-installation-issue/52724 "2021-01-02T16:38:33Z")

</div>

Hi, and @staticfloat, I am new into Julia and trying to install the DataDrivenDiffEq package on my Windows 10 laptop. However, I got an error message saying unable automatically install ‘IntelOpenMP’ from local Artifacts…

---

## [BoundsError on basic Turing model](https://discourse.julialang.org/t/boundserror-on-basic-turing-model/52701)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [January 2, 2021, 9:07am UTC](https://discourse.julialang.org/t/boundserror-on-basic-turing-model/52701 "2021-01-02T09:07:53Z")

</div>

I’m trying to fit a basic model in Turing. The data consists of some values y (lets say a height) for different groups/categories x. I am trying to learn whether the y-values per group differ, or are the same. To make it…

---

## [Blank repl after sleep mode in Atom juno](https://discourse.julialang.org/t/blank-repl-after-sleep-mode-in-atom-juno/52720)

<div class="topic-metadata">

**Author:** [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Replies:** 1\
**Last updated:** [January 2, 2021, 9:04am UTC](https://discourse.julialang.org/t/blank-repl-after-sleep-mode-in-atom-juno/52720 "2021-01-02T09:04:24Z")

</div>

I’ve recently installed Julia in the new computer and I am facing some new problems. I am using Atom and Juno and I often leave Atom open in the computer sleep mode, then after waking up the repl is all dark and I don’t…

---

## ["contour not defined" when using my package](https://discourse.julialang.org/t/contour-not-defined-when-using-my-package/52727)

<div class="topic-metadata">

**Author:** [@EmadMasroor](https://discourse.julialang.org/u/EmadMasroor)\
**Replies:** 2\
**Last updated:** [January 2, 2021, 8:22am UTC](https://discourse.julialang.org/t/contour-not-defined-when-using-my-package/52727 "2021-01-02T08:22:39Z")

</div>

Hello, I am building a new package for the first time, and I’m running into a problem when I call one of the functions exported by my package, SimpleNavierStokes.jl. The package exports a function, LidDrivenCavity(). T…

---

## [Can ContinuousCallbacks in DifferentialEquations.jl be used to watch parameters?](https://discourse.julialang.org/t/can-continuouscallbacks-in-differentialequations-jl-be-used-to-watch-parameters/52674)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 10\
**Last updated:** [January 2, 2021, 5:49am UTC](https://discourse.julialang.org/t/can-continuouscallbacks-in-differentialequations-jl-be-used-to-watch-parameters/52674 "2021-01-02T05:49:34Z")

</div>

I’m trying to use a VectorContinuousCallback to handle friction and end stops. Some of the conditions are not based on the state variables u but on a value stuffed into a field of the parameters p. Code: using Differen…

---

## [How can i use sets created using LasySets.jl with Convex.jl variables?](https://discourse.julialang.org/t/how-can-i-use-sets-created-using-lasysets-jl-with-convex-jl-variables/52572)

<div class="topic-metadata">

**Author:** [@adropintheriver](https://discourse.julialang.org/u/adropintheriver)\
**Replies:** 6\
**Last updated:** [January 2, 2021, 1:49am UTC](https://discourse.julialang.org/t/how-can-i-use-sets-created-using-lasysets-jl-with-convex-jl-variables/52572 "2021-01-02T01:49:27Z")

</div>

Is there a way i can create LazySets Polyhedron and use it as a variable in my optimization program that uses Convex.jl, use them in constraints i want to add to the problem?.

---

## [JuMP - variable depending on other variable](https://discourse.julialang.org/t/jump-variable-depending-on-other-variable/52529)

<div class="topic-metadata">

**Author:** [@TheMEGuy](https://discourse.julialang.org/u/TheMEGuy)\
**Replies:** 2\
**Last updated:** [January 1, 2021, 11:15pm UTC](https://discourse.julialang.org/t/jump-variable-depending-on-other-variable/52529 "2021-01-01T23:15:03Z")

</div>

Hi, I have a variable that is supposed to be a matrix. Its size should depend on another variable, which also should be optimized, or at least changed throughout the optimization process: @variable(model, n,lower\_bound…

---

## [Plots.jl: can we connect two points in a D-2 plot with a straight line?](https://discourse.julialang.org/t/plots-jl-can-we-connect-two-points-in-a-d-2-plot-with-a-straight-line/52711)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 2\
**Last updated:** [January 1, 2021, 10:41pm UTC](https://discourse.julialang.org/t/plots-jl-can-we-connect-two-points-in-a-d-2-plot-with-a-straight-line/52711 "2021-01-01T22:41:57Z")

</div>

Suppose I have a D-2 plot produced by Plots.jl, which may display a time series or a mere parabola. Is it possible to connect two points with a straight line by using annotations or any other Plots’ functionality? I am n…

---

## [Display(img) prints output additionally to showing image in Atom](https://discourse.julialang.org/t/display-img-prints-output-additionally-to-showing-image-in-atom/52714)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 0\
**Last updated:** [January 1, 2021, 10:44pm UTC](https://discourse.julialang.org/t/display-img-prints-output-additionally-to-showing-image-in-atom/52714 "2021-01-01T22:44:56Z")

</div>

MWE using Colors, TestImages, ImageIO, ImageShow, FileIO img = testimage("cameraman.tif"); display("image/png", img); Additionally to displaying the image in the Plots pane of Atom (which is what I want) it also prints…

---

## [\[ANN\] ThreadPools.jl v1.2: improved thread management for background and nonuniform tasks](https://discourse.julialang.org/t/ann-threadpools-jl-v1-2-improved-thread-management-for-background-and-nonuniform-tasks/52682)

<div class="topic-metadata">

**Author:** [@tro3](https://discourse.julialang.org/u/tro3)\
**Replies:** 2\
**Last updated:** [January 1, 2021, 8:22pm UTC](https://discourse.julialang.org/t/ann-threadpools-jl-v1-2-improved-thread-management-for-background-and-nonuniform-tasks/52682 "2021-01-01T20:22:49Z")

</div>

Happy New Year, all. Just letting everyone know that ThreadPools.jl has revved to v1.2. There is no change in the higher-level API, but any “disappearing exception” problems should be a thing of the past, even with the…

---

## [How to stream a large random matrix to a file?](https://discourse.julialang.org/t/how-to-stream-a-large-random-matrix-to-a-file/52673)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 3\
**Last updated:** [January 1, 2021, 7:45pm UTC](https://discourse.julialang.org/t/how-to-stream-a-large-random-matrix-to-a-file/52673 "2021-01-01T19:45:58Z")

</div>

The following attempts to stream a large random array to a file and read it with Mmap, but causes errors: @testset "stream an m x n matrix to a file and read via Mmap" begin m=10 n=10^5 fn="/tmp/mmap.bin" …

---

## [Storage-based array that implements @views?](https://discourse.julialang.org/t/storage-based-array-that-implements-views/52640)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 9\
**Last updated:** [January 1, 2021, 7:41pm UTC](https://discourse.julialang.org/t/storage-based-array-that-implements-views/52640 "2021-01-01T19:41:04Z")

</div>

I would like to do a piece-wise reduction (on sub-arrays) of a large array that is too big to fit into memory. Is there a ‘storage-based array’ that implements @views?

---

## [How to write xs\[i\]..xs\[i+1\] in Julia 1.5 , two dots](https://discourse.julialang.org/t/how-to-write-xs-i-xs-i-1-in-julia-1-5-two-dots/52684)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 7\
**Last updated:** [January 1, 2021, 7:17pm UTC](https://discourse.julialang.org/t/how-to-write-xs-i-xs-i-1-in-julia-1-5-two-dots/52684 "2021-01-01T19:17:25Z")

</div>

how to write in Julai 1.5 xs\[i\]..xs\[i+1\] in Julai 1.5 function make\_intervals(N=10) xs = linspace(0, 2, N+1) return \[xs\[i\]..xs\[i+1\] for i in 1:length(xs)-1\] end Paul

---

## [Is there a way to compute the AD Hessian of a function using purely Zygote functions and not ForwardDiff?](https://discourse.julialang.org/t/is-there-a-way-to-compute-the-ad-hessian-of-a-function-using-purely-zygote-functions-and-not-forwarddiff/52704)

<div class="topic-metadata">

**Author:** [@tholdem](https://discourse.julialang.org/u/tholdem)\
**Replies:** 1\
**Last updated:** [January 1, 2021, 7:01pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-compute-the-ad-hessian-of-a-function-using-purely-zygote-functions-and-not-forwarddiff/52704 "2021-01-01T19:01:19Z")

</div>

To solve the issue raised in this post, I’ve been trying to write a Jacobian function using Zygote functions only so I can compute the AD Hessian of my function without using Dual type from ForwardDiff, which doesn’t wor…

---

## [Relation Extraction project: request for benchmarking suggestions](https://discourse.julialang.org/t/relation-extraction-project-request-for-benchmarking-suggestions/52705)

<div class="topic-metadata">

**Author:** [@erratic](https://discourse.julialang.org/u/erratic)\
**Replies:** 0\
**Last updated:** [January 1, 2021, 6:48pm UTC](https://discourse.julialang.org/t/relation-extraction-project-request-for-benchmarking-suggestions/52705 "2021-01-01T18:48:37Z")

</div>

Hello everyone, I’m working on a project about relation extraction (RE). More specifically my project focus on a new method to improove training data to use with any (supervised) model for RE and I would like to benchm…

---

## [Re-designing the JuliaLang.org Website Download section \[feedback needed\]](https://discourse.julialang.org/t/re-designing-the-julialang-org-website-download-section-feedback-needed/52429)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 28\
**Last updated:** [January 1, 2021, 6:37pm UTC](https://discourse.julialang.org/t/re-designing-the-julialang-org-website-download-section-feedback-needed/52429 "2021-01-01T18:37:54Z")

</div>

Hey all, we are trying to redesign the https://JuliaLang.org download page. An initial WIP version can be found here: https://julialang.netlify.app/previews/pr1110/downloads/ See the current version for reference: Downl…

---

## [The @avx and @btime macros: strange interdependency](https://discourse.julialang.org/t/the-avx-and-btime-macros-strange-interdependency/52698)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 4\
**Last updated:** [January 1, 2021, 6:13pm UTC](https://discourse.julialang.org/t/the-avx-and-btime-macros-strange-interdependency/52698 "2021-01-01T18:13:50Z")

</div>

I am a newbie to Julia, and I came up with a script to produce a bifurcation diagram for the logistic map. The logistic map is well known and I will be brief here: x(t+1) = r\*x(t)\*(1-x(t)), 0 ≤ r ≤ 4. For accuracy, I cho…

---

## [Gradient of Gradient in Zygote](https://discourse.julialang.org/t/gradient-of-gradient-in-zygote/52685)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 2\
**Last updated:** [January 1, 2021, 6:00pm UTC](https://discourse.julialang.org/t/gradient-of-gradient-in-zygote/52685 "2021-01-01T18:00:58Z")

</div>

I am trying to find the Hessian of a quadratic form. I know the answer. But if I apply gradient on the gradient, I get an error. Can Zygote do the differentiation only if the output is a scalar? But then how can it work …

---

## [How can I extract MOI expression from a linear JuMP obj expression](https://discourse.julialang.org/t/how-can-i-extract-moi-expression-from-a-linear-jump-obj-expression/52689)

<div class="topic-metadata">

**Author:** [@Mahbubar06](https://discourse.julialang.org/u/Mahbubar06)\
**Replies:** 2\
**Last updated:** [January 1, 2021, 2:34pm UTC](https://discourse.julialang.org/t/how-can-i-extract-moi-expression-from-a-linear-jump-obj-expression/52689 "2021-01-01T14:34:51Z")

</div>

Hello, I am struggling to generate an MOI (MathOptInterface) expression from a linear JuMP expression. I have a JuMP model as follows. m = Model(Ipopt.Optimizer) @variable(m, 0 \<= x\[1:3\] \<= 10) @constraint(m, sum(x\[i\]…

---

## [Broadcast over splatted tuples](https://discourse.julialang.org/t/broadcast-over-splatted-tuples/52690)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 7\
**Last updated:** [January 1, 2021, 2:04pm UTC](https://discourse.julialang.org/t/broadcast-over-splatted-tuples/52690 "2021-01-01T14:04:43Z")

</div>

I can’t figure out the syntax for doing broadcasting and splatting at the same time Example: func(x1, x2) = x1+x2 v = collect(zip(rand(100), rand(100))); I have function func which takes 2 arguments, and I have vector…

---

## [Julia REPL Keybindings, Shortcut Keys Clarification](https://discourse.julialang.org/t/julia-repl-keybindings-shortcut-keys-clarification/52627)

<div class="topic-metadata">

**Author:** [@jasonhnicholson](https://discourse.julialang.org/u/jasonhnicholson)\
**Replies:** 7\
**Last updated:** [January 1, 2021, 1:27pm UTC](https://discourse.julialang.org/t/julia-repl-keybindings-shortcut-keys-clarification/52627 "2021-01-01T13:27:06Z")

</div>

I am trying to understand all the standard keybindings in the Julia REPL. There are some keys I don’t understand and I don’t understand what to search to understand them. What I do know If any of this is incorrect, plea…

---

## [How to change the type of a column of a DataFrame](https://discourse.julialang.org/t/how-to-change-the-type-of-a-column-of-a-dataframe/30074)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [January 1, 2021, 1:26pm UTC](https://discourse.julialang.org/t/how-to-change-the-type-of-a-column-of-a-dataframe/30074 "2021-01-01T13:26:16Z")

</div>

I have a DataFrame that has a few columns of the types “Union{Missing, String}” and “Union{Missing, Float64}”. But there are no missing values in the data. I would like to change the type of these columns to either “Str…

---

## [Convex.jl - LoadError: UndefVarError: AbstractExpr not defined](https://discourse.julialang.org/t/convex-jl-loaderror-undefvarerror-abstractexpr-not-defined/52679)

<div class="topic-metadata">

**Author:** [@cm0](https://discourse.julialang.org/u/cm0)\
**Replies:** 3\
**Last updated:** [January 1, 2021, 11:04am UTC](https://discourse.julialang.org/t/convex-jl-loaderror-undefvarerror-abstractexpr-not-defined/52679 "2021-01-01T11:04:56Z")

</div>

I am using Julia 1.5.3 but running some old code based on Julia 0.6.4 and ran into the following problem: LoadError: LoadError: UndefVarError: AbstractExpr not defined. The problem seems to be AbstractExpr no longer bei…

---

## [When to use Github Organization](https://discourse.julialang.org/t/when-to-use-github-organization/52665)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 3\
**Last updated:** [December 31, 2020, 9:59pm UTC](https://discourse.julialang.org/t/when-to-use-github-organization/52665 "2020-12-31T21:59:32Z")

</div>

What are the use cases when one should create a Github Organization? If you split a large library into several packages, of which you are a single maintainer, are there any benefits to create a Github Organization to ho…

---

## [Plotting a grouped bar chart in Gnuplot.jl](https://discourse.julialang.org/t/plotting-a-grouped-bar-chart-in-gnuplot-jl/52671)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 1\
**Last updated:** [December 31, 2020, 9:37pm UTC](https://discourse.julialang.org/t/plotting-a-grouped-bar-chart-in-gnuplot-jl/52671 "2020-12-31T21:37:49Z")

</div>

pinging @gcalderone I am trying to create a grouped bar chart. Something like Clustered bar plot in gnuplot - Stack Overflow or Gnuplot documentation (bersch.net) but I am not getting anywhere. I have so far @gp "re…

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

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