# Latest

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

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

**Page:** 1067

---

## [Makie: How to make a figure with exactly correct font size?](https://discourse.julialang.org/t/makie-how-to-make-a-figure-with-exactly-correct-font-size/79553)

<div class="topic-metadata">

**Author:** [@DenisTitov](https://discourse.julialang.org/u/DenisTitov)\
**Replies:** 8\
**Last updated:** [April 17, 2022, 6:00am UTC](https://discourse.julialang.org/t/makie-how-to-make-a-figure-with-exactly-correct-font-size/79553 "2022-04-17T06:00:42Z")

</div>

Hi all, I’m using Makie to make figures for a publication and I want to be able to insert a figure (e.g., 6.5" by 3" figure) into word so that font size of my various labels is exactly correct (e.g., Ariel 11 that will …

---

## [How to get a function instance from a function type?](https://discourse.julialang.org/t/how-to-get-a-function-instance-from-a-function-type/79585)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 3\
**Last updated:** [April 17, 2022, 4:53am UTC](https://discourse.julialang.org/t/how-to-get-a-function-instance-from-a-function-type/79585 "2022-04-17T04:53:17Z")

</div>

How can we get a function instance from a function type eg. let’s suppose that we def ft = typeof(abs) , how can we get abs again ? Currently, i have the following code that runs ft = typeof(abs) using Test @test abs…

---

## [How to manage various date format in a csv file](https://discourse.julialang.org/t/how-to-manage-various-date-format-in-a-csv-file/22696)

<div class="topic-metadata">

**Author:** [@steph\_de\_paris](https://discourse.julialang.org/u/steph_de_paris)\
**Replies:** 3\
**Last updated:** [April 17, 2022, 1:01am UTC](https://discourse.julialang.org/t/how-to-manage-various-date-format-in-a-csv-file/22696 "2022-04-17T01:01:17Z")

</div>

Hello, I have to create a CSV file with various date format. Up to now, I use: using DataFrames using Dates format\_date\_1=“yyyymmddHHMMSS” format\_date\_2=“yyyymmdd” df\_out=DataFrame(hre\_deb\_calc=DateTime\[DateTime(“2…

---

## [What general-purpose commands do you usually end up adding to your projects?](https://discourse.julialang.org/t/what-general-purpose-commands-do-you-usually-end-up-adding-to-your-projects/4889)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 3\
**Last updated:** [April 16, 2022, 9:11pm UTC](https://discourse.julialang.org/t/what-general-purpose-commands-do-you-usually-end-up-adding-to-your-projects/4889 "2022-04-16T21:11:33Z")

</div>

Related to this response from Stefan, https://github.com/JuliaLang/julia/issues/14672#issuecomment-171665475 What commands do you usually end up adding to your projects to get around common nuisances?

---

## [PSA: If you are an owner of a GitHub organization, please review the GitHub Apps installed on your organization (and remove any that are no longer needed)](https://discourse.julialang.org/t/psa-if-you-are-an-owner-of-a-github-organization-please-review-the-github-apps-installed-on-your-organization-and-remove-any-that-are-no-longer-needed/79581)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 0\
**Last updated:** [April 16, 2022, 8:08pm UTC](https://discourse.julialang.org/t/psa-if-you-are-an-owner-of-a-github-organization-please-review-the-github-apps-installed-on-your-organization-and-remove-any-that-are-no-longer-needed/79581 "2022-04-16T20:08:52Z")

</div>

If you are the owner of a GitHub organization, please review the list of GitHub Apps that are installed on your organization, and remove any Apps that are no longer needed. You can access the list of GitHub Apps by goin…

---

## [Pluto: begin-end usage](https://discourse.julialang.org/t/pluto-begin-end-usage/79559)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 17\
**Last updated:** [April 16, 2022, 7:05pm UTC](https://discourse.julialang.org/t/pluto-begin-end-usage/79559 "2022-04-16T19:05:52Z")

</div>

Hello, I would like to know which is the reason for using begin-end scopes in each cell of Pluto. Another question is to know if there’s a way to avoid having to write begin-end in each cell? I would like this approach…

---

## [How to remove type when converting to string](https://discourse.julialang.org/t/how-to-remove-type-when-converting-to-string/79574)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 2\
**Last updated:** [April 16, 2022, 4:20pm UTC](https://discourse.julialang.org/t/how-to-remove-type-when-converting-to-string/79574 "2022-04-16T16:20:16Z")

</div>

I want to convert this Any\[1,2,3,4\] to string but it gives “Any\[1,2,3,4\]”, it should give “\[1,2,3,4\]”

---

## [Random seed LTS vs latest stable](https://discourse.julialang.org/t/random-seed-lts-vs-latest-stable/64370)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 8\
**Last updated:** [April 16, 2022, 3:58pm UTC](https://discourse.julialang.org/t/random-seed-lts-vs-latest-stable/64370 "2022-04-16T15:58:16Z")

</div>

I am testing the same package on two different environments (LTS and current stable). I have noticed that the default random number generator is different. How do I change it on either environment to get the same sequenc…

---

## [How to extract components in an array of arrays](https://discourse.julialang.org/t/how-to-extract-components-in-an-array-of-arrays/79515)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 11\
**Last updated:** [April 16, 2022, 12:57pm UTC](https://discourse.julialang.org/t/how-to-extract-components-in-an-array-of-arrays/79515 "2022-04-16T12:57:07Z")

</div>

Suppose I have an array of arrays, say a 2 x 2 matrix whose entries are 1 x 2 vectors, e.g., julia\> A 2×2 Matrix{Matrix{Int64}}: \[1 2\] \[3 4\] \[5 6\] \[7 8\] I am wondering, without using for loops, how to extract a 2 x…

---

## [Flux.gradient throws MethodError even though loss is evaluated just fine](https://discourse.julialang.org/t/flux-gradient-throws-methoderror-even-though-loss-is-evaluated-just-fine/79561)

<div class="topic-metadata">

**Author:** [@vtac](https://discourse.julialang.org/u/vtac)\
**Replies:** 3\
**Last updated:** [April 16, 2022, 12:01pm UTC](https://discourse.julialang.org/t/flux-gradient-throws-methoderror-even-though-loss-is-evaluated-just-fine/79561 "2022-04-16T12:01:29Z")

</div>

Hello I am fairly new to Julia and I am having trouble in the implementation of a custom neural network. I am trying to take the derivative of the loss function wrt the parameters of the model, but Flux.gradient throws a…

---

## [Jupyter Notebook Blank When Opened in New Julia Environment](https://discourse.julialang.org/t/jupyter-notebook-blank-when-opened-in-new-julia-environment/79565)

<div class="topic-metadata">

**Author:** [@jberk](https://discourse.julialang.org/u/jberk)\
**Replies:** 1\
**Last updated:** [April 16, 2022, 11:11am UTC](https://discourse.julialang.org/t/jupyter-notebook-blank-when-opened-in-new-julia-environment/79565 "2022-04-16T11:11:12Z")

</div>

I am trying to run a Jupyter Notebook with Julia in a new environment. I created a new environment called ocean1. I then add the IJulia by typing add IJulia. Then to open IJulia in that environment I enter IJulia \>\> note…

---

## [Multi-threaded inverse of a matrix](https://discourse.julialang.org/t/multi-threaded-inverse-of-a-matrix/79543)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 6\
**Last updated:** [April 16, 2022, 6:07am UTC](https://discourse.julialang.org/t/multi-threaded-inverse-of-a-matrix/79543 "2022-04-16T06:07:57Z")

</div>

Hi there, I thought that BLAS.set\_num\_threads(n) was enough to run all LinearAlgebra functions in a multi-threaded fashion. However, I came to realise that this actually applies mostly to matrix products. Inverses see…

---

## [Help speeding up mixed integer SDP solve](https://discourse.julialang.org/t/help-speeding-up-mixed-integer-sdp-solve/23889)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 3\
**Last updated:** [April 16, 2022, 5:26am UTC](https://discourse.julialang.org/t/help-speeding-up-mixed-integer-sdp-solve/23889 "2022-04-16T05:26:30Z")

</div>

I have a big mixed-integer SDP that I’d like to solve. Essentially my difficulty is it takes too long to solve-- using Pajarito, it doesn’t even finish the first MILP solve in 12 hours with access to 216 cores and 6 TB o…

---

## [Julia geostats and measuring units for spatial lags between variables](https://discourse.julialang.org/t/julia-geostats-and-measuring-units-for-spatial-lags-between-variables/79511)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 4\
**Last updated:** [April 16, 2022, 12:58am UTC](https://discourse.julialang.org/t/julia-geostats-and-measuring-units-for-spatial-lags-between-variables/79511 "2022-04-16T00:58:23Z")

</div>

I am using the wonderful GeoStats package and associated JuliaEarth tools. For my project I have to compute the variogram from a sample of data. The tricky thing is that the EmpiricalVariogram() function in julia asks fo…

---

## [Early Stopping Using Float Cutoff on Dual](https://discourse.julialang.org/t/early-stopping-using-float-cutoff-on-dual/79516)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 11:27pm UTC](https://discourse.julialang.org/t/early-stopping-using-float-cutoff-on-dual/79516 "2022-04-15T23:27:31Z")

</div>

I cannot figure out how to do the following. I would like for JuMP to stop once the dual bound (lower bound for minimization) is above some value. OR similarly, once the dual bound (upper bound for maximization) is belo…

---

## [Help optimizing 1000x Zygote overhead for linear interpolation](https://discourse.julialang.org/t/help-optimizing-1000x-zygote-overhead-for-linear-interpolation/79549)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 11:16pm UTC](https://discourse.julialang.org/t/help-optimizing-1000x-zygote-overhead-for-linear-interpolation/79549 "2022-04-15T23:16:35Z")

</div>

I need to compute a gradient of an interpolation w.r.t. to the knot y-positions. None of the standard packages seemed to work with Zygote so I coded this very simple MWE: using Zygote, ForwardDiff, BenchmarkTools funct…

---

## [Matrix free GMRES with structs?](https://discourse.julialang.org/t/matrix-free-gmres-with-structs/79364)

<div class="topic-metadata">

**Author:** [@Srikumar](https://discourse.julialang.org/u/Srikumar)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 9:36pm UTC](https://discourse.julialang.org/t/matrix-free-gmres-with-structs/79364 "2022-04-15T21:36:05Z")

</div>

I am wondering if there is a way to solve Ax=b with GMRES where x is not a regular vector but a struct consisting of different vectors? A is available as a linearmap/function but I am not how to use GMRES here since x is…

---

## [Plot without holding data in memory](https://discourse.julialang.org/t/plot-without-holding-data-in-memory/79444)

<div class="topic-metadata">

**Author:** [@jcarpi](https://discourse.julialang.org/u/jcarpi)\
**Replies:** 6\
**Last updated:** [April 15, 2022, 9:19pm UTC](https://discourse.julialang.org/t/plot-without-holding-data-in-memory/79444 "2022-04-15T21:19:41Z")

</div>

I’d like to overlay hundreds of gigabytes of data onto a single plot. I don’t need this plot to be interactive, I just want to “paint pixels”. Is there any plotting backend, or option with Plots.jl that allows for plott…

---

## [Problems using Int as a Real](https://discourse.julialang.org/t/problems-using-int-as-a-real/79534)

<div class="topic-metadata">

**Author:** [@THEON-1](https://discourse.julialang.org/u/THEON-1)\
**Replies:** 5\
**Last updated:** [April 15, 2022, 9:04pm UTC](https://discourse.julialang.org/t/problems-using-int-as-a-real/79534 "2022-04-15T21:04:09Z")

</div>

Hi everyone, I have a function draw function draw(state::Vector{Segment}, boundary::Tuple{Vector{Real}, Vector{Real}}) x(s::Segment) = s.point\[1\] y(s::Segment) = s.point\[2\] display(plot(\[boundary\[1\]\[1\]; x.(…

---

## [Turn a vector of arrays into a matrix (The arrays become the rows of the matrix)](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 9:03pm UTC](https://discourse.julialang.org/t/turn-a-vector-of-arrays-into-a-matrix-the-arrays-become-the-rows-of-the-matrix/79550 "2022-04-15T21:03:34Z")

</div>

I have a vector of arrays as shown in the picture: How can I transform it into a matrix where the arrays become simply the rows of the matrix?

---

## [Using ZMQ as a simple gateway causes linux to report "Address already in use"](https://discourse.julialang.org/t/using-zmq-as-a-simple-gateway-causes-linux-to-report-address-already-in-use/79538)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 7:39pm UTC](https://discourse.julialang.org/t/using-zmq-as-a-simple-gateway-causes-linux-to-report-address-already-in-use/79538 "2022-04-15T19:39:46Z")

</div>

Hi there I want to send a message from one julia script (SOURCE ) to another (GATEWAY) and that one send the message onto another script ( DESTINATION). So the ZMQ flow is source PUSH to 5555 gateway PULL 5555 PUSH 5…

---

## [Flattening Tuples of Types that form the parameter of a supertype](https://discourse.julialang.org/t/flattening-tuples-of-types-that-form-the-parameter-of-a-supertype/79528)

<div class="topic-metadata">

**Author:** [@Dhruva2](https://discourse.julialang.org/u/Dhruva2)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 6:06pm UTC](https://discourse.julialang.org/t/flattening-tuples-of-types-that-form-the-parameter-of-a-supertype/79528 "2022-04-15T18:06:13Z")

</div>

Dear all, Below is an MWE of the code I’m writing. I’m using the abstract supertype Pairer as a ‘tag’. Its two type parameters specify the ionic inputs and outputs to concrete subtypes. Joiner and Extender make new c…

---

## [How to plot a best fit curve in Julia when the data is a time series?](https://discourse.julialang.org/t/how-to-plot-a-best-fit-curve-in-julia-when-the-data-is-a-time-series/79317)

<div class="topic-metadata">

**Author:** [@wu-lee](https://discourse.julialang.org/u/wu-lee)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 4:57pm UTC](https://discourse.julialang.org/t/how-to-plot-a-best-fit-curve-in-julia-when-the-data-is-a-time-series/79317 "2022-04-15T16:57:54Z")

</div>

This is a copy of my question here on Stack Overflow (unanswered at the time of writing). I’m trying to plot some measurements over time with a best-fit curve, using Julia’s plotting tools. There’s already a fairly good…

---

## [Multitask Learning in Flux](https://discourse.julialang.org/t/multitask-learning-in-flux/79535)

<div class="topic-metadata">

**Author:** [@Marco\_Repetto](https://discourse.julialang.org/u/Marco_Repetto)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 4:42pm UTC](https://discourse.julialang.org/t/multitask-learning-in-flux/79535 "2022-04-15T16:42:29Z")

</div>

I would like to implement an MTL NN in Flux but is not clear to me how to create a different set of layers for each task. Right now I’m outputting all the tasks in the final layer and using logitcrossentropy loss as all…

---

## [Creating a real-time film](https://discourse.julialang.org/t/creating-a-real-time-film/79467)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 7\
**Last updated:** [April 15, 2022, 1:35pm UTC](https://discourse.julialang.org/t/creating-a-real-time-film/79467 "2022-04-15T13:35:52Z")

</div>

Hi. I’m relatively new to Julia, but I’m writing a course for students that involves animating plots, so for example plotting a sequence of graphs showing a sine curve that is successively moved to the right, so that it …

---

## [\[ANN\] Nucleotide\_Essentials.jl - Support for some basic first steps in analyzing Illumina sequencing data!](https://discourse.julialang.org/t/ann-nucleotide-essentials-jl-support-for-some-basic-first-steps-in-analyzing-illumina-sequencing-data/79500)

<div class="topic-metadata">

**Author:** [@patrickhorve](https://discourse.julialang.org/u/patrickhorve)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 11:03am UTC](https://discourse.julialang.org/t/ann-nucleotide-essentials-jl-support-for-some-basic-first-steps-in-analyzing-illumina-sequencing-data/79500 "2022-04-15T11:03:37Z")

</div>

I just finished up throwing together some useful commands for working with Illumina sequencing data and thought it could be useful for others as well! Nucleotide\_Essentials.jl is a collection of tools for working with I…

---

## [How to use the \`by\` argument to \`searchsortedlast()\`](https://discourse.julialang.org/t/how-to-use-the-by-argument-to-searchsortedlast/79509)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 8:13am UTC](https://discourse.julialang.org/t/how-to-use-the-by-argument-to-searchsortedlast/79509 "2022-04-15T08:13:37Z")

</div>

I am trying to find the index of the last element of a such that f(a) \<= 10. You can do this with findlast: julia\> a = \[1, 2, 3, 4, 5\] 5-element Vector{Int64}: 1 2 3 4 5 julia\> findlast(x -\> x^2 ≤ 10, a) 3 Howeve…

---

## [Spectral Methods in Julia](https://discourse.julialang.org/t/spectral-methods-in-julia/79506)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 4\
**Last updated:** [April 15, 2022, 8:54am UTC](https://discourse.julialang.org/t/spectral-methods-in-julia/79506 "2022-04-15T08:54:28Z")

</div>

I want to solve Poisson equation in the ellipse via (pseudo)-spectral methods. I was thinking of using Dedalus via Pycall or something like that. But are there any good alternatives in Julia? Most things that I’ve found…

---

## [Julia Meetup Copenhagen - Restart?](https://discourse.julialang.org/t/julia-meetup-copenhagen-restart/78354)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 12\
**Last updated:** [April 15, 2022, 8:19am UTC](https://discourse.julialang.org/t/julia-meetup-copenhagen-restart/78354 "2022-04-15T08:19:37Z")

</div>

Dear all Julia users in and around Copenhagen, I am relatively new Julia user that have only been using Julia for the last couple of months, next to my primary work in Python. Now that Corona is more or less over, in D…

---

## [Lag in using sublime text + revise on a new laptop](https://discourse.julialang.org/t/lag-in-using-sublime-text-revise-on-a-new-laptop/79471)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [April 15, 2022, 7:57am UTC](https://discourse.julialang.org/t/lag-in-using-sublime-text-revise-on-a-new-laptop/79471 "2022-04-15T07:57:05Z")

</div>

I am encountering a somewhat strange issue that I haven’t faced before. I am editing a file in sublime text, and I save the file and switch over to an open session that has Revise loaded. For some reason, the update to t…

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

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