# Latest

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

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

**Page:** 1043

---

## [\[ANN\] Accouncing LazyModules.jl: delay the heavy dependency loading to its first use](https://discourse.julialang.org/t/ann-accouncing-lazymodules-jl-delay-the-heavy-dependency-loading-to-its-first-use/80890)

<div class="topic-metadata">

**Author:** [@JohnnyChen94](https://discourse.julialang.org/u/JohnnyChen94)\
**Replies:** 8\
**Last updated:** [May 12, 2022, 1:15pm UTC](https://discourse.julialang.org/t/ann-accouncing-lazymodules-jl-delay-the-heavy-dependency-loading-to-its-first-use/80890 "2022-05-12T13:15:52Z")

</div>

Disclamer: This package is not for end-users; it’s for package developers. This package does not really make package loading faster; it only delays the package loading to its first use. But sometimes, you never get a c…

---

## [Convert torch tensor in julia type with PyCall.jl](https://discourse.julialang.org/t/convert-torch-tensor-in-julia-type-with-pycall-jl/80899)

<div class="topic-metadata">

**Author:** [@FedericoCM](https://discourse.julialang.org/u/FedericoCM)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 1:14pm UTC](https://discourse.julialang.org/t/convert-torch-tensor-in-julia-type-with-pycall-jl/80899 "2022-05-12T13:14:43Z")

</div>

Hi everybody, It’s my first time that I use PyCall and I have a problem that I could not manage to solve. I’m using julia to simulate biological neural networks and I’m trying to use a program written in python (that u…

---

## [JLD2: ERROR: type DataType has no field mutable](https://discourse.julialang.org/t/jld2-error-type-datatype-has-no-field-mutable/80431)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 5\
**Last updated:** [May 12, 2022, 12:56pm UTC](https://discourse.julialang.org/t/jld2-error-type-datatype-has-no-field-mutable/80431 "2022-05-12T12:56:21Z")

</div>

Hello, Following this, I want to save a policy. The code is: solver = ValueIterationSolver(max\_iterations = 70) policy = solve(solver, mdp) using JLD2, FileIO save("my\_policy.jld2", "policy", policy) With: ERROR: …

---

## [Is there a function similar to numpy unique with inverse?](https://discourse.julialang.org/t/is-there-a-function-similar-to-numpy-unique-with-inverse/80949)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 5\
**Last updated:** [May 12, 2022, 12:11pm UTC](https://discourse.julialang.org/t/is-there-a-function-similar-to-numpy-unique-with-inverse/80949 "2022-05-12T12:11:16Z")

</div>

In python numpy, I can write my code as, unique\_vals, reverse\_ids = np.unique(vals, return\_inverse=True) Here, reverse\_ids is the list of indices such that, unique\_vals\[reverse\_ids\] == vals Is there something similar…

---

## [Gadfly - subplot\_grid is not readjusting the x axis width for free\_x\_axis = true, if xlabels are different in subplots](https://discourse.julialang.org/t/gadfly-subplot-grid-is-not-readjusting-the-x-axis-width-for-free-x-axis-true-if-xlabels-are-different-in-subplots/80950)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 11:03am UTC](https://discourse.julialang.org/t/gadfly-subplot-grid-is-not-readjusting-the-x-axis-width-for-free-x-axis-true-if-xlabels-are-different-in-subplots/80950 "2022-05-12T11:03:04Z")

</div>

Hello, This issue is related to using subplot\_grid in Gadfly. The issue is, given the xlabels in the two subplots are different due to my data points, even when I do free\_x\_axis = true, the plot retains the locations of…

---

## [How to add DataFrames to dependencies of package Reinforce?](https://discourse.julialang.org/t/how-to-add-dataframes-to-dependencies-of-package-reinforce/80939)

<div class="topic-metadata">

**Author:** [@Hupdup](https://discourse.julialang.org/u/Hupdup)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 9:50am UTC](https://discourse.julialang.org/t/how-to-add-dataframes-to-dependencies-of-package-reinforce/80939 "2022-05-12T09:50:20Z")

</div>

Hi everyone, I am trying to add DataFrames to the Dependencies of Reinforce. Do you know how to do that? I tried the following: but when I want to use the Package it still says: “Warning: Package Reinforce does no…

---

## [Genie initializers is exit](https://discourse.julialang.org/t/genie-initializers-is-exit/80927)

<div class="topic-metadata">

**Author:** [@YANTAN520](https://discourse.julialang.org/u/YANTAN520)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 9:30am UTC](https://discourse.julialang.org/t/genie-initializers-is-exit/80927 "2022-05-12T09:30:55Z")

</div>

when I use Genie’app, REPL will exit. Why is this? Genie V4.18.0 SearchLight v2.2.0

---

## [Easiest way to deploy a Pluto notebook for others to play around with?](https://discourse.julialang.org/t/easiest-way-to-deploy-a-pluto-notebook-for-others-to-play-around-with/79086)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 9:06am UTC](https://discourse.julialang.org/t/easiest-way-to-deploy-a-pluto-notebook-for-others-to-play-around-with/79086 "2022-05-12T09:06:50Z")

</div>

Hello everyone! I have created a Pluto notebook, which I would like to make publicly available so that people can use it and check it out. It seems that the easiest way would be to use Pluto on Binder, but I had difficu…

---

## [GDAL/OGR documentation problem (S-57)](https://discourse.julialang.org/t/gdal-ogr-documentation-problem-s-57/80551)

<div class="topic-metadata">

**Author:** [@frits45](https://discourse.julialang.org/u/frits45)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 8:54am UTC](https://discourse.julialang.org/t/gdal-ogr-documentation-problem-s-57/80551 "2022-05-12T08:54:13Z")

</div>

Hello, I have a Python-program to analyse data and I am rewriting it in Julia. The Python version needs over 14 hours, Julia will probably end in under 2 hours. Now my problem. The result needs to be plotted on a marit…

---

## [How to create a range out of a continuous variable in Julia?](https://discourse.julialang.org/t/how-to-create-a-range-out-of-a-continuous-variable-in-julia/80938)

<div class="topic-metadata">

**Author:** [@Jad](https://discourse.julialang.org/u/Jad)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 8:17am UTC](https://discourse.julialang.org/t/how-to-create-a-range-out-of-a-continuous-variable-in-julia/80938 "2022-05-12T08:17:49Z")

</div>

I am running the average marginal effects in Julia using the Effects package. My aim is to see how weight change between men and women at different ages. As you can see in the output below, it runs the average marginal e…

---

## [Interrupting Flux.jl training without killing kernel](https://discourse.julialang.org/t/interrupting-flux-jl-training-without-killing-kernel/80858)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 7\
**Last updated:** [May 12, 2022, 7:36am UTC](https://discourse.julialang.org/t/interrupting-flux-jl-training-without-killing-kernel/80858 "2022-05-12T07:36:21Z")

</div>

Hello. My informal Flux workflow involves running training routines such as the following in the REPL or Jupyter cells: # example training loop function train\_discriminator() showloss = Flux.throttle(2) do batch, lo…

---

## [\[Makie.jl\] All the symbols shown as boxes](https://discourse.julialang.org/t/makie-jl-all-the-symbols-shown-as-boxes/80933)

<div class="topic-metadata">

**Author:** [@kunzaatko](https://discourse.julialang.org/u/kunzaatko)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 7:30am UTC](https://discourse.julialang.org/t/makie-jl-all-the-symbols-shown-as-boxes/80933 "2022-05-12T07:30:20Z")

</div>

Yesterday, Makie started showing boxes instead of all symbols in my plots. I tried everything that I could think of and don’t know what else to try to fix it. Can you point me in a direction? I tried downgrading Makie …

---

## [Makie aspect ratio 3D plot](https://discourse.julialang.org/t/makie-aspect-ratio-3d-plot/57705)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 8\
**Last updated:** [May 12, 2022, 5:34am UTC](https://discourse.julialang.org/t/makie-aspect-ratio-3d-plot/57705 "2022-05-12T05:34:01Z")

</div>

When plotting into an LScene and by using an Axis, the output figure is always rescaled into the data limits, making sometimes hard to see things, if one of the variables is too large or to low. MWE using GLMakie fig =…

---

## [Support for non-Int indices](https://discourse.julialang.org/t/support-for-non-int-indices/80920)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 4\
**Last updated:** [May 12, 2022, 4:58am UTC](https://discourse.julialang.org/t/support-for-non-int-indices/80920 "2022-05-12T04:58:27Z")

</div>

What is the current level of support for array indices other than Int? other than Integer? What are the plans going forward to support (or not) these?

---

## [WARNING: using x.x in module Main conflicts with an existing identifier](https://discourse.julialang.org/t/warning-using-x-x-in-module-main-conflicts-with-an-existing-identifier/80819)

<div class="topic-metadata">

**Author:** [@BrianOConner](https://discourse.julialang.org/u/BrianOConner)\
**Replies:** 7\
**Last updated:** [May 12, 2022, 4:24am UTC](https://discourse.julialang.org/t/warning-using-x-x-in-module-main-conflicts-with-an-existing-identifier/80819 "2022-05-12T04:24:55Z")

</div>

Hi, this is basically my first day with Julia. I know that this question came up a few times in different context, but I did not really think the answers there where helpful. I tried to get random program and run it. I…

---

## [Help understanding a docstring: what are "wrapped indices"?](https://discourse.julialang.org/t/help-understanding-a-docstring-what-are-wrapped-indices/80928)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 3:40am UTC](https://discourse.julialang.org/t/help-understanding-a-docstring-what-are-wrapped-indices/80928 "2022-05-12T03:40:16Z")

</div>

help?\> Base.Slice Slice(indices) Represent an AbstractUnitRange of indices as a vector of the indices themselves, with special handling to signal they represent a complete slice of a dimension (:). Upon calli…

---

## [How to create Data.mat file for Convex.jl to solve optimal power flow using Matpower?](https://discourse.julialang.org/t/how-to-create-data-mat-file-for-convex-jl-to-solve-optimal-power-flow-using-matpower/80924)

<div class="topic-metadata">

**Author:** [@biswajit216](https://discourse.julialang.org/u/biswajit216)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 2:47am UTC](https://discourse.julialang.org/t/how-to-create-data-mat-file-for-convex-jl-to-solve-optimal-power-flow-using-matpower/80924 "2022-05-12T02:47:29Z")

</div>

Hi, I’m a newbie learning Julia for optimal power flow formulation using convex optimization. I came across an example from Convex.jl documentation in here https://jump.dev/Convex.jl/stable/examples/optimization\_with\_c…

---

## [Interpolations with Unitful Vectors](https://discourse.julialang.org/t/interpolations-with-unitful-vectors/80919)

<div class="topic-metadata">

**Author:** [@dmoored4](https://discourse.julialang.org/u/dmoored4)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 11:50pm UTC](https://discourse.julialang.org/t/interpolations-with-unitful-vectors/80919 "2022-05-11T23:50:40Z")

</div>

Often I need to perform interpolations of unit-aware vectors and I would prefer to have the flexibility to use the interpolation functions offered by Dierckx, Interpolations etc. I haven’t found this in docs or discours…

---

## [How to take the mean of entries across an array of DataFrames conditional upon the value of a separate column?](https://discourse.julialang.org/t/how-to-take-the-mean-of-entries-across-an-array-of-dataframes-conditional-upon-the-value-of-a-separate-column/80869)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 5\
**Last updated:** [May 11, 2022, 10:56pm UTC](https://discourse.julialang.org/t/how-to-take-the-mean-of-entries-across-an-array-of-dataframes-conditional-upon-the-value-of-a-separate-column/80869 "2022-05-11T22:56:26Z")

</div>

I have a question regarding the correct way to store an n dimensional matrix in julia - and how one would take the mean across an axis based on conditions of a different column. Suppose V is a vector of DataFrames consi…

---

## [How do I create a binary from .jl files?](https://discourse.julialang.org/t/how-do-i-create-a-binary-from-jl-files/80521)

<div class="topic-metadata">

**Author:** [@DWSchulze](https://discourse.julialang.org/u/DWSchulze)\
**Replies:** 34\
**Last updated:** [May 11, 2022, 10:16pm UTC](https://discourse.julialang.org/t/how-do-i-create-a-binary-from-jl-files/80521 "2022-05-11T22:16:22Z")

</div>

I’ve searched in vain for this. How do I create a binary (preferably statically linked) from .jl files? Does julia have a compiler and linker / class loader? All the introductory material I’ve found so far are for not…

---

## [Reading about the removal of eye has put me into a deep emotional state](https://discourse.julialang.org/t/reading-about-the-removal-of-eye-has-put-me-into-a-deep-emotional-state/80901)

<div class="topic-metadata">

**Author:** [@skraemer](https://discourse.julialang.org/u/skraemer)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 9:58pm UTC](https://discourse.julialang.org/t/reading-about-the-removal-of-eye-has-put-me-into-a-deep-emotional-state/80901 "2022-05-11T21:58:49Z")

</div>

I will give you a fair warning here that this topic is going to have a serious intention for which I felt the urge to express it using some sarcasm. If you react badly to sarcasm, do not continue. If this is deemed inapp…

---

## [Factorial function of a real number of complex number](https://discourse.julialang.org/t/factorial-function-of-a-real-number-of-complex-number/80911)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 9:53pm UTC](https://discourse.julialang.org/t/factorial-function-of-a-real-number-of-complex-number/80911 "2022-05-11T21:53:25Z")

</div>

I’m on Julia@1.7.2 and i put x=0.0 + 0.12008239133631671im factorial(x) i get an error , MethodError: no method matching factorial(::ComplexF64) the same thing if x is Float64 i get MethodError: no method matching fac…

---

## [How to get Julia SSA-form IR (with Phi nodes)?](https://discourse.julialang.org/t/how-to-get-julia-ssa-form-ir-with-phi-nodes/79897)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 21\
**Last updated:** [May 11, 2022, 9:52pm UTC](https://discourse.julialang.org/t/how-to-get-julia-ssa-form-ir-with-phi-nodes/79897 "2022-05-11T21:52:19Z")

</div>

Given a function call, how can I get the corresponding SSA-form IR described here? Alternatively, what is the easiest way - function, package or algorithm - to convert a normal lowered representation to the SSA form? I’…

---

## [SDAE for Stochastic SIR](https://discourse.julialang.org/t/sdae-for-stochastic-sir/80778)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 5\
**Last updated:** [May 11, 2022, 9:43pm UTC](https://discourse.julialang.org/t/sdae-for-stochastic-sir/80778 "2022-05-11T21:43:35Z")

</div>

I am fairly new at Julia and still learning the ropes. DifferentialEquations.jl package is my primary interest at preset. I want to model/plot a stochastic SIR model using SDAE. The reason my model is in terms of percent…

---

## [Problem with LogDetConeSquare](https://discourse.julialang.org/t/problem-with-logdetconesquare/80915)

<div class="topic-metadata">

**Author:** [@Zheming\_Wang](https://discourse.julialang.org/u/Zheming_Wang)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 9:23pm UTC](https://discourse.julialang.org/t/problem-with-logdetconesquare/80915 "2022-05-11T21:23:58Z")

</div>

I’m trying to use LogDetConeSquare with Mosek. I got the following error: julia\> solver = optimizer\_with\_attributes(Mosek.Optimizer, MOI.Silent() =\> false) MathOptInterface.OptimizerWithAttributes(Mosek.Optimizer, Pair{…

---

## [Global variables "leak" during mulithreading](https://discourse.julialang.org/t/global-variables-leak-during-mulithreading/80900)

<div class="topic-metadata">

**Author:** [@Kevin\_Shen1](https://discourse.julialang.org/u/Kevin_Shen1)\
**Replies:** 10\
**Last updated:** [May 11, 2022, 6:06pm UTC](https://discourse.julialang.org/t/global-variables-leak-during-mulithreading/80900 "2022-05-11T18:06:39Z")

</div>

Using global variables inside a function (executed separately) with multithreading seems to cause multiple threads to incorrect share/access the global variables. It’s a bit contrived for me to present a concrete exampl…

---

## [What does the beckmarking in global scope mean?](https://discourse.julialang.org/t/what-does-the-beckmarking-in-global-scope-mean/80898)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 6\
**Last updated:** [May 11, 2022, 5:41pm UTC](https://discourse.julialang.org/t/what-does-the-beckmarking-in-global-scope-mean/80898 "2022-05-11T17:41:54Z")

</div>

Hello, I have some issues that I did n’t get them well. 1- Why when using ·@btime, it is needed to used $ before the parameters? 2- Are A and B. below constant or non-constant variables? A = randn(3,3); b = randn(3);…

---

## [Next "Learn Julia With Us" workshop by Julia Gender Inclusive this Thursday!](https://discourse.julialang.org/t/next-learn-julia-with-us-workshop-by-julia-gender-inclusive-this-thursday/80779)

<div class="topic-metadata">

**Author:** [@Xuan](https://discourse.julialang.org/u/Xuan)\
**Replies:** 0\
**Last updated:** [May 9, 2022, 8:19pm UTC](https://discourse.julialang.org/t/next-learn-julia-with-us-workshop-by-julia-gender-inclusive-this-thursday/80779 "2022-05-09T20:19:01Z")

</div>

Julia Gender Inclusive is running the next “Learn Julia With Us” workshop this Thursday May 12! The workshop is open to anyone who sees their gender as underrepresented in the Julia community. Sign up to attend using thi…

---

## [Products of sparse by dense matrices don't revert to specialized methods](https://discourse.julialang.org/t/products-of-sparse-by-dense-matrices-dont-revert-to-specialized-methods/80894)

<div class="topic-metadata">

**Author:** [@Arrigo\_Benedetti](https://discourse.julialang.org/u/Arrigo_Benedetti)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 3:58pm UTC](https://discourse.julialang.org/t/products-of-sparse-by-dense-matrices-dont-revert-to-specialized-methods/80894 "2022-05-11T15:58:40Z")

</div>

Apparently in 1.7.2 the product of a sparse (SparseMatrixCSC) and a dense matrix (both directions) never use the specialized method. Looking at this old discussion it seems that at least the sparse by dense product shou…

---

## [How to review your own enviroment in reinforce.jl](https://discourse.julialang.org/t/how-to-review-your-own-enviroment-in-reinforce-jl/80807)

<div class="topic-metadata">

**Author:** [@Hupdup](https://discourse.julialang.org/u/Hupdup)\
**Replies:** 4\
**Last updated:** [May 11, 2022, 3:32pm UTC](https://discourse.julialang.org/t/how-to-review-your-own-enviroment-in-reinforce-jl/80807 "2022-05-11T15:32:28Z")

</div>

Hello all, I have written a custom enviroment in reinforce.jl and now I want to check if it is correct (i.e. if the actions and the step function work as thought). For this I wanted to call the functions one by one in …

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

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