# Latest

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

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

**Page:** 1609

---

## [Recover MLE fit parameters in vector form](https://discourse.julialang.org/t/recover-mle-fit-parameters-in-vector-form/47972)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 4\
**Last updated:** [October 8, 2020, 2:53pm UTC](https://discourse.julialang.org/t/recover-mle-fit-parameters-in-vector-form/47972 "2020-10-08T14:53:38Z")

</div>

Suppose I fit some data using Distributions, Random; DGP\_True = LogNormal(0,1); Random.seed!(123); const d\_train = rand(DGP\_True, 1\_000); D1=Distributions.fit\_mle(LogNormal, d\_train) #Gives a fit distribution julia\> D1…

---

## [How to add elements to an array when it's declared like this?](https://discourse.julialang.org/t/how-to-add-elements-to-an-array-when-its-declared-like-this/47960)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 9\
**Last updated:** [October 8, 2020, 2:48pm UTC](https://discourse.julialang.org/t/how-to-add-elements-to-an-array-when-its-declared-like-this/47960 "2020-10-08T14:48:21Z")

</div>

As you can see during initialization I can insert numbers between the square brackets. a = Int32\[1,2,3,4,5\] but when I declare an array like this: b = Array{Int32}(undef, 0) Can I add elements during initialization?

---

## [Julia Language Hacktoberfest Meetup/Hackathon + T-shirts!](https://discourse.julialang.org/t/julia-language-hacktoberfest-meetup-hackathon-t-shirts/47645)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 4\
**Last updated:** [October 8, 2020, 2:38pm UTC](https://discourse.julialang.org/t/julia-language-hacktoberfest-meetup-hackathon-t-shirts/47645 "2020-10-08T14:38:04Z")

</div>

Hey all, Our Hacktoberfest hackathon/meetup will be taking place on Saturday, October 10th. More details and registration can be found here: https://bit.ly/3jmfmMG If you plan to attend, please register so we know how …

---

## [Memory allocation and @profile](https://discourse.julialang.org/t/memory-allocation-and-profile/47573)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 5\
**Last updated:** [October 8, 2020, 2:24pm UTC](https://discourse.julialang.org/t/memory-allocation-and-profile/47573 "2020-10-08T14:24:42Z")

</div>

@time shows that my program is doing a lot of memory allocation, much of which I could probably avoid. For example @time b2 = MyFirst.mysolve(f2, nhsub, nhsub.wtfast16yr) 1.998780 seconds (6.27 M allocations: 479.828 Mi…

---

## [Importing pmdarima using conda in julia](https://discourse.julialang.org/t/importing-pmdarima-using-conda-in-julia/47986)

<div class="topic-metadata">

**Author:** [@musman](https://discourse.julialang.org/u/musman)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 2:16pm UTC](https://discourse.julialang.org/t/importing-pmdarima-using-conda-in-julia/47986 "2020-10-08T14:16:29Z")

</div>

Hi all, I am using Conda.add("pmdarima") command to import pmdarima in julia. However, I am getting the following error: PackagesNotFoundError: The following packages are not available from current channels: - pmd…

---

## [Plans to provide Julia IR for deployment](https://discourse.julialang.org/t/plans-to-provide-julia-ir-for-deployment/47894)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 6\
**Last updated:** [October 8, 2020, 1:56pm UTC](https://discourse.julialang.org/t/plans-to-provide-julia-ir-for-deployment/47894 "2020-10-08T13:56:48Z")

</div>

Hey dear community :slight\_smile: I know there is package compiler but I also know that it has it’s limitations. I know that other managed language like C# and Java ship some form of IR. Is something like this possible …

---

## [Launch Jupyter kernel with -e "using SomePackage" flag](https://discourse.julialang.org/t/launch-jupyter-kernel-with-e-using-somepackage-flag/47980)

<div class="topic-metadata">

**Author:** [@tikej](https://discourse.julialang.org/u/tikej)\
**Replies:** 1\
**Last updated:** [October 8, 2020, 1:37pm UTC](https://discourse.julialang.org/t/launch-jupyter-kernel-with-e-using-somepackage-flag/47980 "2020-10-08T13:37:56Z")

</div>

Hi, I’m trying to setup Jupyter kernel with some automatically loaded packages as a matter of convenience. Lets say I want to have Julia Jupyter kernels for: data (Statistics, DataFrames), plotting(UnicodePlots, PyPlot)…

---

## [Need help animating a plot](https://discourse.julialang.org/t/need-help-animating-a-plot/47956)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 10\
**Last updated:** [October 8, 2020, 12:55pm UTC](https://discourse.julialang.org/t/need-help-animating-a-plot/47956 "2020-10-08T12:55:25Z")

</div>

I have a simple line plot that I would like to animate. An array with the number of iterations and the associated array with a value associated with the current iteration. iters = \[x for x in 1:100\]; vals = rand(100); …

---

## [Accessing predefined array of DataFrame?](https://discourse.julialang.org/t/accessing-predefined-array-of-dataframe/47981)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [October 8, 2020, 12:18pm UTC](https://discourse.julialang.org/t/accessing-predefined-array-of-dataframe/47981 "2020-10-08T12:18:12Z")

</div>

Hello! Suppose I have a dataframe as such: df1 10×3 DataFrame │ Row │ A │ B │ C │ │ │ Int64 │ String │ Float64 │ ├─────┼───────┼────────┼──────────┤ │ 1 │ 1 │ z │ 0.907622 │ │ 2 │ 2 …

---

## [How to read JSON from HTML?](https://discourse.julialang.org/t/how-to-read-json-from-html/3664)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [October 8, 2020, 10:20am UTC](https://discourse.julialang.org/t/how-to-read-json-from-html/3664 "2020-10-08T10:20:03Z")

</div>

I know we can use Requests.jl to get the data, but I am not sure how we can parse the JSON with JSON.jl: using Requests, JSON r = get("https://api.github.com/users/juliohm") parse(r.data) # should JSON.Parser.parse wor…

---

## [Image loading in Gtk](https://discourse.julialang.org/t/image-loading-in-gtk/47977)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.julialang.org/u/libensvivit)\
**Replies:** 1\
**Last updated:** [October 8, 2020, 9:44am UTC](https://discourse.julialang.org/t/image-loading-in-gtk/47977 "2020-10-08T09:44:52Z")

</div>

I’m trying load an image in Gtk, so far I found GdkPixbuf() function in the source, that accepts filename as argument but I couldn’t make it work. I think image loading is not supported yet. using Gtk win = GtkWindow("…

---

## [Dense cell segmentation](https://discourse.julialang.org/t/dense-cell-segmentation/47728)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 2\
**Last updated:** [October 8, 2020, 9:04am UTC](https://discourse.julialang.org/t/dense-cell-segmentation/47728 "2020-10-08T09:04:52Z")

</div>

Hello, I’m transferring a cell segmentation pipeline from python/skimage to Julia/Images.jl, and ran into some function calls that weren’t straightforward to translate. In particular: autolevel\_percentile skimage.morp…

---

## [How to benchmark my loss function with sciml\_train using different optimizers?](https://discourse.julialang.org/t/how-to-benchmark-my-loss-function-with-sciml-train-using-different-optimizers/47852)

<div class="topic-metadata">

**Author:** [@Alec\_4](https://discourse.julialang.org/u/Alec_4)\
**Replies:** 1\
**Last updated:** [October 8, 2020, 8:04am UTC](https://discourse.julialang.org/t/how-to-benchmark-my-loss-function-with-sciml-train-using-different-optimizers/47852 "2020-10-08T08:04:30Z")

</div>

Does anyone know some good way to benchmark my loss function trained with sciml\_train using different optimizers? Just like the way that WorkPrecisionSet() can do to show the performance differences due to using differen…

---

## [How to specify start path for Gtk?](https://discourse.julialang.org/t/how-to-specify-start-path-for-gtk/47971)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 6:06am UTC](https://discourse.julialang.org/t/how-to-specify-start-path-for-gtk/47971 "2020-10-08T06:06:28Z")

</div>

Hello! Suppose I want to open some folder on my system. But I do not want to start at the Desktop directory all the time, I would rather like to start at a specific place, C:\\user\\my\\specific\\point etc. Currently my cod…

---

## [Julia 1.0.5: Using Pkg.add removes all \[extras\] dependencies from Manifest](https://discourse.julialang.org/t/julia-1-0-5-using-pkg-add-removes-all-extras-dependencies-from-manifest/47963)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 3:30am UTC](https://discourse.julialang.org/t/julia-1-0-5-using-pkg-add-removes-all-extras-dependencies-from-manifest/47963 "2020-10-08T03:30:52Z")

</div>

julia\> versioninfo() Julia Version 1.0.5 Commit 3af96bcefc (2019-09-09 19:06 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz WORD\_SIZE: 64 LIBM: libopenlibm LL…

---

## [Find number of parameters in a distribution](https://discourse.julialang.org/t/find-number-of-parameters-in-a-distribution/47961)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 3\
**Last updated:** [October 8, 2020, 2:43am UTC](https://discourse.julialang.org/t/find-number-of-parameters-in-a-distribution/47961 "2020-10-08T02:43:11Z")

</div>

Suppose I’m looping over a large vector of distributions from Distributions.jl. How can I automatically find how many parameters there are in a distribution? I want a function nparams(d) where: nparams(Normal)=2 since…

---

## [Specialising behaviour of subtypes; methods or properties?](https://discourse.julialang.org/t/specialising-behaviour-of-subtypes-methods-or-properties/47907)

<div class="topic-metadata">

**Author:** [@timquelch](https://discourse.julialang.org/u/timquelch)\
**Replies:** 4\
**Last updated:** [October 8, 2020, 1:06am UTC](https://discourse.julialang.org/t/specialising-behaviour-of-subtypes-methods-or-properties/47907 "2020-10-08T01:06:26Z")

</div>

I’m developing a tree-like structure where each node can have children of different types. Some of the types of nodes are limited in the types and number of the nodes shown below. abstract type Component end struct Com…

---

## [Pluto - Web sqlite error database is locked](https://discourse.julialang.org/t/pluto-web-sqlite-error-database-is-locked/47959)

<div class="topic-metadata">

**Author:** [@dalejordan](https://discourse.julialang.org/u/dalejordan)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 12:59am UTC](https://discourse.julialang.org/t/pluto-web-sqlite-error-database-is-locked/47959 "2020-10-08T00:59:52Z")

</div>

Apparently, some lockfile didn’t get deleted when I left a session hanging… Anyone know where its kept so I cane delete it manually? Pluto spouts a long string of error messages and won’t start normally.

---

## [Tools for creating slide presentations with Julia content](https://discourse.julialang.org/t/tools-for-creating-slide-presentations-with-julia-content/27460)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 8\
**Last updated:** [October 7, 2020, 10:44pm UTC](https://discourse.julialang.org/t/tools-for-creating-slide-presentations-with-julia-content/27460 "2020-10-07T22:44:51Z")

</div>

What types of tools do you use to create slide presentations including Julia content? Having spent too much of my life writing LaTeX/Beamer I prefer to start with markdown instead, such as a .jmd file for the Weave pack…

---

## [Can you sort a Set?](https://discourse.julialang.org/t/can-you-sort-a-set/47948)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 9\
**Last updated:** [October 7, 2020, 9:29pm UTC](https://discourse.julialang.org/t/can-you-sort-a-set/47948 "2020-10-07T21:29:54Z")

</div>

In Python, I can do: a = set(\[2,1,5,3,2\]) b = sorted(a) print(b) # Returns a sorted List In Julia, Is it possible to sort a Set? Edit: There is no particular reason why I require a Set. I was reading the documentatio…

---

## [How to read a string from a file with interpolation](https://discourse.julialang.org/t/how-to-read-a-string-from-a-file-with-interpolation/47913)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 7\
**Last updated:** [October 7, 2020, 8:22pm UTC](https://discourse.julialang.org/t/how-to-read-a-string-from-a-file-with-interpolation/47913 "2020-10-07T20:22:02Z")

</div>

The file “test.txt” contains a single line: I am $me The following is intended to simply read the string and store the interpolated result in str: me = "Sam" str = read("test.txt", String); str == "I am Sam" false

---

## [Standing up cluster on Azure](https://discourse.julialang.org/t/standing-up-cluster-on-azure/47942)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 1\
**Last updated:** [October 7, 2020, 8:08pm UTC](https://discourse.julialang.org/t/standing-up-cluster-on-azure/47942 "2020-10-07T20:08:48Z")

</div>

Hey All! My program is trying to migrate a lot of our teaching and research towards using Azure instead of our on-site cluster (for which ClusterManager.jl has been amazing), and I was wondering if anyone had experience…

---

## [Could one chain chains?](https://discourse.julialang.org/t/could-one-chain-chains/30642)

<div class="topic-metadata">

**Author:** [@zht](https://discourse.julialang.org/u/zht)\
**Replies:** 3\
**Last updated:** [October 7, 2020, 7:47pm UTC](https://discourse.julialang.org/t/could-one-chain-chains/30642 "2020-10-07T19:47:10Z")

</div>

Is it okay for the layers used in a chain to be chains themselves? Such as Chain(Chain(A, B), C)? All the examples I have seen so far do not use Chain recurrently so I am thinking this may not be kosher. Does this mean t…

---

## [Plots.jl Plot Coordinates - An Adventure](https://discourse.julialang.org/t/plots-jl-plot-coordinates-an-adventure/32676)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 9\
**Last updated:** [October 7, 2020, 7:43pm UTC](https://discourse.julialang.org/t/plots-jl-plot-coordinates-an-adventure/32676 "2020-10-07T19:43:00Z")

</div>

So I am on an adventure… To turn Plots.jl into something that can be extended to interactivity via GTK, or really anything hosting a plot. So in order to do that, I think there are a lot of ways, but one of the most fun …

---

## [HTTP: Exact Routing](https://discourse.julialang.org/t/http-exact-routing/47912)

<div class="topic-metadata">

**Author:** [@Jea](https://discourse.julialang.org/u/Jea)\
**Replies:** 5\
**Last updated:** [October 7, 2020, 7:04pm UTC](https://discourse.julialang.org/t/http-exact-routing/47912 "2020-10-07T19:04:27Z")

</div>

I want to make an exact router for example. HTTP.@register(Router, "GET", "/hello", myFunction) If for example the url is /hello/any, not respond with the as /hello this without declare the route: /hello/any

---

## [Taking action based on Log Level](https://discourse.julialang.org/t/taking-action-based-on-log-level/47951)

<div class="topic-metadata">

**Author:** [@bmalham](https://discourse.julialang.org/u/bmalham)\
**Replies:** 0\
**Last updated:** [October 7, 2020, 6:53pm UTC](https://discourse.julialang.org/t/taking-action-based-on-log-level/47951 "2020-10-07T18:53:43Z")

</div>

Hello, What is the best way to take action based on log level? For example if I wanted to write the output from all log levels to a text file, but I also wanted to print any @err messages to stdout, what would be the be…

---

## [Dispatch Question](https://discourse.julialang.org/t/dispatch-question/47826)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 7\
**Last updated:** [October 7, 2020, 6:22pm UTC](https://discourse.julialang.org/t/dispatch-question/47826 "2020-10-07T18:22:08Z")

</div>

abstract type Def{T} end struct YY \<: Def{Number} end f1(x::Def{\<:T}) where T = T f2(x::Def{T}) where T = T julia\> f1(YY()) ERROR: UndefVarError: T not defined Stacktrace: \[1\] f1(::YY) at ./REPL\[3\]:1 \[2\] top-level s…

---

## [Is there a \`@print\` macro?](https://discourse.julialang.org/t/is-there-a-print-macro/47897)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 16\
**Last updated:** [October 7, 2020, 6:21pm UTC](https://discourse.julialang.org/t/is-there-a-print-macro/47897 "2020-10-07T18:21:14Z")

</div>

I am looking for a macro just like @show but is less cluttered. The behavior is @print x = 100 # same as x = 100 println(x) x

---

## [ANN: Announcing Unitary.jl, a differentiable parametrisation of the group of Unitary Matrices](https://discourse.julialang.org/t/ann-announcing-unitary-jl-a-differentiable-parametrisation-of-the-group-of-unitary-matrices/47917)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 7\
**Last updated:** [October 7, 2020, 6:11pm UTC](https://discourse.julialang.org/t/ann-announcing-unitary-jl-a-differentiable-parametrisation-of-the-group-of-unitary-matrices/47917 "2020-10-07T18:11:36Z")

</div>

For our SumProductTransformation networks https://arxiv.org/abs/2005.01297, we have created an invertible “Dense” transformations usual in neural networks. Our version features efficient inversion and efficient calculati…

---

## [Matrix values](https://discourse.julialang.org/t/matrix-values/47925)

<div class="topic-metadata">

**Author:** [@ricardomribeiro](https://discourse.julialang.org/u/ricardomribeiro)\
**Replies:** 9\
**Last updated:** [October 7, 2020, 5:43pm UTC](https://discourse.julialang.org/t/matrix-values/47925 "2020-10-07T17:43:17Z")

</div>

I am working with a code that first defines a matrix and then changes some values of that matrix. For example: temp1 = zeros(5,5); temp2 = temp1; temp2\[\[1; 3\]\] = \[4; 3\]; I would expect that the values of matrix temp…

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

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