# Latest

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

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

**Page:** 1397

---

## [\`touch\`ing package sources only works on Windows?](https://discourse.julialang.org/t/touch-ing-package-sources-only-works-on-windows/60903)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 16\
**Last updated:** [May 10, 2021, 9:56pm UTC](https://discourse.julialang.org/t/touch-ing-package-sources-only-works-on-windows/60903 "2021-05-10T21:56:51Z")

</div>

Win julia\> touch(pathof(GMT)) "C:\\\\Users\\\\joaqu\\\\.julia\\\\dev\\\\GMT\\\\src\\\\GMT.jl" Linux || Mac julia\> touch(pathof(GMT)) ERROR: IOError: open: permission denied (EACCES) but like this it does run(\`touch $(pathof(GMT))…

---

## [MLJ - user defined models - supporting weights - issue?](https://discourse.julialang.org/t/mlj-user-defined-models-supporting-weights-issue/60801)

<div class="topic-metadata">

**Author:** [@diadora77](https://discourse.julialang.org/u/diadora77)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 9:51pm UTC](https://discourse.julialang.org/t/mlj-user-defined-models-supporting-weights-issue/60801 "2021-05-10T21:51:54Z")

</div>

Hi- I’ve been using MLJ successfully to create some simple custom models using the MLJModelInterface. Recently, I’ve attempted to expand the models to support sample weights for the purpose of implementing a simple adap…

---

## [How to use TableView.jl in VSCode?](https://discourse.julialang.org/t/how-to-use-tableview-jl-in-vscode/44912)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 11\
**Last updated:** [May 10, 2021, 9:41pm UTC](https://discourse.julialang.org/t/how-to-use-tableview-jl-in-vscode/44912 "2021-05-10T21:41:24Z")

</div>

I can use TableView on Juno as just using TableView showtable((a=1:3, b =4:5)) But for VSCode this doesn’t work. I can’t use vscodedisplay as its performance is not as good as TableView’s for large datasets. Ideally,…

---

## [Julia script works, but MethodError when using Python PyJulia](https://discourse.julialang.org/t/julia-script-works-but-methoderror-when-using-python-pyjulia/60915)

<div class="topic-metadata">

**Author:** [@seiji](https://discourse.julialang.org/u/seiji)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 9:35pm UTC](https://discourse.julialang.org/t/julia-script-works-but-methoderror-when-using-python-pyjulia/60915 "2021-05-10T21:35:56Z")

</div>

First post and new to Julia - let me know if there is not enough information. I have a Julia script that runs fine when I call it from the Julia REPL include(“Run\_test.jl”). It takes some inputs from csv and other files…

---

## [Make tab-explorable structure from nested Dict](https://discourse.julialang.org/t/make-tab-explorable-structure-from-nested-dict/57979)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 5\
**Last updated:** [May 10, 2021, 8:43pm UTC](https://discourse.julialang.org/t/make-tab-explorable-structure-from-nested-dict/57979 "2021-05-10T20:43:55Z")

</div>

For nothing but the sake of my own and potential users convenience when REPL:ing around, I’d like to turn a nested Dict with symbol keys into something which can be tab-completed all the way down to the leaves. I have m…

---

## [Relaunch the task bound to channel](https://discourse.julialang.org/t/relaunch-the-task-bound-to-channel/60777)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 7:46pm UTC](https://discourse.julialang.org/t/relaunch-the-task-bound-to-channel/60777 "2021-05-10T19:46:29Z")

</div>

Is it possible to relaunch a task bound to a channel so that the data can be recollected from the channel?. Here is a MWE: julia\> ch = Channel(0) do ch for i in 1 : 5 put!(ch, i) end end C…

---

## [2021 Recommended self-teaching Julia material depending on computing skills](https://discourse.julialang.org/t/2021-recommended-self-teaching-julia-material-depending-on-computing-skills/60551)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 23\
**Last updated:** [May 10, 2021, 7:00pm UTC](https://discourse.julialang.org/t/2021-recommended-self-teaching-julia-material-depending-on-computing-skills/60551 "2021-05-10T19:00:20Z")

</div>

Hallo I am promoting the Julia language in New-Zealand and I am often asked the question what are the best self-taught Julia material (e.g. Books; Webinar, Julia Tutorials) depending on the level of the student: Never…

---

## [Quantiles Dirichlet distribution](https://discourse.julialang.org/t/quantiles-dirichlet-distribution/60908)

<div class="topic-metadata">

**Author:** [@Dan.phi](https://discourse.julialang.org/u/Dan.phi)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 6:50pm UTC](https://discourse.julialang.org/t/quantiles-dirichlet-distribution/60908 "2021-05-10T18:50:10Z")

</div>

I am trying to compute quantiles of the Dirichlet distribution using Distributions, but I am getting this error: julia\> quantile(Dirichlet(\[1,1,1\]), 0.5) ERROR: MethodError: no method matching iterate(::Dirichlet{Float6…

---

## [How can I fill an array with empty 2D arrays?](https://discourse.julialang.org/t/how-can-i-fill-an-array-with-empty-2d-arrays/60895)

<div class="topic-metadata">

**Author:** [@zamazalotta](https://discourse.julialang.org/u/zamazalotta)\
**Replies:** 7\
**Last updated:** [May 10, 2021, 6:06pm UTC](https://discourse.julialang.org/t/how-can-i-fill-an-array-with-empty-2d-arrays/60895 "2021-05-10T18:06:26Z")

</div>

Hello, I am going into a loop which will produce N 2D arrays. I want to store them in an array, so I want to define it beforehand. I know the syntax for filling with empty 1D arrays but I can’t figure our the 2D version…

---

## [Can you use a module inside another module?](https://discourse.julialang.org/t/can-you-use-a-module-inside-another-module/60899)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 5:51pm UTC](https://discourse.julialang.org/t/can-you-use-a-module-inside-another-module/60899 "2021-05-10T17:51:35Z")

</div>

I have a file structure like this code - Folder -- GameObjects.jl -- Characters.jl I want to use GameObjects inside Characters.jl but I get GameObjects not defined when I do: # Characters.jl module Characters using .G…

---

## [Installing packages from github runs forever on Windows, is it possible to change the source to pkg.julialang?](https://discourse.julialang.org/t/installing-packages-from-github-runs-forever-on-windows-is-it-possible-to-change-the-source-to-pkg-julialang/60836)

<div class="topic-metadata">

**Author:** [@ramdhanhdy](https://discourse.julialang.org/u/ramdhanhdy)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 5:48pm UTC](https://discourse.julialang.org/t/installing-packages-from-github-runs-forever-on-windows-is-it-possible-to-change-the-source-to-pkg-julialang/60836 "2021-05-10T17:48:10Z")

</div>

I have been having a hard time intalling packages from my Windows 10 laptop. The install process is not really reliable. I have turned off the windows defender firewall and the installation still stuck. I read somewh…

---

## [Need help with CUDA.jl installation](https://discourse.julialang.org/t/need-help-with-cuda-jl-installation/52786)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 3:52pm UTC](https://discourse.julialang.org/t/need-help-with-cuda-jl-installation/52786 "2021-05-10T15:52:22Z")

</div>

Hi everybody! I had CUDA.jl installed and nicely running past summer, but somehow goofed it up (driver/cuda update?). It is probably not directly related to CUDA.jl. I crawled dmesg for errors, rebooted and nvidia-smi wo…

---

## [Loops with arrays of arbitrary dimensions](https://discourse.julialang.org/t/loops-with-arrays-of-arbitrary-dimensions/60890)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 10\
**Last updated:** [May 10, 2021, 3:51pm UTC](https://discourse.julialang.org/t/loops-with-arrays-of-arbitrary-dimensions/60890 "2021-05-10T15:51:15Z")

</div>

Assume that I have a 2D array A and I want to do something like this N1, N2 = 4, 3 A = ones((N1, N2)) x = zeros(N1) for i2=1:N2 for i1=1:N1 x\[i1\] = 2 \* A\[i1, i2\] end end x = zeros(N2) for i1=1:N1 f…

---

## [Animated plot](https://discourse.julialang.org/t/animated-plot/60729)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 3:08pm UTC](https://discourse.julialang.org/t/animated-plot/60729 "2021-05-10T15:08:33Z")

</div>

I have two objects that I want to plot in an interactive graph. bar: is controlled via PlutoUI.Slider which can change the x position square: shall move around irrespective of the bar movement. For the below MVP the sq…

---

## [PlotlyJS: how to change the default labels of variables](https://discourse.julialang.org/t/plotlyjs-how-to-change-the-default-labels-of-variables/60798)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 7\
**Last updated:** [May 10, 2021, 2:57pm UTC](https://discourse.julialang.org/t/plotlyjs-how-to-change-the-default-labels-of-variables/60798 "2021-05-10T14:57:25Z")

</div>

I have a kind of stupid question: how can we change the automatic labels of variables under PlotlyJS.jl? In the figure below, the names given by default are trace 0, trace 1 ,... , when instead I want GDP, INV, CONS and E…

---

## [Memory allocations and performance with multithreading](https://discourse.julialang.org/t/memory-allocations-and-performance-with-multithreading/60831)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 8\
**Last updated:** [May 10, 2021, 2:30pm UTC](https://discourse.julialang.org/t/memory-allocations-and-performance-with-multithreading/60831 "2021-05-10T14:30:19Z")

</div>

I’m trying to take use of mulithreading to parallelize an internal loop, but while it works (correct answer and I can see CPU being used), there is a serious performance hit: function update(x, Δt) return x + 0.5 \* …

---

## [Allocations with closure and mul!](https://discourse.julialang.org/t/allocations-with-closure-and-mul/60744)

<div class="topic-metadata">

**Author:** [@geoffroyleconte](https://discourse.julialang.org/u/geoffroyleconte)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 2:19pm UTC](https://discourse.julialang.org/t/allocations-with-closure-and-mul/60744 "2021-05-10T14:19:44Z")

</div>

Hi! I have an issue with allocations using the mul! function and a closure: using LinearAlgebra, Test struct operator{T} prod! end function operator(A :: AbstractArray{T}) where T prod! = (res, u, α, β) -\> m…

---

## [Plotlyjs - merged legend for both subplots](https://discourse.julialang.org/t/plotlyjs-merged-legend-for-both-subplots/60873)

<div class="topic-metadata">

**Author:** [@stej](https://discourse.julialang.org/u/stej)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 1:41pm UTC](https://discourse.julialang.org/t/plotlyjs-merged-legend-for-both-subplots/60873 "2021-05-10T13:41:12Z")

</div>

Hi, this is followup of Plotly.js - stacked bars in subplots - #3 by stej I have this code ########### using PlotlyJS, Dates dates = \[Date(2021, 05, 08), Date(2021, 05, 09), Date(2021, 05, 10)\] trace1 = bar(; x = dat…

---

## [Function dispatch ignores keyword arguments](https://discourse.julialang.org/t/function-dispatch-ignores-keyword-arguments/60887)

<div class="topic-metadata">

**Author:** [@tqml](https://discourse.julialang.org/u/tqml)\
**Replies:** 3\
**Last updated:** [May 10, 2021, 12:59pm UTC](https://discourse.julialang.org/t/function-dispatch-ignores-keyword-arguments/60887 "2021-05-10T12:59:08Z")

</div>

Today I stumbled upon some weird Julia behavior. It seems that it is not possible to have multiple keyword-only functions with the same name. Is this a bug or intended behavior? f1(;a,b) = println("a,b") # defines f1 f1…

---

## [Chaining array of functions](https://discourse.julialang.org/t/chaining-array-of-functions/30958)

<div class="topic-metadata">

**Author:** [@DR59](https://discourse.julialang.org/u/DR59)\
**Replies:** 13\
**Last updated:** [May 10, 2021, 12:02pm UTC](https://discourse.julialang.org/t/chaining-array-of-functions/30958 "2021-05-10T12:02:39Z")

</div>

Suppose I have a 1d array of functions: f\_array = \[f1, f2, f3, f4\] This array can be of arbitrary length, and each function may have multiple inputs/outputs. How do I do a reduce style operation to make a new function…

---

## [How to use NLopt with juniper and Alpine](https://discourse.julialang.org/t/how-to-use-nlopt-with-juniper-and-alpine/60857)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 9\
**Last updated:** [May 10, 2021, 11:18am UTC](https://discourse.julialang.org/t/how-to-use-nlopt-with-juniper-and-alpine/60857 "2021-05-10T11:18:01Z")

</div>

Hi, Can we use NLopt with juniper/Alpine or any other solver for solving MINLP? Thanks, Manoj

---

## [Symbolic diagonalization](https://discourse.julialang.org/t/symbolic-diagonalization/60875)

<div class="topic-metadata">

**Author:** [@volkerkarle](https://discourse.julialang.org/u/volkerkarle)\
**Replies:** 3\
**Last updated:** [May 10, 2021, 11:01am UTC](https://discourse.julialang.org/t/symbolic-diagonalization/60875 "2021-05-10T11:01:02Z")

</div>

Dear community, I was wondering to what extend diagonalization in Symbolics.jl is implemented, Symbolic linear algebra (factorizations, inversion, determinants, eigencomputations, etc.) I see that some factorization…

---

## [Conda.jl: specify library version](https://discourse.julialang.org/t/conda-jl-specify-library-version/59915)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 10:50am UTC](https://discourse.julialang.org/t/conda-jl-specify-library-version/59915 "2021-05-10T10:50:27Z")

</div>

My package, ScikitLearn.jl, is not yet compatible with the latest scikit-learn library. Is there any way to specify that via Conda.jl? Alternatively, what’s the easiest way to Conda.add("scikit-learn", some\_version\_numbe…

---

## [How to dispatch a function aggregating columns in a grouped DataFrame?](https://discourse.julialang.org/t/how-to-dispatch-a-function-aggregating-columns-in-a-grouped-dataframe/60859)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.julialang.org/u/florian)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 9:14am UTC](https://discourse.julialang.org/t/how-to-dispatch-a-function-aggregating-columns-in-a-grouped-dataframe/60859 "2021-05-10T09:14:27Z")

</div>

I want to aggregate the columns of a DataFrame based on their types, i.e something like: function aggregate(v::Vector{T}) where T \<: Number sum(v) end function aggregate(v::Vector{String}) \[unique(v)\] end df =…

---

## [Lsp-julia (Emacs) not detecting installed packages. (And REPL extra)](https://discourse.julialang.org/t/lsp-julia-emacs-not-detecting-installed-packages-and-repl-extra/60837)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 3\
**Last updated:** [May 10, 2021, 10:08am UTC](https://discourse.julialang.org/t/lsp-julia-emacs-not-detecting-installed-packages-and-repl-extra/60837 "2021-05-10T10:08:35Z")

</div>

\[Using Doom Emacs\] I’ve been trying to setup my Doom Emacs install, while I’ve managed to make lsp-mode work with Julia through this small piece: (after! julia-mode (add-hook! 'julia-mode-hook (setq-local lsp-ena…

---

## [Diff eq parameter estimation](https://discourse.julialang.org/t/diff-eq-parameter-estimation/60730)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 10:06am UTC](https://discourse.julialang.org/t/diff-eq-parameter-estimation/60730 "2021-05-10T10:06:30Z")

</div>

Dear DiffEq.jl users, I have N-body parallel (independent) simulation. Roughly, after applying most important optimizations like non-allocating and avoiding globals, my simulation for N=1000 runs for 5mins. This is all …

---

## [Streamlit python library](https://discourse.julialang.org/t/streamlit-python-library/60854)

<div class="topic-metadata">

**Author:** [@rapus95](https://discourse.julialang.org/u/rapus95)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 9:40am UTC](https://discourse.julialang.org/t/streamlit-python-library/60854 "2021-05-10T09:40:09Z")

</div>

I stumbled over this python gem https://streamlit.io/ and was wondering if using that over PyCall is a good idea given that a lot of data transfer will happen. Are there good alternatives for it in Julia?

---

## [Prediction of time series](https://discourse.julialang.org/t/prediction-of-time-series/60858)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 9:15am UTC](https://discourse.julialang.org/t/prediction-of-time-series/60858 "2021-05-10T09:15:26Z")

</div>

Hello everyone, I am studying the prediction problem of power system operation, which is a kind of multi-input multi-output model, can you recommend some novel Pkg or methods about time series multiple prediction? thank…

---

## [Markdown software recommendation WYSIWYG What You See Is What You Get](https://discourse.julialang.org/t/markdown-software-recommendation-wysiwyg-what-you-see-is-what-you-get/60687)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 28\
**Last updated:** [May 10, 2021, 9:03am UTC](https://discourse.julialang.org/t/markdown-software-recommendation-wysiwyg-what-you-see-is-what-you-get/60687 "2021-05-10T09:03:38Z")

</div>

I am now going to document the large SoilWater-ToolBox SoilWater-ToolBox by attempting to use Documenter and I am looking for a Markdown software free or paid. I use VsCode but there does not seem to be any extensions …

---

## [ERROR: SystemError: opening file "SyntheticData.fits": Permission denied](https://discourse.julialang.org/t/error-systemerror-opening-file-syntheticdata-fits-permission-denied/60860)

<div class="topic-metadata">

**Author:** [@assia855](https://discourse.julialang.org/u/assia855)\
**Replies:** 0\
**Last updated:** [May 10, 2021, 8:21am UTC](https://discourse.julialang.org/t/error-systemerror-opening-file-syntheticdata-fits-permission-denied/60860 "2021-05-10T08:21:32Z")

</div>

Hello Folks, I’m trying to open a file on vscode but i had a premession denied. any idea how to resolve that please. ERROR: LoadError: SystemError: opening file “SyntheticData.fits”: Permission denied Stacktrace: \[1\]…

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

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