# Latest

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

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

**Page:** 1713

---

## [Test code with multi-threading](https://discourse.julialang.org/t/test-code-with-multi-threading/41754)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 11:06pm UTC](https://discourse.julialang.org/t/test-code-with-multi-threading/41754 "2020-06-19T23:06:53Z")

</div>

Hello, I am writing a multi-threading of my code, but I would like to write unit tests to make sure I get the same results as in the serial case. I am thinking of doing: execute export JULIA\_NUM\_THREADS=6 in the bash …

---

## [Installing from JuliaPro by Julia Computing. Where are all the packages?](https://discourse.julialang.org/t/installing-from-juliapro-by-julia-computing-where-are-all-the-packages/41637)

<div class="topic-metadata">

**Author:** [@SatyaKomatineni](https://discourse.julialang.org/u/SatyaKomatineni)\
**Replies:** 15\
**Last updated:** [June 19, 2020, 8:44pm UTC](https://discourse.julialang.org/t/installing-from-juliapro-by-julia-computing-where-are-all-the-packages/41637 "2020-06-19T20:44:12Z")

</div>

Hello I have installed JulioPro from JuliaComputing. The site says it has lots and lots of packages. They seem to be there in a number of sub directories. when I type in Pkg RELP status it only shows 4 or 5. For ex…

---

## [Julia equivalent of Python (numpy.savetxt) and Matlab (save) commands?](https://discourse.julialang.org/t/julia-equivalent-of-python-numpy-savetxt-and-matlab-save-commands/41738)

<div class="topic-metadata">

**Author:** [@dynova](https://discourse.julialang.org/u/dynova)\
**Replies:** 5\
**Last updated:** [June 19, 2020, 8:37pm UTC](https://discourse.julialang.org/t/julia-equivalent-of-python-numpy-savetxt-and-matlab-save-commands/41738 "2020-06-19T20:37:39Z")

</div>

What is the Julia equivalent of the following Python and MATLAB codes? I’m looking for identical formatting in the output. After searching the documentation (e.g. JLD, CSV, DataFrames), I have not found a satisfactory …

---

## [Better notebook2script](https://discourse.julialang.org/t/better-notebook2script/41733)

<div class="topic-metadata">

**Author:** [@SubhadityaMukherjee](https://discourse.julialang.org/u/SubhadityaMukherjee)\
**Replies:** 5\
**Last updated:** [June 19, 2020, 8:09pm UTC](https://discourse.julialang.org/t/better-notebook2script/41733 "2020-06-19T20:09:04Z")

</div>

Tired of manually exporting your notebook to script? Usage Add #export to the start of every cell you want in the final export julia notebook2script.jl “path\_to\_input.ipynb” “path\_to\_output” No need to add a .jl Done …

---

## [Flux: Custom Training + Logging](https://discourse.julialang.org/t/flux-custom-training-logging/41688)

<div class="topic-metadata">

**Author:** [@jmurray](https://discourse.julialang.org/u/jmurray)\
**Replies:** 7\
**Last updated:** [June 19, 2020, 7:15pm UTC](https://discourse.julialang.org/t/flux-custom-training-logging/41688 "2020-06-19T19:15:58Z")

</div>

In the Flux documentation, they give an example of how to do a custom training routine and they indicate where you would place code to do logging (see below). I want to log the loss by initializing LossLog = Float64\[\] ou…

---

## [ANN: RegressionTables.jl produces publication-quality regression tables](https://discourse.julialang.org/t/ann-regressiontables-jl-produces-publication-quality-regression-tables/7516)

<div class="topic-metadata">

**Author:** [@jmboehm](https://discourse.julialang.org/u/jmboehm)\
**Replies:** 41\
**Last updated:** [June 19, 2020, 7:13pm UTC](https://discourse.julialang.org/t/ann-regressiontables-jl-produces-publication-quality-regression-tables/7516 "2020-06-19T19:13:27Z")

</div>

Hi all, I’ve been working on RegressionTables.jl, a package that produces regression tables as seen in scientific journals (similar to R’s stargazer and Stata’s esttab). It currently works with output from the absolute…

---

## [Square root of the inverse of a matrix](https://discourse.julialang.org/t/square-root-of-the-inverse-of-a-matrix/41539)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 17\
**Last updated:** [June 19, 2020, 6:13pm UTC](https://discourse.julialang.org/t/square-root-of-the-inverse-of-a-matrix/41539 "2020-06-19T18:13:11Z")

</div>

Hello, I am working on square root factorization of the matrix of the form A = I + U'U which is typically positive semi-definite of dimension N \\sim 100. I need to solve a least square problem A^{-1}Y and compute the …

---

## [Saving and loading a model that is composed of different Chains](https://discourse.julialang.org/t/saving-and-loading-a-model-that-is-composed-of-different-chains/41737)

<div class="topic-metadata">

**Author:** [@sarthak\_batra](https://discourse.julialang.org/u/sarthak_batra)\
**Replies:** 0\
**Last updated:** [June 19, 2020, 5:12pm UTC](https://discourse.julialang.org/t/saving-and-loading-a-model-that-is-composed-of-different-chains/41737 "2020-06-19T17:12:52Z")

</div>

Hi, I am new to Julia I have implemented PSPNet and I tried to save the model. It consists of parallel Chains and I am not able to save the parameters of the parallel chain,and If I save them how will I Load them in the…

---

## [VegaLite Overlay](https://discourse.julialang.org/t/vegalite-overlay/41640)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 4:59pm UTC](https://discourse.julialang.org/t/vegalite-overlay/41640 "2020-06-19T16:59:13Z")

</div>

I have a scatter plot of data in VegaLite. I’d like to overlay a regression line on this plot. Is there a way to do this? df |\> @vlplot(:point, x = :Years, y = :Overall, width = 500, height = 500) Can I just add the …

---

## [How can I return the number of missings / uniques of a numerical type column?](https://discourse.julialang.org/t/how-can-i-return-the-number-of-missings-uniques-of-a-numerical-type-column/41726)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 4\
**Last updated:** [June 19, 2020, 2:56pm UTC](https://discourse.julialang.org/t/how-can-i-return-the-number-of-missings-uniques-of-a-numerical-type-column/41726 "2020-06-19T14:56:17Z")

</div>

Hi how’s it going? I’m trying to filter columns based on number of unique values and number of missings, and I just noticed that when calling the Describe() method on a DataFrame, it doesn’t work for numerical columns. …

---

## [Some tweaks about binary I/O plus some conversions](https://discourse.julialang.org/t/some-tweaks-about-binary-i-o-plus-some-conversions/41586)

<div class="topic-metadata">

**Author:** [@Xijiang\_Yu](https://discourse.julialang.org/u/Xijiang_Yu)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 10:11pm UTC](https://discourse.julialang.org/t/some-tweaks-about-binary-i-o-plus-some-conversions/41586 "2020-06-18T22:11:59Z")

</div>

Background The genotype data can be stored like: 01212 where, 0 and 2 are homozygotes, 1 is the heterozyges. Frequently they will be read into a Float64 matrix for some dot operations and GEMM things. My question is th…

---

## [Deconstructing Deep learning](https://discourse.julialang.org/t/deconstructing-deep-learning/41728)

<div class="topic-metadata">

**Author:** [@SubhadityaMukherjee](https://discourse.julialang.org/u/SubhadityaMukherjee)\
**Replies:** 0\
**Last updated:** [June 19, 2020, 1:51pm UTC](https://discourse.julialang.org/t/deconstructing-deep-learning/41728 "2020-06-19T13:51:03Z")

</div>

There are many of you who want to learn Julia for Deep Learning. Yes there are many libraries and documentations existing. But I am one of these people so I decided to start a library from scratch and drumroll… document…

---

## [Ph.D. at INRIA Sophia Antipolis](https://discourse.julialang.org/t/ph-d-at-inria-sophia-antipolis/41727)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 0\
**Last updated:** [June 19, 2020, 1:37pm UTC](https://discourse.julialang.org/t/ph-d-at-inria-sophia-antipolis/41727 "2020-06-19T13:37:27Z")

</div>

At INRIA Sophia Antipolis Méditerranée, we are looking for a motivated student interested in pursuing a PhD on applying algorithmic techniques to the problem of compressing artificial neural networks, or related problems…

---

## [Cross-platform unpacking of rar archive?](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 5\
**Last updated:** [June 19, 2020, 1:35pm UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717 "2020-06-19T13:35:45Z")

</div>

Is there are a cross-platform way to unpack rar archives in julia? I saw there is the unregistered LibArchive.jl, but I got build errors in julia 1.4.1. Is there an alternative? EDIT: I found p7zip\_jll in the meantime. …

---

## [Getting a reference to, and not a copy of, a field value](https://discourse.julialang.org/t/getting-a-reference-to-and-not-a-copy-of-a-field-value/9042)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 12\
**Last updated:** [June 19, 2020, 1:08pm UTC](https://discourse.julialang.org/t/getting-a-reference-to-and-not-a-copy-of-a-field-value/9042 "2020-06-19T13:08:40Z")

</div>

The code y = object.x binds a copy of object.x to y. How do I make bind y to object.x itself? The reason for my question is this: To improve readability, I want to do something like this: function foo(cache) X = c…

---

## [New Alpha zero replica](https://discourse.julialang.org/t/new-alpha-zero-replica/41432)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 6\
**Last updated:** [June 19, 2020, 1:01pm UTC](https://discourse.julialang.org/t/new-alpha-zero-replica/41432 "2020-06-19T13:01:27Z")

</div>

Hello, I posted a new alphazero replica on github: https://github.com/fabricerosay/AGZ0 It’s (very(very)) messy but fast and can easily be tweaked provided you already know alphazero. It uses Flux as only backend. Th…

---

## [Help with macros and calling a macro from a different module](https://discourse.julialang.org/t/help-with-macros-and-calling-a-macro-from-a-different-module/41715)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 4\
**Last updated:** [June 19, 2020, 1:00pm UTC](https://discourse.julialang.org/t/help-with-macros-and-calling-a-macro-from-a-different-module/41715 "2020-06-19T13:00:37Z")

</div>

I’m very new to macros so any help is appreciated. Currently I want to extend JuMP and there inside a macro this line exists: buildcall = :(\_build\_indicator\_constraint($\_error, $(esc(variable)), $rhs\_buildcall, $S)) w…

---

## [Using BlackBoxOptim with Flux](https://discourse.julialang.org/t/using-blackboxoptim-with-flux/41724)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 0\
**Last updated:** [June 19, 2020, 1:00pm UTC](https://discourse.julialang.org/t/using-blackboxoptim-with-flux/41724 "2020-06-19T13:00:18Z")

</div>

It has been noted that BlackBoxOptim now may be used as one of the optimizers in Flux in the latest release, but I can’t find any documentation or examples for how to use it. I know how to use each separately. I saw …

---

## [How to add short inline documentation to a function?](https://discourse.julialang.org/t/how-to-add-short-inline-documentation-to-a-function/41714)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 1:00pm UTC](https://discourse.julialang.org/t/how-to-add-short-inline-documentation-to-a-function/41714 "2020-06-19T13:00:06Z")

</div>

In C++/Doxygen it is possible to add short documentation e.g. int myf(int x); ///\< My quick doc Is it possible to use the same style in Julia/Documenter.jl, without having to write a docstring on its own line, like: …

---

## [Clean workspace, plot pane, and console on re-run in Julia](https://discourse.julialang.org/t/clean-workspace-plot-pane-and-console-on-re-run-in-julia/39475)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 11\
**Last updated:** [June 19, 2020, 12:53pm UTC](https://discourse.julialang.org/t/clean-workspace-plot-pane-and-console-on-re-run-in-julia/39475 "2020-06-19T12:53:41Z")

</div>

I am used to starting all my Matlab scripts with clear all; close all; clc to ensure I am not looking at any old data or plots. I found Julia’s clearconsole() to be equivalent to Matlab’s clc, but don’t have working solu…

---

## [How to Plots.plot a GroupedDataFrame?](https://discourse.julialang.org/t/how-to-plots-plot-a-groupeddataframe/41723)

<div class="topic-metadata">

**Author:** [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Replies:** 1\
**Last updated:** [June 19, 2020, 12:28pm UTC](https://discourse.julialang.org/t/how-to-plots-plot-a-groupeddataframe/41723 "2020-06-19T12:28:46Z")

</div>

Hi there, I recently asked a question on how to do grouping in Julia Plots, the answer was to encapsulate a mapping and feed the function to the group keyword in the plot function. But learning more about DataFrames, I…

---

## [Questions about contributing to Distributions.jl](https://discourse.julialang.org/t/questions-about-contributing-to-distributions-jl/41530)

<div class="topic-metadata">

**Author:** [@matvil](https://discourse.julialang.org/u/matvil)\
**Replies:** 41\
**Last updated:** [June 19, 2020, 11:25am UTC](https://discourse.julialang.org/t/questions-about-contributing-to-distributions-jl/41530 "2020-06-19T11:25:17Z")

</div>

Hi all, I am thinking about contributing to Distributions.jl. Two questions: Is it of interest to contribute yet another distribution, or is the philosophy of that package to only include the most widely used distribu…

---

## [Silence mosek solver in JuMP](https://discourse.julialang.org/t/silence-mosek-solver-in-jump/41708)

<div class="topic-metadata">

**Author:** [@stephentu](https://discourse.julialang.org/u/stephentu)\
**Replies:** 2\
**Last updated:** [June 19, 2020, 10:25am UTC](https://discourse.julialang.org/t/silence-mosek-solver-in-jump/41708 "2020-06-19T10:25:50Z")

</div>

How do you disable the output from mosek when solving JuMP problems? I tried the following: model = Model(with\_optimizer(Mosek.Optimizer, QUIET=false)) model = Model(optimizer\_with\_attributes(Mosek.Optimizer, MOI.Silen…

---

## [Broadcasting \*= and the like](https://discourse.julialang.org/t/broadcasting-and-the-like/41702)

<div class="topic-metadata">

**Author:** [@binarygcd](https://discourse.julialang.org/u/binarygcd)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 6:54am UTC](https://discourse.julialang.org/t/broadcasting-and-the-like/41702 "2020-06-19T06:54:07Z")

</div>

I tried using broadcast for computing the radicals of integers 1 to limit. But it was significantly slower than the for loop version. Am I doing something wrong? I tried map! but I’m not sure if I got it right so please …

---

## [Providing precompiled ji files within a package](https://discourse.julialang.org/t/providing-precompiled-ji-files-within-a-package/41709)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 4\
**Last updated:** [June 19, 2020, 6:22am UTC](https://discourse.julialang.org/t/providing-precompiled-ji-files-within-a-package/41709 "2020-06-19T06:22:27Z")

</div>

Hi! I am developing a package with a heavy precompilation time (5-10 minutes, but could be a bit more). The .ji are not that big though and it runs pretty fast. Is it possible to provide .ji files (per platform I suppo…

---

## [Is it possible to have struct to parametric with Val{}?](https://discourse.julialang.org/t/is-it-possible-to-have-struct-to-parametric-with-val/41707)

<div class="topic-metadata">

**Author:** [@Patrick\_Chow](https://discourse.julialang.org/u/Patrick_Chow)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 4:25am UTC](https://discourse.julialang.org/t/is-it-possible-to-have-struct-to-parametric-with-val/41707 "2020-06-19T04:25:05Z")

</div>

Hi All, I wonder if I could make a parametric type like this? struct AAA{Val{a}} aaa::Bool end b = AAA{Val{true}}(true) I tried a few variants all doesn’t work. Perhaps I can specalized with Val{} in struct?

---

## [Libhttp\_parser\_2\_7\_1.zip is unavailable](https://discourse.julialang.org/t/libhttp-parser-2-7-1-zip-is-unavailable/41664)

<div class="topic-metadata">

**Author:** [@pengchy](https://discourse.julialang.org/u/pengchy)\
**Replies:** 0\
**Last updated:** [June 18, 2020, 10:19am UTC](https://discourse.julialang.org/t/libhttp-parser-2-7-1-zip-is-unavailable/41664 "2020-06-18T10:19:43Z")

</div>

Background information: It is Whippet leads me to here to ask this question. According to the instruction of Whippet, I have installed Julia v0.6.4 on Linux. But I cannot install “Whippet” through Pkg.add("Whippet"), be…

---

## [Is this a legal use of Zip?](https://discourse.julialang.org/t/is-this-a-legal-use-of-zip/41703)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [June 19, 2020, 2:52am UTC](https://discourse.julialang.org/t/is-this-a-legal-use-of-zip/41703 "2020-06-19T02:52:50Z")

</div>

I would like to create a collection of iterators. Before I start iterating I would like to access individual iterators. Doing that requires accessing the field of Zip. Does this look okay? N = 3 it1 = fill(1, N) it2 = f…

---

## [Create a heap for array with weights](https://discourse.julialang.org/t/create-a-heap-for-array-with-weights/41581)

<div class="topic-metadata">

**Author:** [@yusri-dh](https://discourse.julialang.org/u/yusri-dh)\
**Replies:** 2\
**Last updated:** [June 19, 2020, 2:11am UTC](https://discourse.julialang.org/t/create-a-heap-for-array-with-weights/41581 "2020-06-19T02:11:48Z")

</div>

Suppose that I have an array X = \["a","b","c","d"\] with the corresponding weights weight = \[1,4,3,2\] How can I make heaps of X using weight using DataStructures weight\_heaps =BinaryMaxHeap(weight) # What I want to d…

---

## [Any way to reduce/change number of threads (for the Benchmark Game)](https://discourse.julialang.org/t/any-way-to-reduce-change-number-of-threads-for-the-benchmark-game/41706)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [June 19, 2020, 1:21am UTC](https://discourse.julialang.org/t/any-way-to-reduce-change-number-of-threads-for-the-benchmark-game/41706 "2020-06-19T01:21:55Z")

</div>

A. Using 4 threads adds 20.3 ms (37 on average, but I trust the minimum better) to startup (would there be a way for Julia do delay adding them until the threads actually used?). The obvious solution is not asking for …

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

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