# Latest

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

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

**Page:** 1296

---

## [Cannot manipulate matrices of tuples in function scope but works fine in the REPL](https://discourse.julialang.org/t/cannot-manipulate-matrices-of-tuples-in-function-scope-but-works-fine-in-the-repl/66085)

<div class="topic-metadata">

**Author:** [@talkington](https://discourse.julialang.org/u/talkington)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 6:02pm UTC](https://discourse.julialang.org/t/cannot-manipulate-matrices-of-tuples-in-function-scope-but-works-fine-in-the-repl/66085 "2021-08-18T18:02:57Z")

</div>

ver: 1.6.0 Define a matrix of (Float64,Float64) tuples using the map operator: using LinearAlgebra n = 9 A = map(tuple, (0.0 for i=1:n,j=1:n),zeros(n,n)) Let’s say I want to iterate through the elements and change som…

---

## [Financial Data Wrangling / Cleaning / Joining / Filtering of large DataFrame tables](https://discourse.julialang.org/t/financial-data-wrangling-cleaning-joining-filtering-of-large-dataframe-tables/66615)

<div class="topic-metadata">

**Author:** [@dfa\_julia\_quant](https://discourse.julialang.org/u/dfa_julia_quant)\
**Replies:** 0\
**Last updated:** [August 18, 2021, 5:49pm UTC](https://discourse.julialang.org/t/financial-data-wrangling-cleaning-joining-filtering-of-large-dataframe-tables/66615 "2021-08-18T17:49:46Z")

</div>

I’m looking to hire a freelance computer scientist (or student) that has some financial big-data experience with Julia DataFrames.jl and CSV.jl. I need help to pull this together while I’m working on other Julia project…

---

## [Conv\_mnist model-zoo example,](https://discourse.julialang.org/t/conv-mnist-model-zoo-example/66592)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 9\
**Last updated:** [August 18, 2021, 5:09pm UTC](https://discourse.julialang.org/t/conv-mnist-model-zoo-example/66592 "2021-08-18T17:09:17Z")

</div>

I loaded mnist test data from Kaggle, i wanted to test my pretrained model from conv\_mnist, how to use pretrained model to predict image ? It says: LeNet5 “constructor”. The model can be adapted to any image size and a…

---

## ["sparse inverse" from sparse Cholesky](https://discourse.julialang.org/t/sparse-inverse-from-sparse-cholesky/63080)

<div class="topic-metadata">

**Author:** [@Andres\_Legarra](https://discourse.julialang.org/u/Andres_Legarra)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 12:07pm UTC](https://discourse.julialang.org/t/sparse-inverse-from-sparse-cholesky/63080 "2021-06-17T12:07:10Z")

</div>

I am looking for a manner to obtain, from the sparse Cholesky decomposition of sparse A, the “sparse inverse”, i.e. obtaining only the elements in A^{-1} that correspond to the non-null elements in A. This is sometime…

---

## [Save complex state in function and reuse on next function call](https://discourse.julialang.org/t/save-complex-state-in-function-and-reuse-on-next-function-call/66538)

<div class="topic-metadata">

**Author:** [@DorianT](https://discourse.julialang.org/u/DorianT)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 4:32pm UTC](https://discourse.julialang.org/t/save-complex-state-in-function-and-reuse-on-next-function-call/66538 "2021-08-18T16:32:09Z")

</div>

I have the following function makebatch that creates batches for my model from a text file. The file is processed line-by-line and sometimes processing a line will lead the output to exceed the desired batch size. In thi…

---

## [How to run a Julia page example using GLMakie?](https://discourse.julialang.org/t/how-to-run-a-julia-page-example-using-glmakie/66602)

<div class="topic-metadata">

**Author:** [@JoaoFlauzino](https://discourse.julialang.org/u/JoaoFlauzino)\
**Replies:** 10\
**Last updated:** [August 18, 2021, 4:26pm UTC](https://discourse.julialang.org/t/how-to-run-a-julia-page-example-using-glmakie/66602 "2021-08-18T16:26:57Z")

</div>

I just can’t run the example available here https://juliadynamics.github.io/InteractiveDynamics.jl/dev/cobweb/ I copied and pasted this code and when I run it doesn’t work. I’ve already tried \]build GLMakie . using In…

---

## [\[ANN\] Makie.jl 0.15](https://discourse.julialang.org/t/ann-makie-jl-0-15/64704)

<div class="topic-metadata">

**Author:** [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Replies:** 29\
**Last updated:** [August 18, 2021, 3:45pm UTC](https://discourse.julialang.org/t/ann-makie-jl-0-15/64704 "2021-08-18T15:45:31Z")

</div>

I’m happy to announce a new, minor Makie version! The main breaking change is described in this PR. You can find all the other important changes in the NEWS.md. The most exciting feature surely is the much improved La…

---

## [GLMakie: masking values when plotting images](https://discourse.julialang.org/t/glmakie-masking-values-when-plotting-images/66508)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 3:06pm UTC](https://discourse.julialang.org/t/glmakie-masking-values-when-plotting-images/66508 "2021-08-18T15:06:55Z")

</div>

I’m using GLMakie to display 2 images. GLMakie.image(GLMakie.rotr90(image\_data)) GLMakie.image!(GLMakie.rotr90(some\_extra\_data), colormap=(“viridis”, 0.5)) The second image have a transparency of 0.5. See here: GLMaki…

---

## [Speeding up sort along an array dimension](https://discourse.julialang.org/t/speeding-up-sort-along-an-array-dimension/66468)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 11\
**Last updated:** [August 18, 2021, 1:33pm UTC](https://discourse.julialang.org/t/speeding-up-sort-along-an-array-dimension/66468 "2021-08-18T13:33:11Z")

</div>

I have large arrays which I would like to sort along a single dimension of small size as in the example below. Any suggestions to increase performance would be welcome. using BenchmarkTools a = rand(Float32, 1000, 1000,…

---

## [Validity of package documentation and examples](https://discourse.julialang.org/t/validity-of-package-documentation-and-examples/66217)

<div class="topic-metadata">

**Author:** [@JOST](https://discourse.julialang.org/u/JOST)\
**Replies:** 20\
**Last updated:** [August 18, 2021, 1:21pm UTC](https://discourse.julialang.org/t/validity-of-package-documentation-and-examples/66217 "2021-08-18T13:21:10Z")

</div>

Is this really right? Julia packages are rather messy and instructions and exampels for using packages seems not quite able to be in step with modifications.

---

## [How to model two exponential cones \>= a specific value with JuMP?](https://discourse.julialang.org/t/how-to-model-two-exponential-cones-a-specific-value-with-jump/66589)

<div class="topic-metadata">

**Author:** [@zlq178](https://discourse.julialang.org/u/zlq178)\
**Replies:** 1\
**Last updated:** [August 18, 2021, 12:31pm UTC](https://discourse.julialang.org/t/how-to-model-two-exponential-cones-a-specific-value-with-jump/66589 "2021-08-18T12:31:02Z")

</div>

The model is as follow: obj: min aexp(b)+cexp(d) subject to: 1\<=a\<=2 1\<=b\<=2 0.5\<=c\<=2 0.5\<=d\<=2 aexp(b)+cexp(d)\>=0.5 I see the exponential cones in Jump’s example is smaller than one specific value. Is there a…

---

## [\[Graph\]CodeBERT; and e.g. (2- to) 8-bit int networks better than float, for Transformers/BERT](https://discourse.julialang.org/t/graph-codebert-and-e-g-2-to-8-bit-int-networks-better-than-float-for-transformers-bert/66559)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 4:49pm UTC](https://discourse.julialang.org/t/graph-codebert-and-e-g-2-to-8-bit-int-networks-better-than-float-for-transformers-bert/66559 "2021-08-17T16:49:01Z")

</div>

A. Pre-trained models for programming language have achieved dramatic empirical improvements on a variety of code-related tasks such as \[…\] However, existing pre-trained models regard a code snippet as a sequence of t…

---

## [Running Julia with native Multithreading vs in Seperate Processes](https://discourse.julialang.org/t/running-julia-with-native-multithreading-vs-in-seperate-processes/66594)

<div class="topic-metadata">

**Author:** [@Paul\_Depping](https://discourse.julialang.org/u/Paul_Depping)\
**Replies:** 1\
**Last updated:** [August 18, 2021, 10:58am UTC](https://discourse.julialang.org/t/running-julia-with-native-multithreading-vs-in-seperate-processes/66594 "2021-08-18T10:58:55Z")

</div>

Hello, I’ve measured the performance of a Script which: Reads from a file of some binary format Does a binary search of what it read within a big sorted list containing every value and then fills in a Vector{UInt8} th…

---

## [DrWatson using tmpsave to save many files fails](https://discourse.julialang.org/t/drwatson-using-tmpsave-to-save-many-files-fails/66483)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 14\
**Last updated:** [August 18, 2021, 11:07am UTC](https://discourse.julialang.org/t/drwatson-using-tmpsave-to-save-many-files-fails/66483 "2021-08-18T11:07:21Z")

</div>

I am using DrWatson to run simulations on a cluster. I use this scheme to run many jobs - Real World Examples · DrWatson. The problem is that when I use too many parameters (which generate ~180 files), tmpsave fails. I …

---

## [EBFMI with Turing](https://discourse.julialang.org/t/ebfmi-with-turing/66593)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 0\
**Last updated:** [August 18, 2021, 10:47am UTC](https://discourse.julialang.org/t/ebfmi-with-turing/66593 "2021-08-18T10:47:25Z")

</div>

When sampling with NUTS in Turing, is there a way to get the EBFMI estimate? It seems to be implemented by the sample method in AdvancedHMC but can I get this information when sampling through Turing?

---

## [How to specify the DPI while saving a Makie figure?](https://discourse.julialang.org/t/how-to-specify-the-dpi-while-saving-a-makie-figure/66588)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [August 18, 2021, 9:31am UTC](https://discourse.julialang.org/t/how-to-specify-the-dpi-while-saving-a-makie-figure/66588 "2021-08-18T09:31:00Z")

</div>

For example, how can I obtain a figure with a physical size of (3.25 in x 2.4 in)?

---

## [Adding Julia itself to juliahub?](https://discourse.julialang.org/t/adding-julia-itself-to-juliahub/66582)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 8:15am UTC](https://discourse.julialang.org/t/adding-julia-itself-to-juliahub/66582 "2021-08-18T08:15:43Z")

</div>

I (re-)discovered juliahub to search also for help and code snippets. But then I wondered why the biggest package (Julia itself) seems not be included. Could the owner add it? - That would make a nice help interface. T…

---

## [Is it possible to add a tag to a topic after creation?](https://discourse.julialang.org/t/is-it-possible-to-add-a-tag-to-a-topic-after-creation/66586)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 18, 2021, 7:32am UTC](https://discourse.julialang.org/t/is-it-possible-to-add-a-tag-to-a-topic-after-creation/66586 "2021-08-18T07:32:49Z")

</div>

I created a topic and found a new tag for it that would make it more visibile for the experts in that field. How can I add a new tag after topic creation?

---

## [How to read each line from a file then store the values to array elements?](https://discourse.julialang.org/t/how-to-read-each-line-from-a-file-then-store-the-values-to-array-elements/66585)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 5\
**Last updated:** [August 18, 2021, 7:20am UTC](https://discourse.julialang.org/t/how-to-read-each-line-from-a-file-then-store-the-values-to-array-elements/66585 "2021-08-18T07:20:17Z")

</div>

Sorry for another stupid question. I have a file called Yji.txt, contents is listed below, 3.29107948 3.01222513 1.81928273 1.73277408 1.01205782 3.79643512 3.12969360 2.72422926 1.99088313 1.3797150…

---

## [Arguments in favor of a JuliaGist section](https://discourse.julialang.org/t/arguments-in-favor-of-a-juliagist-section/66157)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 16\
**Last updated:** [August 18, 2021, 3:39am UTC](https://discourse.julialang.org/t/arguments-in-favor-of-a-juliagist-section/66157 "2021-08-18T03:39:09Z")

</div>

Yes, I and this idea are coming from Matlab. Their File Exchange has been criticized here as of low quality. So why do I wish something similar for Julia? Don’t we have with Julia the best ecosystem? Yes, the Julia p…

---

## [Gadfly - add layer caused missing column error](https://discourse.julialang.org/t/gadfly-add-layer-caused-missing-column-error/66578)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 3:37am UTC](https://discourse.julialang.org/t/gadfly-add-layer-caused-missing-column-error/66578 "2021-08-18T03:37:34Z")

</div>

Encountered “missing column” error when adding layer. Using example from Gadfly - Layers. MWE is below. using Gadfly using RDatasets iris = dataset("datasets", "iris") orchard = dataset("datasets", "OrchardSprays") # …

---

## [Solving Fixed-MILP Problem](https://discourse.julialang.org/t/solving-fixed-milp-problem/51749)

<div class="topic-metadata">

**Author:** [@Deepedit](https://discourse.julialang.org/u/Deepedit)\
**Replies:** 12\
**Last updated:** [August 18, 2021, 2:44am UTC](https://discourse.julialang.org/t/solving-fixed-milp-problem/51749 "2021-08-18T02:44:54Z")

</div>

Hello to all. I’m trying to solve some generation schedule problem and we need access to the dual variables for pricing. The problem is MILP and, since the dual variables are no available, we used some suggestion to fix …

---

## [Defining a function with Iterators.filter - slower performance?](https://discourse.julialang.org/t/defining-a-function-with-iterators-filter-slower-performance/66451)

<div class="topic-metadata">

**Author:** [@pbaumgartner](https://discourse.julialang.org/u/pbaumgartner)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 2:28am UTC](https://discourse.julialang.org/t/defining-a-function-with-iterators-filter-slower-performance/66451 "2021-08-18T02:28:16Z")

</div>

Hello! Fairly new to Julia, I’m having an unexpected performance issue in defining a function that returns a Iterators.filter object. I have a simulation that frequently requires me filtering all of my agents on some pr…

---

## [Catalyst/DifferentialEquations: Gillespie simulation not working for large chemical reaction networks](https://discourse.julialang.org/t/catalyst-differentialequations-gillespie-simulation-not-working-for-large-chemical-reaction-networks/66521)

<div class="topic-metadata">

**Author:** [@uagaug](https://discourse.julialang.org/u/uagaug)\
**Replies:** 2\
**Last updated:** [August 18, 2021, 2:10am UTC](https://discourse.julialang.org/t/catalyst-differentialequations-gillespie-simulation-not-working-for-large-chemical-reaction-networks/66521 "2021-08-18T02:10:00Z")

</div>

I have a large chemical reaction network that involves protein synthesis, degradation, binding, and catalysis. I was able to construct the network using Catalyst, and deterministic ODE simulation in Julia returns the sam…

---

## [How to do flexible timing in Julia?](https://discourse.julialang.org/t/how-to-do-flexible-timing-in-julia/66577)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 3\
**Last updated:** [August 18, 2021, 12:49am UTC](https://discourse.julialang.org/t/how-to-do-flexible-timing-in-julia/66577 "2021-08-18T00:49:49Z")

</div>

Another stupid question, in Julia, how to do timing on various parts in the code and display them correspondingly? For example, a Fortran code like below, call cpu\_time(t0) blablabala call cpu\_time(t1) write(6,\*) 't1…

---

## [Julia Beginner (from Python): Numba outperforms Julia in rewrite. Any tips to improve performance?](https://discourse.julialang.org/t/julia-beginner-from-python-numba-outperforms-julia-in-rewrite-any-tips-to-improve-performance/66414)

<div class="topic-metadata">

**Author:** [@rmeinl](https://discourse.julialang.org/u/rmeinl)\
**Replies:** 56\
**Last updated:** [August 18, 2021, 12:00am UTC](https://discourse.julialang.org/t/julia-beginner-from-python-numba-outperforms-julia-in-rewrite-any-tips-to-improve-performance/66414 "2021-08-18T00:00:28Z")

</div>

Hey! I’m new to Julia (coming from Python) and was trying to benchmark Julia against a part of the apricot python package (submodular optimization). Unfortunately the Python version (using numba) is still a bit faster (1…

---

## [Entity Component System - A great way to understad the Julia philosophy](https://discourse.julialang.org/t/entity-component-system-a-great-way-to-understad-the-julia-philosophy/66574)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 10:54pm UTC](https://discourse.julialang.org/t/entity-component-system-a-great-way-to-understad-the-julia-philosophy/66574 "2021-08-17T22:54:52Z")

</div>

Hi folks! As you all know, people coming from an object oriented world may have a hard time getting into the Julia way of thinking about how to organize data and functions. Now, in game development a software pattern t…

---

## [Create static documentation with Documenter.jl](https://discourse.julialang.org/t/create-static-documentation-with-documenter-jl/66567)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 4\
**Last updated:** [August 17, 2021, 10:04pm UTC](https://discourse.julialang.org/t/create-static-documentation-with-documenter-jl/66567 "2021-08-17T22:04:15Z")

</div>

Hello, I am using Documenter.jl to write the documentation of a package. I would like to include tutorials with blocks of julia code and output figures. However, some of these tutorials can be quite long to run. Is it p…

---

## [Cannot set the starting point for LP](https://discourse.julialang.org/t/cannot-set-the-starting-point-for-lp/66531)

<div class="topic-metadata">

**Author:** [@Aida\_Khajavirad](https://discourse.julialang.org/u/Aida_Khajavirad)\
**Replies:** 9\
**Last updated:** [August 17, 2021, 9:53pm UTC](https://discourse.julialang.org/t/cannot-set-the-starting-point-for-lp/66531 "2021-08-17T21:53:19Z")

</div>

Hello, I m trying to solve an LP where my variable has the following form @variable(model, x\[i=1:N-1, j=i+1:N, k=1:d, l=1:d\] \>= 0) I ve been struggling to set a starting point, I tried set\_start\_value but i get error…

---

## [Read-only pluto notebook with functional PlutoUI?](https://discourse.julialang.org/t/read-only-pluto-notebook-with-functional-plutoui/66563)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 4\
**Last updated:** [August 17, 2021, 9:42pm UTC](https://discourse.julialang.org/t/read-only-pluto-notebook-with-functional-plutoui/66563 "2021-08-17T21:42:45Z")

</div>

Is it possible to run a pluto notebook in read-only mode? I.e. make it impossible to edit the cells. But at the same time have PlutoUI elements still functional, so that you can update computed results.

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

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