# Latest

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

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

**Page:** 1025

---

## [How to link axes on a 3D and a 2D plot?](https://discourse.julialang.org/t/how-to-link-axes-on-a-3d-and-a-2d-plot/81992)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-link-axes-on-a-3d-and-a-2d-plot/81992 "2022-05-31T13:48:09Z")

</div>

I have a side-by-side plot like this: and I wish to be able to link up the two common axes by I get a type error with linkxaxis! Am using GLMakie Any suggestions?

---

## [Anonymous function performance](https://discourse.julialang.org/t/anonymous-function-performance/81972)

<div class="topic-metadata">

**Author:** [@jerry\_ji](https://discourse.julialang.org/u/jerry_ji)\
**Replies:** 9\
**Last updated:** [May 31, 2022, 1:50pm UTC](https://discourse.julialang.org/t/anonymous-function-performance/81972 "2022-05-31T13:50:19Z")

</div>

Hi all, Following code shows performance penalty associate with anonymous function. However the @code\_llvm shows both code is the same. Am I benchmark it in a wrong way? using BenchmarkTools f1(x)=5+6x f2(x)=7+8x f…

---

## [\_generic\_matmatmul error in sciml\_train](https://discourse.julialang.org/t/generic-matmatmul-error-in-sciml-train/81976)

<div class="topic-metadata">

**Author:** [@linkz](https://discourse.julialang.org/u/linkz)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 1:20pm UTC](https://discourse.julialang.org/t/generic-matmatmul-error-in-sciml-train/81976 "2022-05-31T13:20:35Z")

</div>

Hello all, I am trying to train a neural ODE model using DiffEqFlux.sciml\_train. I have reasons to believe that if I use the outer vector product of the current state u as the neural net input, I might get better perform…

---

## [PackageCompiler.jl "Warning: it is not recommended to create an app/library without a preexisting manifest"](https://discourse.julialang.org/t/packagecompiler-jl-warning-it-is-not-recommended-to-create-an-app-library-without-a-preexisting-manifest/81942)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 1:19pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-warning-it-is-not-recommended-to-create-an-app-library-without-a-preexisting-manifest/81942 "2022-05-31T13:19:45Z")

</div>

What does this warning mean? PackageCompiler.create\_app("MyPackage", "MyPackageApp", precompile\_execution\_file="MyPackage/precompile.jl", force=true) ┌ Warning: it is not recommended to create an app/library without a p…

---

## [Get return type with given parameters](https://discourse.julialang.org/t/get-return-type-with-given-parameters/81986)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [May 31, 2022, 1:05pm UTC](https://discourse.julialang.org/t/get-return-type-with-given-parameters/81986 "2022-05-31T13:05:41Z")

</div>

Hi all :slight\_smile: Is there a function to compute the return type from given parameters/ parameter types? Cheers

---

## [SciML Style: A Style Guide for Stylish Julia Programmers](https://discourse.julialang.org/t/sciml-style-a-style-guide-for-stylish-julia-programmers/81672)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 14\
**Last updated:** [May 31, 2022, 12:55pm UTC](https://discourse.julialang.org/t/sciml-style-a-style-guide-for-stylish-julia-programmers/81672 "2022-05-31T12:55:05Z")

</div>

Hey everyone, To address some coding uniformity and correctness issues, we have implemented a SciML Style Guide. Details in the Github repo below: The SciML Style emphasizes the points which are essentially required …

---

## [Julia multithreading no performance improvement](https://discourse.julialang.org/t/julia-multithreading-no-performance-improvement/81957)

<div class="topic-metadata">

**Author:** [@111](https://discourse.julialang.org/u/111)\
**Replies:** 15\
**Last updated:** [May 31, 2022, 11:55am UTC](https://discourse.julialang.org/t/julia-multithreading-no-performance-improvement/81957 "2022-05-31T11:55:44Z")

</div>

please refer to the 5th post in English.

---

## [Optionally multi threaded for loop](https://discourse.julialang.org/t/optionally-multi-threaded-for-loop/81902)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 9\
**Last updated:** [May 31, 2022, 10:14am UTC](https://discourse.julialang.org/t/optionally-multi-threaded-for-loop/81902 "2022-05-31T10:14:32Z")

</div>

I have a function which contains a loop which should normally be run multi threaded using Threads.@threads, but sometimes I want to run it single threaded. function foo(multi\_thread=true) mt = multi\_thread ? Threads…

---

## [Broadcast two vectors to form a matrix](https://discourse.julialang.org/t/broadcast-two-vectors-to-form-a-matrix/81955)

<div class="topic-metadata">

**Author:** [@lazycoder](https://discourse.julialang.org/u/lazycoder)\
**Replies:** 9\
**Last updated:** [May 31, 2022, 9:48am UTC](https://discourse.julialang.org/t/broadcast-two-vectors-to-form-a-matrix/81955 "2022-05-31T09:48:32Z")

</div>

I made a simple function: f(x,y)=x+y res=\[f.(x,1:9) for x in 1:9\] But, now it outputs a vector of vectors. I’d like instead for it to be a matrix. Actually, I’m still very new to julia and I’ve grown pretty confused o…

---

## [Need help with example; Mixture Density Networks from Site](https://discourse.julialang.org/t/need-help-with-example-mixture-density-networks-from-site/81514)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 25\
**Last updated:** [May 31, 2022, 8:41am UTC](https://discourse.julialang.org/t/need-help-with-example-mixture-density-networks-from-site/81514 "2022-05-31T08:41:00Z")

</div>

Tried to reproduce the example that you can see on the site: Mixture Density Networks But I don’t know how to update the following lines of code: # lowest-level? data = \[(y, x)\] for epoch = 1:n\_epochs # forw…

---

## [PlotlyJS backend (for Plots.jl) not loading plot](https://discourse.julialang.org/t/plotlyjs-backend-for-plots-jl-not-loading-plot/81964)

<div class="topic-metadata">

**Author:** [@dynamic](https://discourse.julialang.org/u/dynamic)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 8:20am UTC](https://discourse.julialang.org/t/plotlyjs-backend-for-plots-jl-not-loading-plot/81964 "2022-05-31T08:20:14Z")

</div>

Hello, I am plotting the bifurcation diagram for the logistic map f\_{\\mu}(x)=\\mu x (1-x) using the Plots.jl package, and would like to make it interactive with the plotlyjs() backend. However, when I try calling plotlyjs…

---

## [Package development tools - in environment but not dependency](https://discourse.julialang.org/t/package-development-tools-in-environment-but-not-dependency/81960)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 6\
**Last updated:** [May 31, 2022, 7:20am UTC](https://discourse.julialang.org/t/package-development-tools-in-environment-but-not-dependency/81960 "2022-05-31T07:20:44Z")

</div>

Hi, I am getting a package EspyInsideFunction.jl fairly formalized (testing, doc, registration…). But I still wonder about one thing: as part of development work I use Documenter.jl, Test.jl and ProfileView.jl, so they…

---

## [Offline installtion of a package (PyPlot) in JULIA](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765)

<div class="topic-metadata">

**Author:** [@\_SACHIN](https://discourse.julialang.org/u/_SACHIN)\
**Replies:** 4\
**Last updated:** [May 31, 2022, 7:18am UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765 "2022-05-31T07:18:08Z")

</div>

In Julia, A package can be installed through using Pkg; Pkg.add("PyPlot") directly. but how the same package can be installed offline ? thanks. \`

---

## [Number of rows / columns for facet wrap in AlgebraOfGraphics](https://discourse.julialang.org/t/number-of-rows-columns-for-facet-wrap-in-algebraofgraphics/81769)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 6:35am UTC](https://discourse.julialang.org/t/number-of-rows-columns-for-facet-wrap-in-algebraofgraphics/81769 "2022-05-31T06:35:40Z")

</div>

Does anyone know of an easy way to specify the number of rows / columns when facet wrapping in AOG? E.g., in the following example I’d like to specify a 3x2 layout instead of 2x3: df = (x=rand(100), y=rand(100), l=rand…

---

## [Contents of the function run well when timed alone, but not when they are in a loop inside the function](https://discourse.julialang.org/t/contents-of-the-function-run-well-when-timed-alone-but-not-when-they-are-in-a-loop-inside-the-function/76886)

<div class="topic-metadata">

**Author:** [@ayushinav](https://discourse.julialang.org/u/ayushinav)\
**Replies:** 8\
**Last updated:** [May 31, 2022, 5:02am UTC](https://discourse.julialang.org/t/contents-of-the-function-run-well-when-timed-alone-but-not-when-they-are-in-a-loop-inside-the-function/76886 "2022-05-31T05:02:21Z")

</div>

Hello all, I am new to Julia and have been making progress with implementing its performance utilities. Generally, I am able to get some results or an understanding of how things are going, but not in this case. The fol…

---

## [Save each simulation result on master node during parameter scanning](https://discourse.julialang.org/t/save-each-simulation-result-on-master-node-during-parameter-scanning/81953)

<div class="topic-metadata">

**Author:** [@jtoda](https://discourse.julialang.org/u/jtoda)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 2:31am UTC](https://discourse.julialang.org/t/save-each-simulation-result-on-master-node-during-parameter-scanning/81953 "2022-05-31T02:31:53Z")

</div>

Hello ! I want to write code that stores data for a huge amount of simulation. I want to save data for each experiment, and the data storage location is the master node. Below is an example code, do you have any bette…

---

## [How to save a vector into NetCDF?](https://discourse.julialang.org/t/how-to-save-a-vector-into-netcdf/81943)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 2:53am UTC](https://discourse.julialang.org/t/how-to-save-a-vector-into-netcdf/81943 "2022-05-31T02:53:07Z")

</div>

I’m trying to use NCDatasets.jl to create a NetCDF file. I wonder if anyone could show me how to save a vector into a NetCDF variable? I have a vector D as below: D = fill(2022,(18,)); Right now, the only way I could …

---

## [Using unregistered packages with Pluto](https://discourse.julialang.org/t/using-unregistered-packages-with-pluto/72483)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 6\
**Last updated:** [May 31, 2022, 12:28am UTC](https://discourse.julialang.org/t/using-unregistered-packages-with-pluto/72483 "2022-05-31T00:28:12Z")

</div>

How can I use an unregistered package without breaking Pluto’s package management system? I read about the custom local registry, but I do not want to go that route.

---

## [\`UndefVarError: repo not defined\` when add pkg on v1.0](https://discourse.julialang.org/t/undefvarerror-repo-not-defined-when-add-pkg-on-v1-0/15860)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 3\
**Last updated:** [May 30, 2022, 11:18pm UTC](https://discourse.julialang.org/t/undefvarerror-repo-not-defined-when-add-pkg-on-v1-0/15860 "2022-05-30T23:18:52Z")

</div>

I downloaded Julia binary and simlinked as julia-1.0.1. When I try to add packages, the following error: fushimi at step in ~ ↪ julia-1.0.1 \_ \_ \_ \_(\_)\_ | Documentation: https://docs.juliala…

---

## [Extra allocations/time when a function is returned from another function than defined directly](https://discourse.julialang.org/t/extra-allocations-time-when-a-function-is-returned-from-another-function-than-defined-directly/81933)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 6\
**Last updated:** [May 30, 2022, 11:18pm UTC](https://discourse.julialang.org/t/extra-allocations-time-when-a-function-is-returned-from-another-function-than-defined-directly/81933 "2022-05-30T23:18:30Z")

</div>

The code below compares the results when computing a function when it is returned from another to when it is defined directly. Why is the returned version so much slower, and require any allocations at all? I can see fro…

---

## [Taking a matrix and creating a 2Tuple with first element Row number, and second element row?](https://discourse.julialang.org/t/taking-a-matrix-and-creating-a-2tuple-with-first-element-row-number-and-second-element-row/81934)

<div class="topic-metadata">

**Author:** [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 11:05pm UTC](https://discourse.julialang.org/t/taking-a-matrix-and-creating-a-2tuple-with-first-element-row-number-and-second-element-row/81934 "2022-05-30T23:05:33Z")

</div>

Hello guys, I hope you are doing fine. I would like to take a matrix and create a Tuple, where the first element is the row number (an index) and the second element is the row (a vector). graph =\[0 2 4 0 0 0; 0 0 1 7 0…

---

## [When does the Julia compiler step in](https://discourse.julialang.org/t/when-does-the-julia-compiler-step-in/81930)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 5\
**Last updated:** [May 30, 2022, 10:07pm UTC](https://discourse.julialang.org/t/when-does-the-julia-compiler-step-in/81930 "2022-05-30T22:07:29Z")

</div>

I understand that Julia is a compiled language and that it only generates code (with the help of LLVM) and the CPU is what executes it. My question is about when/how exactly does Julia step in while the code is executin…

---

## [Bar plot with different baseline for each bar?](https://discourse.julialang.org/t/bar-plot-with-different-baseline-for-each-bar/81779)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 4\
**Last updated:** [May 30, 2022, 9:35pm UTC](https://discourse.julialang.org/t/bar-plot-with-different-baseline-for-each-bar/81779 "2022-05-30T21:35:00Z")

</div>

using Plots; bar(1:4) gets you 4 bars, each with their “base” at y = 0, and the $i$th bar has height i. Schematically, that’s |x| |x| |x| |x| |x| |x| |x| |x| |x| |x| Is there a simple way to …

---

## [What are the extra arguments of some BLAS functions?](https://discourse.julialang.org/t/what-are-the-extra-arguments-of-some-blas-functions/81931)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 9:18pm UTC](https://discourse.julialang.org/t/what-are-the-extra-arguments-of-some-blas-functions/81931 "2022-05-30T21:18:10Z")

</div>

Some BLAS functions called from the Julia standard library are passed extra arguments. For instance: ccall((@blasfunc(dtrsm\_), libblastrampoline), Cvoid, (Ref{UInt8}, Ref{UInt8}, Ref{UInt8}, Ref{UInt8}, …

---

## [Compile Time Dictionary](https://discourse.julialang.org/t/compile-time-dictionary/81914)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 34\
**Last updated:** [May 30, 2022, 7:27pm UTC](https://discourse.julialang.org/t/compile-time-dictionary/81914 "2022-05-30T19:27:41Z")

</div>

Suppose I have a function that looks somewhat like the following: foo(x::T) where {T} = begin v1 = lookup(T) # Lookup some value specified by type T # Perform work with v1 # Return end My question is can I …

---

## [Does Manifest.toml belong in the repository?](https://discourse.julialang.org/t/does-manifest-toml-belong-in-the-repository/12029)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [May 30, 2022, 6:40pm UTC](https://discourse.julialang.org/t/does-manifest-toml-belong-in-the-repository/12029 "2022-05-30T18:40:34Z")

</div>

Sorry if this is a dumb question, but I could not figure this out. It seems to be generated dynamically when missing, so should I add it to the git repo?

---

## [Workaround to Symbolics.build\_functions returning NaN](https://discourse.julialang.org/t/workaround-to-symbolics-build-functions-returning-nan/81925)

<div class="topic-metadata">

**Author:** [@Aleksandr\_Mikheev](https://discourse.julialang.org/u/Aleksandr_Mikheev)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 6:20pm UTC](https://discourse.julialang.org/t/workaround-to-symbolics-build-functions-returning-nan/81925 "2022-05-30T18:20:30Z")

</div>

I am currently using build\_function from Symbolics.jl to generate Julia-type functions that I later work with (numerically integrate, etc.). Recently, I was not able to numerically integrate one of such-obtained function…

---

## [(Idiomatic) functions on vectors containing elements of various types](https://discourse.julialang.org/t/idiomatic-functions-on-vectors-containing-elements-of-various-types/81923)

<div class="topic-metadata">

**Author:** [@lvignoli](https://discourse.julialang.org/u/lvignoli)\
**Replies:** 7\
**Last updated:** [May 30, 2022, 6:14pm UTC](https://discourse.julialang.org/t/idiomatic-functions-on-vectors-containing-elements-of-various-types/81923 "2022-05-30T18:14:59Z")

</div>

Hello everyone, I am fairly new to Julia. I love it so far, but I struggle a bit with the type system right now. I have a collection of concrete types A,B,C, D … that implements an abstract type Z. I would like to con…

---

## [Parametric supertyping using struct field parameters](https://discourse.julialang.org/t/parametric-supertyping-using-struct-field-parameters/81920)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 3\
**Last updated:** [May 30, 2022, 5:59pm UTC](https://discourse.julialang.org/t/parametric-supertyping-using-struct-field-parameters/81920 "2022-05-30T17:59:16Z")

</div>

Hello, I’m trying to play with supertypes but I’m encountering an issue so I made this MWE: abstract type AbstractFoo{T} end struct Foo{T} \<: AbstractFoo{T} x::T end So far so good. Now I would like to define a w…

---

## [AdaptiveMCMC](https://discourse.julialang.org/t/adaptivemcmc/81399)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 9\
**Last updated:** [May 30, 2022, 5:20pm UTC](https://discourse.julialang.org/t/adaptivemcmc/81399 "2022-05-30T17:20:17Z")

</div>

I wrote a Metropolis-Hastings code manually for a problem that samples arrays from a custom distribution that can be found here https://github.com/marouanehanhasse/QComm/blob/main/distributions.jl, before i was using Kla…

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

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