# Latest

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

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

**Page:** 1241

---

## [Install only project dependencies? (for more efficient cached docker builds)](https://discourse.julialang.org/t/install-only-project-dependencies-for-more-efficient-cached-docker-builds/69645)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 9:44pm UTC](https://discourse.julialang.org/t/install-only-project-dependencies-for-more-efficient-cached-docker-builds/69645 "2021-10-12T21:44:08Z")

</div>

I have a project with many dependencies that I’m currently deploying with Docker. I am able to install my package and it works fine by using: RUN /opt/julia/bin/julia -e 'using Pkg; Pkg.develop(path="/opt/MyPackage"); …

---

## [How to export the coefficient matrix of JuMP model?](https://discourse.julialang.org/t/how-to-export-the-coefficient-matrix-of-jump-model/69635)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 8:53pm UTC](https://discourse.julialang.org/t/how-to-export-the-coefficient-matrix-of-jump-model/69635 "2021-10-12T20:53:29Z")

</div>

Hi all, In Matlab/Yalmip, we can using export, we can get the coefficient matrix and several “standard form” based on certain solver. For example, if we use Gurobi, we can use export to get A, rhs, sense, vtype, obj… I…

---

## [Output of size(array, N) where N is greater than length(size(array))](https://discourse.julialang.org/t/output-of-size-array-n-where-n-is-greater-than-length-size-array/69644)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 8:42pm UTC](https://discourse.julialang.org/t/output-of-size-array-n-where-n-is-greater-than-length-size-array/69644 "2021-10-12T20:42:38Z")

</div>

Hi there If I create the array (matrix): A = fill(1, (2,3)) and then size(A), size(A,1), size(A,2) I get what I would expect. However, if I try size(A,3) I get 1 instead of what naively I would expect now to be an…

---

## [About Julia's inline assembly usage](https://discourse.julialang.org/t/about-julias-inline-assembly-usage/30352)

<div class="topic-metadata">

**Author:** [@Sinai\_Pearl](https://discourse.julialang.org/u/Sinai_Pearl)\
**Replies:** 7\
**Last updated:** [October 12, 2021, 8:06pm UTC](https://discourse.julialang.org/t/about-julias-inline-assembly-usage/30352 "2021-10-12T20:06:02Z")

</div>

I tried to use @asmcall in LLVM.jl. Is there way to copy register’s value to variable in julia code?

---

## [How to understand this code that seemingly creates an anonymous type on the fly?](https://discourse.julialang.org/t/how-to-understand-this-code-that-seemingly-creates-an-anonymous-type-on-the-fly/69636)

<div class="topic-metadata">

**Author:** [@nxtruong](https://discourse.julialang.org/u/nxtruong)\
**Replies:** 5\
**Last updated:** [October 12, 2021, 7:43pm UTC](https://discourse.julialang.org/t/how-to-understand-this-code-that-seemingly-creates-an-anonymous-type-on-the-fly/69636 "2021-10-12T19:43:51Z")

</div>

I read this article and found this piece of code that I couldn’t understand how it works. I modified it a bit from the article. function makeatype(number) add() = number += 1 get() = number (var) -\> (number;…

---

## [Transformers for NER classification](https://discourse.julialang.org/t/transformers-for-ner-classification/69300)

<div class="topic-metadata">

**Author:** [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 6:07pm UTC](https://discourse.julialang.org/t/transformers-for-ner-classification/69300 "2021-10-12T18:07:15Z")

</div>

Hello. I am building a model for NER classification. Model is based on pre-trained BERT loaded with Transformers. I have some problems with the loss function. The problem is, that all losses are calculated only for the s…

---

## [LoopVectorization does not support functions with kwargs?](https://discourse.julialang.org/t/loopvectorization-does-not-support-functions-with-kwargs/69598)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 3:52pm UTC](https://discourse.julialang.org/t/loopvectorization-does-not-support-functions-with-kwargs/69598 "2021-10-12T15:52:16Z")

</div>

I get an error when trying to use LoopVectorization below: using LoopVectorization function f(x; kw=kw) x + kw end function add(z; kw=1) s = zero(eltype(kw)) @turbo for x in 1:z s += f(x; kw=kw) …

---

## [Problem when loading Intel MKL shared library to use with C written shared library](https://discourse.julialang.org/t/problem-when-loading-intel-mkl-shared-library-to-use-with-c-written-shared-library/69323)

<div class="topic-metadata">

**Author:** [@Roman\_Istomin](https://discourse.julialang.org/u/Roman_Istomin)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 3:13pm UTC](https://discourse.julialang.org/t/problem-when-loading-intel-mkl-shared-library-to-use-with-c-written-shared-library/69323 "2021-10-12T15:13:36Z")

</div>

Hi, I have written an optimized C library to do some matrix algebra basically, speeding up some einsum operations. I can compile and use the library from C and C++, it links to Intel MKL and is able to run normally. Thi…

---

## [Probelm with Print or Println in Pluto](https://discourse.julialang.org/t/probelm-with-print-or-println-in-pluto/69630)

<div class="topic-metadata">

**Author:** [@Fuad\_Hasibul\_Hasan](https://discourse.julialang.org/u/Fuad_Hasibul_Hasan)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 2:56pm UTC](https://discourse.julialang.org/t/probelm-with-print-or-println-in-pluto/69630 "2021-10-12T14:56:19Z")

</div>

I am new to Julia, so maybe doing it in the wrong way. I have installed Julia 1.6.3 on my windows machine and all packages are updated. If I start pluto and run the following commands in separate cells, the print or prin…

---

## [Code reuse](https://discourse.julialang.org/t/code-reuse/69618)

<div class="topic-metadata">

**Author:** [@goncharovdk](https://discourse.julialang.org/u/goncharovdk)\
**Replies:** 17\
**Last updated:** [October 12, 2021, 2:44pm UTC](https://discourse.julialang.org/t/code-reuse/69618 "2021-10-12T14:44:29Z")

</div>

Hello. Could anyone recommend a guideline related to core structure/organization for better reuse? I now organize my code in a way similar to this suggestion: Best way to structure Julia code - #16 by ffevotte. But it l…

---

## [Normalizing a vector to sum to one does not work?](https://discourse.julialang.org/t/normalizing-a-vector-to-sum-to-one-does-not-work/69560)

<div class="topic-metadata">

**Author:** [@Dan.phi](https://discourse.julialang.org/u/Dan.phi)\
**Replies:** 7\
**Last updated:** [October 11, 2021, 12:41pm UTC](https://discourse.julialang.org/t/normalizing-a-vector-to-sum-to-one-does-not-work/69560 "2021-10-11T12:41:26Z")

</div>

This is an extremely basic question and I have to be missing something, but when trying to normalize matrix A below so that rows sum to one, some (small) differences remain: A = rand(100,4) A = A./sum(A, dims = 2) sum…

---

## [Question:when i update, I get a error:Unexpected end of data : jl\_0E2ipr-download](https://discourse.julialang.org/t/question-when-i-update-i-get-a-error-unexpected-end-of-data-jl-0e2ipr-download/69624)

<div class="topic-metadata">

**Author:** [@fregot](https://discourse.julialang.org/u/fregot)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 1:50pm UTC](https://discourse.julialang.org/t/question-when-i-update-i-get-a-error-unexpected-end-of-data-jl-0e2ipr-download/69624 "2021-10-12T13:50:04Z")

</div>

like this:

---

## [Calling a Julia app from Python (communicating through stdin)](https://discourse.julialang.org/t/calling-a-julia-app-from-python-communicating-through-stdin/69584)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 1:07pm UTC](https://discourse.julialang.org/t/calling-a-julia-app-from-python-communicating-through-stdin/69584 "2021-10-12T13:07:46Z")

</div>

I am trying to run an app that takes a Python script and calls a Julia app. It should be sending JSON to the Julia app and getting back a text line. The Python side has code like from subprocess import Popen, PIPE ... …

---

## [Unbalanced One-way ANOVA](https://discourse.julialang.org/t/unbalanced-one-way-anova/69489)

<div class="topic-metadata">

**Author:** [@AerospaceMark](https://discourse.julialang.org/u/AerospaceMark)\
**Replies:** 4\
**Last updated:** [October 12, 2021, 12:46pm UTC](https://discourse.julialang.org/t/unbalanced-one-way-anova/69489 "2021-10-12T12:46:55Z")

</div>

I’m a graduate student seeking to learn how to do statistics in Julia. From my internet searching and working with the SimpleANOVA package, I’ve been able to perform ANOVA tests on data where each group has the same numb…

---

## [Wrong to add mosek](https://discourse.julialang.org/t/wrong-to-add-mosek/69605)

<div class="topic-metadata">

**Author:** [@wangpuming](https://discourse.julialang.org/u/wangpuming)\
**Replies:** 3\
**Last updated:** [October 12, 2021, 12:13pm UTC](https://discourse.julialang.org/t/wrong-to-add-mosek/69605 "2021-10-12T12:13:09Z")

</div>

I tried Pkg.add(“Mosek”) to add Mosek package, but I got following errors when I use it.(I have installed the license.) I have no idea why I have received these errors. Please let me know if you have been in the same sit…

---

## [Communication between QML and Julia](https://discourse.julialang.org/t/communication-between-qml-and-julia/69617)

<div class="topic-metadata">

**Author:** [@etas](https://discourse.julialang.org/u/etas)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 12:03pm UTC](https://discourse.julialang.org/t/communication-between-qml-and-julia/69617 "2021-10-12T12:03:37Z")

</div>

Hi, I’m trying to make a light UI with QML but I didn’t find the way to call Julia functions from QML with a vector as parameter and to use this vector in Julia. This example calls the Julia function fct1 when a button, …

---

## [How to store Julia variables and matrices like mat files in MATLAB](https://discourse.julialang.org/t/how-to-store-julia-variables-and-matrices-like-mat-files-in-matlab/69571)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 4\
**Last updated:** [October 11, 2021, 4:36pm UTC](https://discourse.julialang.org/t/how-to-store-julia-variables-and-matrices-like-mat-files-in-matlab/69571 "2021-10-11T16:36:57Z")

</div>

I just switched from Matlab to Julia. One thing I’m trying to figure out is how to store my variables in Julia like mat files in Matlab? For example, in Matlab I would do this: save(‘test.mat’, ‘Var1’, ‘Var2’, ‘Var3’); …

---

## [A little tax-benefit simulation](https://discourse.julialang.org/t/a-little-tax-benefit-simulation/69615)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 11:45am UTC](https://discourse.julialang.org/t/a-little-tax-benefit-simulation/69615 "2021-10-12T11:45:11Z")

</div>

Hi, I thought I’d share this: https://stb.virtual-worlds.scot/bcd/ it’s a tax-benefit simulation of budget constraints for the UK (specifically, Scotland). Built in Julia and Dash, it how shows the net income of a hou…

---

## [Working with a cluster: Data storage & JuliaDB workflow?](https://discourse.julialang.org/t/working-with-a-cluster-data-storage-juliadb-workflow/69544)

<div class="topic-metadata">

**Author:** [@volkerkarle](https://discourse.julialang.org/u/volkerkarle)\
**Replies:** 7\
**Last updated:** [October 12, 2021, 11:31am UTC](https://discourse.julialang.org/t/working-with-a-cluster-data-storage-juliadb-workflow/69544 "2021-10-12T11:31:25Z")

</div>

Dear folks, My Problem: Assume I work on a cluster spawning thousands of jobs (in parallel) and each job saves its outcome in some .hdf5 or .jld file. After all jobs have finished, I collect the data and put them in one…

---

## [Dynamically choosing correct way to filter](https://discourse.julialang.org/t/dynamically-choosing-correct-way-to-filter/69420)

<div class="topic-metadata">

**Author:** [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 11:28am UTC](https://discourse.julialang.org/t/dynamically-choosing-correct-way-to-filter/69420 "2021-10-12T11:28:41Z")

</div>

Hi there, I have an question regarding best practice. I have a dataframe that I need to filter on several columns based on the value in each column. However depending on the situation I may be filtering based on an ar…

---

## [Use LaTeX package in Pluto](https://discourse.julialang.org/t/use-latex-package-in-pluto/68960)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 10:39am UTC](https://discourse.julialang.org/t/use-latex-package-in-pluto/68960 "2021-10-12T10:39:54Z")

</div>

Is it possible to use a latex package in Pluto?

---

## [Problem with shared library interfacing hardware devices](https://discourse.julialang.org/t/problem-with-shared-library-interfacing-hardware-devices/69612)

<div class="topic-metadata">

**Author:** [@Bossax](https://discourse.julialang.org/u/Bossax)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 9:44am UTC](https://discourse.julialang.org/t/problem-with-shared-library-interfacing-hardware-devices/69612 "2021-10-12T09:44:59Z")

</div>

Hi all, I am using Julia to control a camera which comes with a shared library on Linux-Mint. The shared library provides APIs written in C++ . There are also header files containing definitions of types and constants c…

---

## [Dynamic Latex](https://discourse.julialang.org/t/dynamic-latex/69600)

<div class="topic-metadata">

**Author:** [@BrianTipton1](https://discourse.julialang.org/u/BrianTipton1)\
**Replies:** 7\
**Last updated:** [October 12, 2021, 9:07am UTC](https://discourse.julialang.org/t/dynamic-latex/69600 "2021-10-12T09:07:54Z")

</div>

Sorry if a silly question, but is there a way to use variables in latex equations in pluto.jl markdown so that the equations change dynamically. Thanks, The new guy loving this language

---

## [Transducer allocations](https://discourse.julialang.org/t/transducer-allocations/69573)

<div class="topic-metadata">

**Author:** [@astadmistry](https://discourse.julialang.org/u/astadmistry)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 7:40am UTC](https://discourse.julialang.org/t/transducer-allocations/69573 "2021-10-12T07:40:55Z")

</div>

I’m trying to use transducers to do data manipulation such as computing a rolling simple moving average. The code works fine, however why is the code allocating memory when I’ve pre allocated it already? (look at last tw…

---

## [TL;DR tips for Julia users coming from Matlab](https://discourse.julialang.org/t/tl-dr-tips-for-julia-users-coming-from-matlab/41093)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 28\
**Last updated:** [October 11, 2021, 4:44pm UTC](https://discourse.julialang.org/t/tl-dr-tips-for-julia-users-coming-from-matlab/41093 "2021-10-11T16:44:40Z")

</div>

While the Julia Discourse and Slack communities are incredibly helpful, the responses can lean more technical. I thought it’d be nice to collect TL;DR advice for Julia summarized in simple terms. For example, in this th…

---

## [Display of a sparse matrix with all elements equal to zero](https://discourse.julialang.org/t/display-of-a-sparse-matrix-with-all-elements-equal-to-zero/69606)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 5:54am UTC](https://discourse.julialang.org/t/display-of-a-sparse-matrix-with-all-elements-equal-to-zero/69606 "2021-10-12T05:54:04Z")

</div>

Currently, a sparse matrix spy display prints a blank page if all the elements are zero. julia\> sparse(zeros(2, 2)) 2×2 SparseMatrixCSC{Float64, Int64} with 0 stored entries: ⋅ ⋅ ⋅ ⋅ julia\> sparse(zeros(20,…

---

## [Status of Plotly Availability / Development in Julia?](https://discourse.julialang.org/t/status-of-plotly-availability-development-in-julia/69553)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 11\
**Last updated:** [October 12, 2021, 5:25am UTC](https://discourse.julialang.org/t/status-of-plotly-availability-development-in-julia/69553 "2021-10-12T05:25:29Z")

</div>

Hi Community, I am quite new in Julia but I have already seen that Plotly does a great job in creating interactive plots. But it seems that https://plotly.com/julia/ has a lot of dead links such as https://plotly.com/j…

---

## [Column Gerneration Example in the documentation/hot start after adding variables to LP](https://discourse.julialang.org/t/column-gerneration-example-in-the-documentation-hot-start-after-adding-variables-to-lp/69603)

<div class="topic-metadata">

**Author:** [@dirk](https://discourse.julialang.org/u/dirk)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 4:40am UTC](https://discourse.julialang.org/t/column-gerneration-example-in-the-documentation-hot-start-after-adding-variables-to-lp/69603 "2021-10-12T04:40:31Z")

</div>

Hi all, I just started using Julia and JuMP. I went through the tutorials (https://jump.dev/JuMP.jl/stable/tutorials/Mixed-integer%20linear%20programs/cutting\_stock\_column\_generation/) and in the column generation exam…

---

## [Reading lines from a pipe without hanging at the end](https://discourse.julialang.org/t/reading-lines-from-a-pipe-without-hanging-at-the-end/69524)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 3\
**Last updated:** [October 12, 2021, 4:01am UTC](https://discourse.julialang.org/t/reading-lines-from-a-pipe-without-hanging-at-the-end/69524 "2021-10-12T04:01:02Z")

</div>

Suppose you want to run a command, read the output, and return some processed version of the output… for example this code parses the output of “traceroute”… function gethops(dname) trin = Pipe() trout = Pipe…

---

## [Fastest way to add many JuMP constraints](https://discourse.julialang.org/t/fastest-way-to-add-many-jump-constraints/69587)

<div class="topic-metadata">

**Author:** [@ZHEN\_LIN](https://discourse.julialang.org/u/ZHEN_LIN)\
**Replies:** 6\
**Last updated:** [October 12, 2021, 3:08am UTC](https://discourse.julialang.org/t/fastest-way-to-add-many-jump-constraints/69587 "2021-10-12T03:08:43Z")

</div>

What is the best way to add the following constraints in JuMP to minimize computation time? I need to solve similar models many times. @constraint(model, \[i = 1:n, j = 1:m\], \[t\[i, j\], 1, x\[i, j\]\] in MOI.ExponentialCone(…

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

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