# Latest

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

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

**Page:** 1186

---

## [Optimal model creation (and garbage collection)](https://discourse.julialang.org/t/optimal-model-creation-and-garbage-collection/72619)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 20\
**Last updated:** [December 7, 2021, 11:25pm UTC](https://discourse.julialang.org/t/optimal-model-creation-and-garbage-collection/72619 "2021-12-07T23:25:46Z")

</div>

Hi! I’m rather new to JuMP (and Julia) and I’m trying to compare the speed of creating a model using JuMP to an existing Python project (trying to decide whether it would be beneficial to switch to JuMP, now that 1.0 is …

---

## [Question regarding sparse vector](https://discourse.julialang.org/t/question-regarding-sparse-vector/72724)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 10\
**Last updated:** [December 7, 2021, 11:18pm UTC](https://discourse.julialang.org/t/question-regarding-sparse-vector/72724 "2021-12-07T23:18:33Z")

</div>

What am I doing wrong here: using SparseArrays v = sparsevec(\[1, 2, 3\], \[1.0, 0.0, 1.0\]) println("iter") for x in v println(x); end println("map") map(x -\> begin println(x); x; end, v) println("end") yielding iter 1.0…

---

## [Distances and Similitude](https://discourse.julialang.org/t/distances-and-similitude/72517)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 14\
**Last updated:** [December 7, 2021, 9:54pm UTC](https://discourse.julialang.org/t/distances-and-similitude/72517 "2021-12-07T21:54:26Z")

</div>

Hello Colleagues: I am attempting to understand the concepts behind some of the Distances.jl modules. So will start with a basic DF for example: DF = Dataframe(ID = 1:1:15, M1 = rand(0:5:100,15), M2 = rand(0:5:100,15…

---

## [Unexpected behavior of QuadGK with extended precision floats](https://discourse.julialang.org/t/unexpected-behavior-of-quadgk-with-extended-precision-floats/72684)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 4\
**Last updated:** [December 7, 2021, 9:42pm UTC](https://discourse.julialang.org/t/unexpected-behavior-of-quadgk-with-extended-precision-floats/72684 "2021-12-07T21:42:36Z")

</div>

This topic arose from a topic in the Fortran Discourse group. Calling the gauss function from the QuadGK package produces different results depending on how it was previously called. Here is an example: …

---

## [Truncating conversion to days](https://discourse.julialang.org/t/truncating-conversion-to-days/72694)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 6\
**Last updated:** [December 7, 2021, 9:20pm UTC](https://discourse.julialang.org/t/truncating-conversion-to-days/72694 "2021-12-07T21:20:44Z")

</div>

julia\> Dates.days(Hour(1)) 0 julia\> Dates.days(Year(1)) 365.2425 One of these truncates and one does not. What is the rationale behind this distinction?

---

## [Error: KeyError: key packagename \[uuid\] not found](https://discourse.julialang.org/t/error-keyerror-key-packagename-uuid-not-found/72658)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [December 7, 2021, 8:42pm UTC](https://discourse.julialang.org/t/error-keyerror-key-packagename-uuid-not-found/72658 "2021-12-07T20:42:42Z")

</div>

I have created a package in the ~.julia\\dev directory. I used PkgTemplates for its creation. The package seems to have a correct project.toml and manifest.toml. The package name was not found in ~.julia\\environments\\v…

---

## [Who is using Dagger?](https://discourse.julialang.org/t/who-is-using-dagger/71970)

<div class="topic-metadata">

**Author:** [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Replies:** 12\
**Last updated:** [December 7, 2021, 5:19pm UTC](https://discourse.julialang.org/t/who-is-using-dagger/71970 "2021-12-07T17:19:19Z")

</div>

Hey all! I’m interested in finding out who in the community is using Dagger, or has used Dagger in the past. If so, I would appreciate if you could provide answers to any of the following questions: What kind of proble…

---

## [Reducing (time spent in) garbage collection](https://discourse.julialang.org/t/reducing-time-spent-in-garbage-collection/72715)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 2\
**Last updated:** [December 7, 2021, 4:34pm UTC](https://discourse.julialang.org/t/reducing-time-spent-in-garbage-collection/72715 "2021-12-07T16:34:20Z")

</div>

I’m using the code posted below to create a simple JuMP model with variable size. Depending on the size and the way I construct the problem this induces somewhere between 20-80% of the total time spent in garbage collect…

---

## [Best practice for avoiding line break bugs in long expressions](https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475)

<div class="topic-metadata">

**Author:** [@NickNack](https://discourse.julialang.org/u/NickNack)\
**Replies:** 26\
**Last updated:** [December 7, 2021, 4:22pm UTC](https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475 "2021-12-07T16:22:30Z")

</div>

I had a very frustrating debugging session yesterday. My code was running without errors but producing incorrect results. It took at least two hours for me to find this problem: x = a + really \* long + + (and + comp…

---

## [Update range with the same number of samples, Makie](https://discourse.julialang.org/t/update-range-with-the-same-number-of-samples-makie/72719)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 1\
**Last updated:** [December 7, 2021, 3:58pm UTC](https://discourse.julialang.org/t/update-range-with-the-same-number-of-samples-makie/72719 "2021-12-07T15:58:49Z")

</div>

How to use the information from ax.finallimits\[\] to update my plot to a new range in x and y when I do zoom in or zoom out in my plot? The catch is that the number of samples needs to remain the same. using GLMakie fig …

---

## [Online Meetup: Streaming Analytics with OnlineStats.jl](https://discourse.julialang.org/t/online-meetup-streaming-analytics-with-onlinestats-jl/72123)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 4\
**Last updated:** [December 7, 2021, 2:52pm UTC](https://discourse.julialang.org/t/online-meetup-streaming-analytics-with-onlinestats-jl/72123 "2021-12-07T14:52:54Z")

</div>

Join on Monday 06. Dezember 2021 CET 18:30 organized via meetup Fall in love with Julia: Streaming Analytics with OnlineStats.jl ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Hi all, this introductory series is for you: you…

---

## [Plot in Pluto.jl made with the plotly backend has a lot of wasted white space](https://discourse.julialang.org/t/plot-in-pluto-jl-made-with-the-plotly-backend-has-a-lot-of-wasted-white-space/72681)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 11\
**Last updated:** [December 7, 2021, 2:02pm UTC](https://discourse.julialang.org/t/plot-in-pluto-jl-made-with-the-plotly-backend-has-a-lot-of-wasted-white-space/72681 "2021-12-07T14:02:12Z")

</div>

I’ve made a simple plot in Pluto.jl with the plotly() backend, but as you can see from the picture, it has a lot of white space on its left. The cells in Pluto are already pretty small, and this makes the plot even small…

---

## [Workflow question: loading models for simulation](https://discourse.julialang.org/t/workflow-question-loading-models-for-simulation/72709)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 0\
**Last updated:** [December 7, 2021, 12:58pm UTC](https://discourse.julialang.org/t/workflow-question-loading-models-for-simulation/72709 "2021-12-07T12:58:50Z")

</div>

Hi, My question is related to optimization of the following workflow. I have a package MySimPkg to simulate ODE-based models and I load those models (currently julia .jl files) to run simulations. Each model.jl looks l…

---

## [1.7.0 PDF doc missing](https://discourse.julialang.org/t/1-7-0-pdf-doc-missing/72493)

<div class="topic-metadata">

**Author:** [@jdarnold](https://discourse.julialang.org/u/jdarnold)\
**Replies:** 9\
**Last updated:** [December 7, 2021, 12:33pm UTC](https://discourse.julialang.org/t/1-7-0-pdf-doc-missing/72493 "2021-12-07T12:33:23Z")

</div>

Seems to be a common problem with previous versions, but the 1.7.0 PDF is missing: 404: Not found

---

## [VS Code + stackoverflowerror](https://discourse.julialang.org/t/vs-code-stackoverflowerror/72704)

<div class="topic-metadata">

**Author:** [@RJDennis](https://discourse.julialang.org/u/RJDennis)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 10:58am UTC](https://discourse.julialang.org/t/vs-code-stackoverflowerror/72704 "2021-12-07T10:58:31Z")

</div>

Is anyone else getting the following error? I’m running Windows and I get the error for both 1.7 and 1.6.4 when running the following in VS Code (but not when it is run directly in the REPL) function test() a = r…

---

## [Dbscan clustering with distance matrix](https://discourse.julialang.org/t/dbscan-clustering-with-distance-matrix/72700)

<div class="topic-metadata">

**Author:** [@frits45](https://discourse.julialang.org/u/frits45)\
**Replies:** 6\
**Last updated:** [December 7, 2021, 11:51am UTC](https://discourse.julialang.org/t/dbscan-clustering-with-distance-matrix/72700 "2021-12-07T11:51:37Z")

</div>

Hello, I need to cluster “objects” that are not points in space, but I can calculate a distance between them. The documentation says: There are two implementations of DBSCAN algorithm in this package (both provided by…

---

## [Julia back-end and algorithmic ML roles at Tangent Works (Slovakia / Belgium / Remote)](https://discourse.julialang.org/t/julia-back-end-and-algorithmic-ml-roles-at-tangent-works-slovakia-belgium-remote/72706)

<div class="topic-metadata">

**Author:** [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)\
**Replies:** 0\
**Last updated:** [December 7, 2021, 10:31am UTC](https://discourse.julialang.org/t/julia-back-end-and-algorithmic-ml-roles-at-tangent-works-slovakia-belgium-remote/72706 "2021-12-07T10:31:39Z")

</div>

Hello, we are looking (again :slight\_smile: ) for a Julia back-end developers and other related roles. You will be working on building the back-end components of a distributed machine learning system TIM (Tangent Inform…

---

## [\[ANN\] LearningHorse.jl: Machine Learning Library](https://discourse.julialang.org/t/ann-learninghorse-jl-machine-learning-library/72372)

<div class="topic-metadata">

**Author:** [@QGMW22](https://discourse.julialang.org/u/QGMW22)\
**Replies:** 10\
**Last updated:** [December 7, 2021, 10:07am UTC](https://discourse.julialang.org/t/ann-learninghorse-jl-machine-learning-library/72372 "2021-12-07T10:07:46Z")

</div>

I’m glad to announce that I released the LearningHorse.jl LearningHorse is the MachineLearning Library for JuliaLang. features Less dependencies. You can build from simple models like regression to complex models like…

---

## [Probabilistic bone classification - is probabilistic graphical model good idea?](https://discourse.julialang.org/t/probabilistic-bone-classification-is-probabilistic-graphical-model-good-idea/72703)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 0\
**Last updated:** [December 7, 2021, 9:49am UTC](https://discourse.julialang.org/t/probabilistic-bone-classification-is-probabilistic-graphical-model-good-idea/72703 "2021-12-07T09:49:57Z")

</div>

Hello I want to create a probabilistic graphical model for bones classification from PET/CT scan with uncertainity quantification, but I am not sure is it good idea and how to start . So the general plan how I imagine i…

---

## [Tabulations.jl - function tabulation made easy](https://discourse.julialang.org/t/tabulations-jl-function-tabulation-made-easy/72653)

<div class="topic-metadata">

**Author:** [@aurelio-amerio](https://discourse.julialang.org/u/aurelio-amerio)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 9:17am UTC](https://discourse.julialang.org/t/tabulations-jl-function-tabulation-made-easy/72653 "2021-12-07T09:17:05Z")

</div>

Hello everyone! I’ve written a nice package which might be useful for our fellow programmers in the physics research field. I introduce you to the package Tabulations.jl ! It sometimes happen that you have a function w…

---

## [StackOverflowError with CSV.File when using HybridArrays and Symbolics in 1.7](https://discourse.julialang.org/t/stackoverflowerror-with-csv-file-when-using-hybridarrays-and-symbolics-in-1-7/72652)

<div class="topic-metadata">

**Author:** [@judober](https://discourse.julialang.org/u/judober)\
**Replies:** 6\
**Last updated:** [December 7, 2021, 6:51am UTC](https://discourse.julialang.org/t/stackoverflowerror-with-csv-file-when-using-hybridarrays-and-symbolics-in-1-7/72652 "2021-12-07T06:51:00Z")

</div>

Hello everyone, I’m getting StackOverflowError() when runing the folowing code in Julia 1.7: using CSV, Symbolics, HybridArrays function test1() CSV.File("test.dat"; delim = "; ", types = Float64) end test1() te…

---

## [CSV.Rows filter usage](https://discourse.julialang.org/t/csv-rows-filter-usage/72699)

<div class="topic-metadata">

**Author:** [@vtomar](https://discourse.julialang.org/u/vtomar)\
**Replies:** 1\
**Last updated:** [December 7, 2021, 8:43am UTC](https://discourse.julialang.org/t/csv-rows-filter-usage/72699 "2021-12-07T08:43:44Z")

</div>

file = CSV.Rows(filename, header = 1; delim = ",", reusebuffer = true, limit = 1000) apply\_filter(row) = !ismissing(row.Col1) && !ismissing(row.Col2) output\_string(row) = println("$(row.Col1) $(row.Col2)")…

---

## [CUDA Matrix inverse](https://discourse.julialang.org/t/cuda-matrix-inverse/53341)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 13\
**Last updated:** [December 7, 2021, 6:47am UTC](https://discourse.julialang.org/t/cuda-matrix-inverse/53341 "2021-12-07T06:47:23Z")

</div>

Hello! I try to inverse large matrix on GPU and try to use this code: using CUDA, LinearAlgebra function cuinv(m::Matrix{T}) where T if size(m, 1) != size(m, 2) throw(ArgumentError("Matrix not square.")) end A …

---

## [Jupyter lab StackOverflowError when computing inverse matrix](https://discourse.julialang.org/t/jupyter-lab-stackoverflowerror-when-computing-inverse-matrix/72691)

<div class="topic-metadata">

**Author:** [@mrazomej](https://discourse.julialang.org/u/mrazomej)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 5:00am UTC](https://discourse.julialang.org/t/jupyter-lab-stackoverflowerror-when-computing-inverse-matrix/72691 "2021-12-07T05:00:02Z")

</div>

I recently updated Julia to version 1.7. When trying to do a straightforward computation in the Jupyterlab environment such as: using Random Random.seed!(42) A = rand(1000, 1000) inv(A) I get the following error (li…

---

## [DataDrivenDiffEq.jl for estimating DAE system of equations from data](https://discourse.julialang.org/t/datadrivendiffeq-jl-for-estimating-dae-system-of-equations-from-data/72672)

<div class="topic-metadata">

**Author:** [@jisnajohnson27](https://discourse.julialang.org/u/jisnajohnson27)\
**Replies:** 1\
**Last updated:** [December 7, 2021, 5:49am UTC](https://discourse.julialang.org/t/datadrivendiffeq-jl-for-estimating-dae-system-of-equations-from-data/72672 "2021-12-07T05:49:33Z")

</div>

I have been experimenting DataDrivenDiffEq.jl for retrieval of system of differential equations from a dataset( where data is generated by solving that differential equation system). But unlike ODESystem, I find it cumbe…

---

## [Loading CSV file to TimeSeries data](https://discourse.julialang.org/t/loading-csv-file-to-timeseries-data/72662)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 4:39am UTC](https://discourse.julialang.org/t/loading-csv-file-to-timeseries-data/72662 "2021-12-07T04:39:46Z")

</div>

Hi, I am trying to load some OHLC data into TimeArray (from TimeSeries.jl). The documentation (Tables.jl Interface Integration · TimeSeries.jl) says I can load it directly as using CSV TimeArray(CSV.File(filename), tim…

---

## [How does ModelingToolkit substitute the u0map?](https://discourse.julialang.org/t/how-does-modelingtoolkit-substitute-the-u0map/72688)

<div class="topic-metadata">

**Author:** [@cjwyett](https://discourse.julialang.org/u/cjwyett)\
**Replies:** 2\
**Last updated:** [December 7, 2021, 3:48am UTC](https://discourse.julialang.org/t/how-does-modelingtoolkit-substitute-the-u0map/72688 "2021-12-07T03:48:10Z")

</div>

Hi there, I’m trying to port some code over to use Catalyst. using Catalyst, Symbolics rs = @reaction\_network begin 1, 2A --\> B 2, B + C --\> 0 end v = Catalyst.oderatelaw.(reactions(rs)) u0 = \[1,1,1\] Now if i…

---

## [Iterative feedback and discussion on the pinned "make it easier to help you" topic](https://discourse.julialang.org/t/iterative-feedback-and-discussion-on-the-pinned-make-it-easier-to-help-you-topic/62975)

<div class="topic-metadata">

**Author:** [@kevin.squire](https://discourse.julialang.org/u/kevin.squire)\
**Replies:** 117\
**Last updated:** [December 7, 2021, 2:53am UTC](https://discourse.julialang.org/t/iterative-feedback-and-discussion-on-the-pinned-make-it-easier-to-help-you-topic/62975 "2021-12-07T02:53:12Z")

</div>

This is great! Consider changing the title to something like “Guidelines for asking questions about code” (or something a little simpler). Cheers, Kevin

---

## [Alternative to computation in a loop for distances for fast performance](https://discourse.julialang.org/t/alternative-to-computation-in-a-loop-for-distances-for-fast-performance/72642)

<div class="topic-metadata">

**Author:** [@nagda95](https://discourse.julialang.org/u/nagda95)\
**Replies:** 9\
**Last updated:** [December 7, 2021, 2:17am UTC](https://discourse.julialang.org/t/alternative-to-computation-in-a-loop-for-distances-for-fast-performance/72642 "2021-12-07T02:17:38Z")

</div>

Hello Everyone, I want to compute the distance (SqEuclidean) of a new point (newP) from the existing neighboring points in a specific order. I have the following code: newP=\[x y z\] for i in eachindex(order) Dist\[i\]=su…

---

## [Namespacing of methods](https://discourse.julialang.org/t/namespacing-of-methods/72677)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 8\
**Last updated:** [December 7, 2021, 1:34am UTC](https://discourse.julialang.org/t/namespacing-of-methods/72677 "2021-12-07T01:34:30Z")

</div>

After a couple of months of using Julia, I’m still a little confused about how methods interact with packages/namespaces. That is, situations where a package adds additional methods to a function originally defined in an…

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

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