# Latest

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

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

**Page:** 1010

---

## [Plot layout using Plots.jl](https://discourse.julialang.org/t/plot-layout-using-plots-jl/82819)

<div class="topic-metadata">

**Author:** [@Aditya\_Rai](https://discourse.julialang.org/u/Aditya_Rai)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 9:56pm UTC](https://discourse.julialang.org/t/plot-layout-using-plots-jl/82819 "2022-06-15T21:56:29Z")

</div>

Hello everyone, I was trying too create a specific layout of plots as per my needs and ran into a problem. I am using plot.jl with GR backend. My current custom plot layout looks like this: However I want the last…

---

## [Variables & Printing Lecture mismatch with notebook](https://discourse.julialang.org/t/variables-printing-lecture-mismatch-with-notebook/82842)

<div class="topic-metadata">

**Author:** [@JxA](https://discourse.julialang.org/u/JxA)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 9:43pm UTC](https://discourse.julialang.org/t/variables-printing-lecture-mismatch-with-notebook/82842 "2022-06-15T21:43:10Z")

</div>

While watching the first lecture I noticed that the notebook I cloned from github was missing the link to the Julia documentation as mentioned in the video. Is this an oversight or purposeful?

---

## [Incomplete description of type vector of pairs](https://discourse.julialang.org/t/incomplete-description-of-type-vector-of-pairs/82706)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 6\
**Last updated:** [June 15, 2022, 9:41pm UTC](https://discourse.julialang.org/t/incomplete-description-of-type-vector-of-pairs/82706 "2022-06-15T21:41:55Z")

</div>

Why does Julia not fully describe the type of the elements of the pair vector? shouldn’t it be the union of the types of the individual elements of the vector? Pair{Tuple{Char, Int64, Int64}, Float64} #and Pair{Tuple{C…

---

## [Yield() not behaving as expected](https://discourse.julialang.org/t/yield-not-behaving-as-expected/82784)

<div class="topic-metadata">

**Author:** [@mjg](https://discourse.julialang.org/u/mjg)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 9:02pm UTC](https://discourse.julialang.org/t/yield-not-behaving-as-expected/82784 "2022-06-15T21:02:11Z")

</div>

I’m trying to make a producer-consumer threaded program, but can’t figure out why yield seems not to be ceding control to worker tasks most of the time. Simplified Example I’ve created a much simpler example that replic…

---

## [Zygote very slow relative to ForwardDiff?](https://discourse.julialang.org/t/zygote-very-slow-relative-to-forwarddiff/82837)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 8:56pm UTC](https://discourse.julialang.org/t/zygote-very-slow-relative-to-forwarddiff/82837 "2022-06-15T20:56:59Z")

</div>

I’m trying to speed up fitting a model with DynamicHMC.jl, so I was experimenting with different autodiff packages. I’ve seen Zygote mentioned quite a bit as a promising autodiff package, but the performance seems to be…

---

## [Understanding allocation pattern when using sort!()](https://discourse.julialang.org/t/understanding-allocation-pattern-when-using-sort/82794)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 12\
**Last updated:** [June 15, 2022, 8:42pm UTC](https://discourse.julialang.org/t/understanding-allocation-pattern-when-using-sort/82794 "2022-06-15T20:42:07Z")

</div>

Looked a bit closer into allocations of sort!() based on \`sort!()\` and \`sort()\` give me runtime dispatches and noticed the following which I’m trying to understand. using BenchmarkTools const N = 100 function makevect…

---

## [Making Word Embedding Layer in Julia](https://discourse.julialang.org/t/making-word-embedding-layer-in-julia/82829)

<div class="topic-metadata">

**Author:** [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 8:17pm UTC](https://discourse.julialang.org/t/making-word-embedding-layer-in-julia/82829 "2022-06-15T20:17:23Z")

</div>

I am trying to make a word embedding layer in a flux model in Julia and I am using this tutorial as a reference https://spcman.github.io/getting-to-know-julia/deep-learning/nlp/flux-embeddings-tutorial-1/. I believe it …

---

## [Display ArchGDAL geotiff raster wants unsigned type?](https://discourse.julialang.org/t/display-archgdal-geotiff-raster-wants-unsigned-type/82813)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 8:02pm UTC](https://discourse.julialang.org/t/display-archgdal-geotiff-raster-wants-unsigned-type/82813 "2022-06-15T20:02:06Z")

</div>

I wanted to look at this raster with ArchGDAL: using ArchGDAL (loaded raster from disk) julia\> e GDAL Dataset (Driver: GTiff/GeoTIFF) File(s): /Users/florian.oswald/Downloads/population\_fra\_2019-07-01\_geotiff/popula…

---

## [Sorted product of infinite iterators](https://discourse.julialang.org/t/sorted-product-of-infinite-iterators/82755)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 9\
**Last updated:** [June 15, 2022, 7:57pm UTC](https://discourse.julialang.org/t/sorted-product-of-infinite-iterators/82755 "2022-06-15T19:57:10Z")

</div>

I have a collection of (potentially infinite) sorted iterators I1, I2, I3, … and a nondecreasing value function sort\_by((x1, x2, x3, ...)). I want the sorted cartesian product of these iterators. I’m thinking I can do t…

---

## [Is the julia compiler smart enough to treat \`x in (y,)\` the same as \`x == y\`?](https://discourse.julialang.org/t/is-the-julia-compiler-smart-enough-to-treat-x-in-y-the-same-as-x-y/82830)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 7:36pm UTC](https://discourse.julialang.org/t/is-the-julia-compiler-smart-enough-to-treat-x-in-y-the-same-as-x-y/82830 "2022-06-15T19:36:47Z")

</div>

I’m just wondering if the julia compiler can treat a expression like x in (y,) the same as x == y, assuming that the right argument for in is always a 1-sized tuple. Moreover, what would be the performance difference bet…

---

## [I don't undestand allocations](https://discourse.julialang.org/t/i-dont-undestand-allocations/82789)

<div class="topic-metadata">

**Author:** [@uliano](https://discourse.julialang.org/u/uliano)\
**Replies:** 16\
**Last updated:** [June 15, 2022, 6:32pm UTC](https://discourse.julialang.org/t/i-dont-undestand-allocations/82789 "2022-06-15T18:32:48Z")

</div>

I was trying to investigate why write(file, hton(Float32(somereal))) was allocating and I come up with this simple test, run with --track-allocation=user, whose results left me more puzzled than before. - …

---

## [How to reduce Bikeshedding](https://discourse.julialang.org/t/how-to-reduce-bikeshedding/82552)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [June 15, 2022, 5:33pm UTC](https://discourse.julialang.org/t/how-to-reduce-bikeshedding/82552 "2022-06-15T17:33:41Z")

</div>

In the last months I see more articles that draw a lot of attention on topics that are - from my point of view - not very important. On the FreeBSD mailing list they call this bikeshedding, see bikeshedding - Wiktionary …

---

## [Use javascript library with Documenter.jl](https://discourse.julialang.org/t/use-javascript-library-with-documenter-jl/34984)

<div class="topic-metadata">

**Author:** [@mopg](https://discourse.julialang.org/u/mopg)\
**Replies:** 7\
**Last updated:** [June 15, 2022, 4:09pm UTC](https://discourse.julialang.org/t/use-javascript-library-with-documenter-jl/34984 "2022-06-15T16:09:08Z")

</div>

Does anyone know if it is possible to include an external javascript library with Documenter.jl? For example, I am trying to draw a flowchart, which should be possible with Markdown and flowchart.js, for example see exa…

---

## [OpenAnalytics Architect](https://discourse.julialang.org/t/openanalytics-architect/26186)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [June 15, 2022, 3:49pm UTC](https://discourse.julialang.org/t/openanalytics-architect/26186 "2022-06-15T15:49:43Z")

</div>

Just saw this new IDE for data science Products Supposedly supports Julia

---

## [Could not start Julia server; problem with julia.executablePath (on MacOS)](https://discourse.julialang.org/t/could-not-start-julia-server-problem-with-julia-executablepath-on-macos/82779)

<div class="topic-metadata">

**Author:** [@fsmith001](https://discourse.julialang.org/u/fsmith001)\
**Replies:** 11\
**Last updated:** [June 15, 2022, 3:42pm UTC](https://discourse.julialang.org/t/could-not-start-julia-server-problem-with-julia-executablepath-on-macos/82779 "2022-06-15T15:42:23Z")

</div>

Hello everyone. I’m just getting started using VS Code with the Julia extension and when I try to run some very simple Julia code, this error comes up about the executable Path: “Could not start the Julia language server…

---

## [GR dependency causing issues to running Plots package](https://discourse.julialang.org/t/gr-dependency-causing-issues-to-running-plots-package/82816)

<div class="topic-metadata">

**Author:** [@devnithw](https://discourse.julialang.org/u/devnithw)\
**Replies:** 0\
**Last updated:** [June 15, 2022, 2:58pm UTC](https://discourse.julialang.org/t/gr-dependency-causing-issues-to-running-plots-package/82816 "2022-06-15T14:58:39Z")

</div>

I tried adding the Plots package and when I’m importing and using it I keep getting the following error. I think it has something to do with the GR package. ERROR: LoadError: ArgumentError: not a path: C:\\Users\\ASUS\\.ju…

---

## [UndefVarError: DataLoader not defined](https://discourse.julialang.org/t/undefvarerror-dataloader-not-defined/82759)

<div class="topic-metadata">

**Author:** [@soczek322](https://discourse.julialang.org/u/soczek322)\
**Replies:** 3\
**Last updated:** [June 15, 2022, 2:56pm UTC](https://discourse.julialang.org/t/undefvarerror-dataloader-not-defined/82759 "2022-06-15T14:56:06Z")

</div>

Hi, I have the latest flux version and I’ve tried everything I could find online but I still get this error when trying to use the DataLoader. Anyone encounter it before and found a fix (if it changes anything I’m runni…

---

## [Rewriting "Example 2: Calling Julia from Python" in Julia](https://discourse.julialang.org/t/rewriting-example-2-calling-julia-from-python-in-julia/82693)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 2:42pm UTC](https://discourse.julialang.org/t/rewriting-example-2-calling-julia-from-python-in-julia/82693 "2022-06-15T14:42:33Z")

</div>

I try to take the script shown in the link to Julia. example-2-calling-julia-from-python But in the following lines: loss = jl.seval("m -\> (x, y) -\> Flux.Losses.me(m(x), y)")(model) jl.Flux.train\_b( loss, jl.Fl…

---

## [\`sort!()\` and \`sort()\` give me runtime dispatches](https://discourse.julialang.org/t/sort-and-sort-give-me-runtime-dispatches/82715)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 2:21pm UTC](https://discourse.julialang.org/t/sort-and-sort-give-me-runtime-dispatches/82715 "2022-06-15T14:21:48Z")

</div>

I have been learning how to use JET.jl to check my code for type instabilities, and I notice that it keeps giving me a runtime dispatch after calling Julia’s built-iin sort routines. This happens even when my functions h…

---

## [Dash datatable using a nested dict anyone done it?](https://discourse.julialang.org/t/dash-datatable-using-a-nested-dict-anyone-done-it/82710)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 7\
**Last updated:** [June 15, 2022, 12:31pm UTC](https://discourse.julialang.org/t/dash-datatable-using-a-nested-dict-anyone-done-it/82710 "2022-06-15T12:31:21Z")

</div>

Hi there I’m looking for an example I can examine that loads a nested dict into a data table. I can’t seem to find any. I see many for dataframes but none for dict like this one. ata\_flow = Dict{String, Any}("AMZN" =\> …

---

## [Rigorous spectral opnorm](https://discourse.julialang.org/t/rigorous-spectral-opnorm/82739)

<div class="topic-metadata">

**Author:** [@mathmath](https://discourse.julialang.org/u/mathmath)\
**Replies:** 17\
**Last updated:** [June 15, 2022, 12:28pm UTC](https://discourse.julialang.org/t/rigorous-spectral-opnorm/82739 "2022-06-15T12:28:55Z")

</div>

I am wondering if there exists a way to rigorously compute spectral norms (an upper bound) of matrices (so the usual 2-norm for matrices) using the IntervalArithmetics package (GitHub - JuliaIntervals/IntervalArithmetic.…

---

## [Accelerate autodiff in Zygote.jl](https://discourse.julialang.org/t/accelerate-autodiff-in-zygote-jl/66454)

<div class="topic-metadata">

**Author:** [@Richard-Li](https://discourse.julialang.org/u/Richard-Li)\
**Replies:** 9\
**Last updated:** [June 15, 2022, 12:26pm UTC](https://discourse.julialang.org/t/accelerate-autodiff-in-zygote-jl/66454 "2022-06-15T12:26:35Z")

</div>

Hi there, I’d like to know if there is any performance tip for using Zygote.jl. I am calculating the Hessian matrix using autodiff, and now the autodiff part runs quite slow, and I’d like to accelerate it. e.g. 4.3…

---

## [How to Plot Arc of a circle with pyplot and Plots?](https://discourse.julialang.org/t/how-to-plot-arc-of-a-circle-with-pyplot-and-plots/82798)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 10:09am UTC](https://discourse.julialang.org/t/how-to-plot-arc-of-a-circle-with-pyplot-and-plots/82798 "2022-06-15T10:09:59Z")

</div>

Hi all, I have created this unit circle, and I want to plot an arc for the circle from point P to point (1,0) using Plots and pyplot. I want to bold the arc. Here is my code, I believe I might only need to add a line of…

---

## [NCDatasets.jl: define values of dimensions](https://discourse.julialang.org/t/ncdatasets-jl-define-values-of-dimensions/65892)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 9:48am UTC](https://discourse.julialang.org/t/ncdatasets-jl-define-values-of-dimensions/65892 "2022-06-15T09:48:03Z")

</div>

Dear all, Using NCDatasets, To write a data to netcdf, i can define the dimensions with this way: ds = NCDataset("/tmp/test.nc","c") defDim(ds,"lon",100) However, is there any way to define the values of my dimension…

---

## [ModelingToolkit @named](https://discourse.julialang.org/t/modelingtoolkit-named/82772)

<div class="topic-metadata">

**Author:** [@ccccc](https://discourse.julialang.org/u/ccccc)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 9:09am UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772 "2022-06-15T09:09:15Z")

</div>

I am following the modeling toolkit examples, I am copy/pasting from: https://mtk.sciml.ai/stable/tutorials/ode\_modeling/ but @named is not working. Does anyone know why? @named fol = ODESystem(\[ D(x) ~ (1 - x)/τ\]) …

---

## [Parsing Nanosecond Timestamps into DateTime](https://discourse.julialang.org/t/parsing-nanosecond-timestamps-into-datetime/82302)

<div class="topic-metadata">

**Author:** [@JohnDuffy](https://discourse.julialang.org/u/JohnDuffy)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 8:10am UTC](https://discourse.julialang.org/t/parsing-nanosecond-timestamps-into-datetime/82302 "2022-06-15T08:10:41Z")

</div>

Hi I receive streamed JSON data with nanosecond precision timestamps. I don’t need nanosecond precision for my application, millisecond precision is good enough, but I’m struggling to parse my timestamp string into a Da…

---

## [How to print a single-spaced newline in Pluto Markdown cell?](https://discourse.julialang.org/t/how-to-print-a-single-spaced-newline-in-pluto-markdown-cell/61138)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 3\
**Last updated:** [June 15, 2022, 7:33am UTC](https://discourse.julialang.org/t/how-to-print-a-single-spaced-newline-in-pluto-markdown-cell/61138 "2022-06-15T07:33:22Z")

</div>

Hi everyone, Is it possible to have a single spaced line-break inside a markdown block in a pluto cell of the form md""" \*something\* newline \*something else """ I read that markdown should support either multiple spa…

---

## [MultivariateStats (PCA)](https://discourse.julialang.org/t/multivariatestats-pca/82734)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 10\
**Last updated:** [June 15, 2022, 7:05am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734 "2022-06-15T07:05:56Z")

</div>

and Please help me in error. I am using Manjaro Linux.

---

## [Unable to set parameter for GAMS package](https://discourse.julialang.org/t/unable-to-set-parameter-for-gams-package/82780)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 6:59am UTC](https://discourse.julialang.org/t/unable-to-set-parameter-for-gams-package/82780 "2022-06-15T06:59:02Z")

</div>

I am having a problem regarding choosing parameters for the solvers KNITRO or CONOPT through the GAMS package. Here is my model. And here are the solvers options for KNITRO and CONOPT. using GAMS, JuMP model = Model(GAM…

---

## [Garbage-collect intermediate module variables](https://discourse.julialang.org/t/garbage-collect-intermediate-module-variables/82747)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [June 15, 2022, 6:53am UTC](https://discourse.julialang.org/t/garbage-collect-intermediate-module-variables/82747 "2022-06-15T06:53:23Z")

</div>

I often want to export some values (variables) from a module and am wondering how to delete intermediate variables. As an illustration: module somemod export var1, var2, . . . a1 = . . . # intermediate variables …

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

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